Class ServerNode
- java.lang.Object
-
- com.alachisoft.ncache.runtime.cachemanagement.ServerNode
-
public class ServerNode extends java.lang.Object
ServerNode 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 boolean
getIsReplica()
Specifies whether the server node is replica or not.int
getPort()
Gets the port of server node.java.lang.String
getServerIP()
Gets the IP Address of server node.void
setIsReplica(boolean value)
Specifies whether the server node is replica or not.void
setPort(int value)
Sets the port of server nodevoid
setServerIP(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 replia or not.
-
-