Berkeley DB Java Edition
version 5.0.34

com.sleepycat.je.rep
Interface ReplicationNode


public interface ReplicationNode

An administrative view of a node in a replication group.


Method Summary
 String getHostName()
          Returns the host name associated with the node.
 String getName()
          Returns the unique name associated with the node.
 int getPort()
          Returns the port number associated with the node.
 InetSocketAddress getSocketAddress()
          The socket address used by other nodes in the replication group to communicate with this node.
 NodeType getType()
          Returns the type associated with the node.
 

Method Detail

getName

String getName()
Returns the unique name associated with the node.

Returns:
the name of the node.

getType

NodeType getType()
Returns the type associated with the node.

Returns:
one of ELECTABLE or MONITOR

getSocketAddress

InetSocketAddress getSocketAddress()
The socket address used by other nodes in the replication group to communicate with this node.

Returns:
the socket address

getHostName

String getHostName()
Returns the host name associated with the node.

Returns:
the host name of the node.

getPort

int getPort()
Returns the port number associated with the node.

Returns:
the port number of the node.

Berkeley DB Java Edition
version 5.0.34

Copyright (c) 2004-2011 Oracle. All rights reserved.