public class DbPing
extends java.lang.Object
NodeState.| Constructor and Description |
|---|
DbPing(ReplicationNode repNode,
java.lang.String groupName,
int socketTimeout)
Create a DbPing instance for programmatic use.
|
DbPing(ReplicationNode repNode,
java.lang.String groupName,
int socketTimeout,
com.sleepycat.je.rep.net.DataChannelFactory channelFactory) |
DbPing(ReplicationNode repNode,
java.lang.String groupName,
int socketTimeout,
java.io.File netPropsFile) |
DbPing(ReplicationNode repNode,
java.lang.String groupName,
int socketTimeout,
ReplicationNetworkConfig netConfig) |
| Modifier and Type | Method and Description |
|---|---|
NodeState |
getNodeState() |
static void |
main(java.lang.String[] args)
Usage:
|
public DbPing(ReplicationNode repNode, java.lang.String groupName, int socketTimeout)
repNode - a class that implements
ReplicationNodegroupName - name of the group which the node joinssocketTimeout - timeout value for creating a socket connection
with the nodepublic DbPing(ReplicationNode repNode, java.lang.String groupName, int socketTimeout, java.io.File netPropsFile) throws java.io.FileNotFoundException, java.lang.IllegalArgumentException
repNode - a class that implements
ReplicationNodegroupName - name of the group which the node joinssocketTimeout - timeout value for creating a socket connection
with the nodenetPropsFile - a File containing replication net property
settings. Null is allowed.java.io.FileNotFoundException - if the netPropsFile does not existjava.lang.IllegalArgumentException - if the netProps file contains
invalid settings.public DbPing(ReplicationNode repNode, java.lang.String groupName, int socketTimeout, ReplicationNetworkConfig netConfig)
repNode - a class that implements
ReplicationNodegroupName - name of the group which the node joinssocketTimeout - timeout value for creating a socket connection
with the nodenetConfig - a replication-net configuration object
property settings. Null is allowed.java.lang.IllegalArgumentException - if the netProps contains invalid
settings.public DbPing(ReplicationNode repNode, java.lang.String groupName, int socketTimeout, com.sleepycat.je.rep.net.DataChannelFactory channelFactory)
repNode - a class that implements
ReplicationNodegroupName - name of the group which the node joinssocketTimeout - timeout value for creating a socket connection
with the nodechannelFactory - the factory for channel creationjava.lang.IllegalArgumentException - if the netProps contains invalid
settings.public static void main(java.lang.String[] args)
throws java.lang.Exception
java {com.sleepycat.je.rep.util.DbPing |
-jar je-<version>.jar DbPing}
-nodeName <node name> # name of the node whose state is
# requested
-groupName <group name> # name of the group which the node joins
-nodeHost <host:port> # the host name and port pair the node
# used to join the group
-socketTimeout # the timeout value for creating a
# socket connection with the node,
# default is 10 seconds if not set
java.lang.Exceptionpublic NodeState getNodeState() throws java.io.IOException, com.sleepycat.je.rep.utilint.ServiceDispatcher.ServiceConnectFailedException
java.io.IOExceptioncom.sleepycat.je.rep.utilint.ServiceDispatcher.ServiceConnectFailedExceptionCopyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.