org.objectweb.cjdbc.driver
Class ControllerInfo

java.lang.Object
  extended byorg.objectweb.cjdbc.driver.ControllerInfo

public class ControllerInfo
extends java.lang.Object

Controller related information, namely the host name and the port on which the controller is running.

Version:
1.0
Author:
Emmanuel Cecchet

Field Summary
private  java.lang.String hostname
           
private  int port
           
 
Constructor Summary
ControllerInfo()
          Creates a ControllerInfo object
ControllerInfo(java.lang.String hostname, int port)
          Creates a new ControllerInfo object
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.lang.String getHostname()
          Get the hostname where the controller is running
 int getPort()
          Get the port number on which the controller is listening.
 void setHostname(java.lang.String string)
          Set the controller hostname.
 void setPort(int port)
          Set the port number.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

hostname

private java.lang.String hostname

port

private int port
Constructor Detail

ControllerInfo

public ControllerInfo()
Creates a ControllerInfo object


ControllerInfo

public ControllerInfo(java.lang.String hostname,
                      int port)
Creates a new ControllerInfo object

Parameters:
hostname - the controller host name
port - the controller port
Method Detail

getHostname

public java.lang.String getHostname()
Get the hostname where the controller is running

Returns:
controller hostname

getPort

public int getPort()
Get the port number on which the controller is listening.

Returns:
port number.

setHostname

public void setHostname(java.lang.String string)
Set the controller hostname.

Parameters:
string - hostname to set

setPort

public void setPort(int port)
Set the port number.

Parameters:
port - port number

equals

public boolean equals(java.lang.Object obj)
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
See Also:
Object.toString()


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.