Class ServerNode
- java.lang.Object
-
- com.alachisoft.ncache.runtime.cachemanagement.ServerNode
-
public class ServerNode extends java.lang.ObjectServerNode contains information about a single node in server.
-
-
Constructor Summary
Constructors Constructor Description ServerNode()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetIsReplica()Specifies whether the server node is replica or not.intgetPort()Gets the Port of server node.java.lang.StringgetServerIP()Gets the IP Address of server node.voidsetIsReplica(boolean value)Specifies whether the server node is replica or not.voidsetPort(int value)Sets the Port of server node.voidsetServerIP(java.lang.String value)Sets the IP Address of server node.
-
-
-
Method Detail
-
getServerIP
public final java.lang.String getServerIP()
Gets the IP Address of server node.- Returns:
- The IP Address of server node.
-
setServerIP
public final void setServerIP(java.lang.String value)
Sets the IP Address of server node.- Parameters:
value- The IP Address of server node.
-
getPort
public final int getPort()
Gets the Port of server node.- Returns:
- The Port of server node.
-
setPort
public final void setPort(int value)
Sets the Port of server node.- Parameters:
value- The Port of server node.
-
getIsReplica
public final boolean getIsReplica()
Specifies whether the server node is replica or not.- Returns:
- True, if server node is replica, otherwise false.
-
setIsReplica
public final void setIsReplica(boolean value)
Specifies whether the server node is replica or not.- Parameters:
value- The boolean value indicating whether server node is replica or not.
-
-