|
Peer locator v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.unet.warmachine.peerlocator.Configuration
This is a simple data object that configures agent system settings at startup. An instance of this class should be created by client code, which is then read by the agent and discarded. Subsequent changes are ignored.
| Constructor Summary | |
Configuration(java.lang.String agentName)
Constructor. |
|
| Method Summary | |
java.lang.String |
getAgentName()
Returns agent name. |
int |
getConnectTimeout()
Returns connection timeout. |
int |
getInactiveTimeout()
Returns connection inactive timeout. |
int |
getMaxMemberConnections()
Returns maximum no of connections that may be open per unlocated member when searching. |
int |
getMaxMemberSearches()
Returns maximum no of member searches that may be running at any one time. |
int |
getSearchRetryWait()
Returns search retry wait. |
java.lang.String |
getStatus()
Returns initial status value of agent. |
boolean |
getUseConfigIPAddress()
Whether agent should use configured IP address, rather than choose an arbitary local address of the appropriate type. |
boolean |
getUsePrivateNetwork()
Whether agent should use an IP address reserved for private networks as the local address, rather than a global, IANA assigned address. |
void |
setConnectTimeout(int value)
Sets connection timeout. |
void |
setInactiveTimeout(int value)
Sets connection inactive timeout. |
void |
setMaxMemberConnections(int value)
Sets maximum no of connections that may be open per unlocated member when searching. |
void |
setMaxMemberSearches(int value)
Sets maximum no of member searches that may be running at any one time. |
void |
setSearchRetryWait(int value)
Sets search retry wait. |
void |
setStatus(java.lang.String value)
Sets initial status value. |
void |
setUseConfigIPAddress(boolean value)
Sets whether agent should use configured IP address, rather than choose an arbitary local address of the appropriate type. |
void |
setUsePrivateNetwork(boolean value)
Sets whether agent should use an IP address reserved for private networks as the local address, rather than a global, IANA assigned address. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Configuration(java.lang.String agentName)
agentName - Name of member in membership list.| Method Detail |
public java.lang.String getAgentName()
public java.lang.String getStatus()
public void setStatus(java.lang.String value)
public int getConnectTimeout()
public void setConnectTimeout(int value)
value - Connection acknowledgement timeout in seconds.public int getInactiveTimeout()
public void setInactiveTimeout(int value)
value - Connection inactivity timeout in seconds.public int getSearchRetryWait()
public void setSearchRetryWait(int value)
value - Search retry wait in seconds.public int getMaxMemberConnections()
public void setMaxMemberConnections(int value)
value - Maximum connections per unlocated member.java.lang.IllegalArgumentException - Value is less than 1.public int getMaxMemberSearches()
public void setMaxMemberSearches(int value)
throws java.lang.IllegalArgumentException
value - Maximum no of member searches.java.lang.IllegalArgumentException - Value is less than 1.public boolean getUsePrivateNetwork()
public void setUsePrivateNetwork(boolean value)
value - Whether agent should use private IP address as local address.public boolean getUseConfigIPAddress()
getUsePrivateNetwork(). Multiple addresses can be assigned if more
than one NIC is installed. Default is false. If set for a statically
assigned IP address, the configured address must be an address assigned
to the local host. If set for a dynamically assigned address, an address
assigned to the local host must be within the configured range.public void setUseConfigIPAddress(boolean value)
setUsePrivateNetwork(boolean). Multiple addresses can be assigned if more than
one NIC is installed. Default is false. If set for a statically
assigned IP address, the configured address must be an address assigned
to the local host. If set for a dynamically assigned address, an address
assigned to the local host must be within the configured range. This is
ignored if this configuration has been passed to the agent.value - Whether agent should use configured IP address.
|
Peer locator v1.0 | |||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||