|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.sleepycat.je.rep.monitor.MonitorConfig
public class MonitorConfig
Specifies the attributes used by a replication Monitor
.
The following properties identify the target group.
Field Summary | |
---|---|
static MonitorConfig |
DEFAULT
An instance created using the default constructor is initialized with the default settings. |
Constructor Summary | |
---|---|
MonitorConfig()
An instance created using the default constructor is initialized with the default settings. |
Method Summary | |
---|---|
MonitorConfig |
clone()
Returns a copy of this configuration object. |
String |
getGroupName()
Gets the name associated with the replication group. |
String |
getHelperHosts()
Returns the string identifying one or more helper host and port pairs in this format: |
String |
getNodeHostname()
Returns the hostname component of the nodeHost property. |
String |
getNodeHostPort()
Returns the hostname and port associated with this node. |
String |
getNodeName()
Returns the unique name associated with this monitor. |
int |
getNodePort()
Returns the port component of the nodeHost property. |
int |
getNumRetries()
Returns the number of times a ping thread attempts to contact a node before deeming it unreachable. |
long |
getRetryInterval()
Returns the number of milliseconds between ping thread retries. |
int |
getSocketConnectTimeout()
Returns the socketConnection timeout, in milliseconds, used when the ping thread attempts to establish a connection with a replication node. |
MonitorConfig |
setGroupName(String groupName)
Sets the name for the replication group. |
MonitorConfig |
setHelperHosts(String helperHosts)
Identify one or more helpers nodes by their host and port pairs in this format: |
MonitorConfig |
setNodeHostPort(String hostPort)
Sets the hostname and port associated with this monitor. |
MonitorConfig |
setNodeName(String nodeName)
Sets the name to be associated with this monitor . |
MonitorConfig |
setNumRetries(int numRetries)
Sets the number of times a ping thread attempts to contact a node before deeming it unreachable. |
MonitorConfig |
setRetryInterval(long retryInterval)
Sets the number of milliseconds between ping thread retries. |
MonitorConfig |
setSocketConnectTimeout(int socketConnectTimeout)
Sets the socketConnection timeout, in milliseconds, used when the ping thread attempts to establish a connection with a replication node. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final MonitorConfig DEFAULT
Constructor Detail |
---|
public MonitorConfig()
Method Detail |
---|
public MonitorConfig setGroupName(String groupName) throws IllegalArgumentException
groupName
- the alpha numeric string representing the name.
IllegalArgumentException
- if the string name is not valid.public String getGroupName()
public MonitorConfig setNodeName(String nodeName) throws IllegalArgumentException
monitor
. It must
be unique within the group. When the monitor
is
instantiated and joins the replication group, a check is done to ensure
that the name is unique, and a
RestartRequiredException
is thrown if it is
not.
nodeName
- the name of this monitor.
IllegalArgumentException
public String getNodeName()
public MonitorConfig setNodeHostPort(String hostPort)
hostname[:port]The port must be outside the range of "Well Known Ports" (zero through 1023).
hostPort
- the string containing the hostname and port as above.public String getNodeHostPort()
hostname:port
public MonitorConfig setHelperHosts(String helperHosts)
hostname[:port][,hostname[:port]]*
helperHosts
- the string representing the host and port pairs.public String getHelperHosts()
hostname[:port][,hostname[:port]]*
public String getNodeHostname()
public int getNodePort()
public MonitorConfig setNumRetries(int numRetries)
public int getNumRetries()
public MonitorConfig setRetryInterval(long retryInterval)
public long getRetryInterval()
public MonitorConfig setSocketConnectTimeout(int socketConnectTimeout)
public int getSocketConnectTimeout()
public MonitorConfig clone()
clone
in class Object
|
Berkeley DB Java Edition version 5.0.34 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |