|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.store.replication.net.SlaveAddress
public class SlaveAddress
Encapsulates the host name and the port number of the slave machine.
Field Summary | |
---|---|
static int |
DEFAULT_PORT_NO
Used as the default port number if the port number is not mentioned. |
private java.net.InetAddress |
hostAddress
Contains the IP Address of the slave to replicate to. |
private int |
portNumber
Contains the port number at which the slave is listening for connections from the master. |
Constructor Summary | |
---|---|
SlaveAddress(java.lang.String hostName,
int portNumber)
Constructor initializes the host name and the port number with valid values. |
Method Summary | |
---|---|
java.net.InetAddress |
getHostAddress()
Used to get the IP Address corresponding to the host name of the slave. |
int |
getPortNumber()
Used to get the port number of the slave. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.net.InetAddress hostAddress
private final int portNumber
public static final int DEFAULT_PORT_NO
Constructor Detail |
---|
public SlaveAddress(java.lang.String hostName, int portNumber) throws java.net.UnknownHostException
hostName
- a String
that contains the host name of
the slave.portNumber
- an int
that contains the port number
of the slave.
java.net.UnknownHostException
- If an exception occurs while trying to
resolve the host name.Method Detail |
---|
public java.net.InetAddress getHostAddress()
public int getPortNumber()
|
Built on Thu 2011-03-10 11:54:14+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |