18.1.3 Node class
- Organization of this subsection
(1) Function
This is a class used for obtaining information about an EADS server.
(2) Inheritance relationship
java.lang.Object com.hitachi.software.xeads.client.api.Node
(3) Format
public class Node extends java.lang.Object
(4) List of methods
The following table lists and describes the methods provided by the Node class:
Method name |
Description |
---|---|
Acquires the EADS server ID. |
|
Acquires a value indicating whether a connection can be established with an EADS server. |
|
Acquires the IP address and port number of an EADS server. |
|
Acquires the location (hash value) of an EADS server. |
|
Acquires information about an EADS server (string representation). |
(5) getNodeId()
(a) Description
This method acquires the EADS server ID.
(b) Format
public int getNodeId()
(c) Return value
This method returns the EADS server ID.
(6) isEnable()
(a) Description
This method acquires a value indicating whether a connection can be established with an EADS server.
(b) Format
public boolean isEnable()
(c) Return value
This method returns a value indicating whether a connection can be established with an EADS server.
- true
-
Connection can be established.
- false
-
Connection cannot be established.
(7) getAddress()
(a) Description
This method acquires the IP address and port number of an EADS server.
(b) Format
public java.net.InetSocketAddress getAddress()
(c) Return value
This method returns a java.net.InetSocketAddress instance indicating the IP address and port number of an EADS server.
(8) getPosition()
(a) Description
This method acquires the location (hash value) of an EADS server.
(b) Format
public int getPosition()
(c) Return value
This method returns the location (hash value) of an EADS server.
(9) toString()
(a) Description
This method acquires information about an EADS server (string representation).
(b) Format
public String toString()
(c) Return value
This method returns information about an EADS server (string representation) in the following format:
"node id = EADS-server-ID, status = ENABLE | DISABLE, position = EADS-server-position, address = IP-address-and-port-number-of-EADS-server"