Constructor and Description |
---|
DbPing(ReplicationNode repNode,
String groupName,
int socketTimeout)
Create a DbPing instance for programmatic use.
|
public DbPing(ReplicationNode repNode, String groupName, int socketTimeout)
repNode
- a class that implements
ReplicationNode
groupName
- name of the group which the node joinssocketTimeout
- timeout value for creating a socket connection
with the nodepublic static void main(String[] args) throws 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
Exception
public NodeState getNodeState() throws IOException, com.sleepycat.je.rep.utilint.ServiceDispatcher.ServiceConnectFailedException
IOException
com.sleepycat.je.rep.utilint.ServiceDispatcher.ServiceConnectFailedException
Copyright (c) 2004, 2013 Oracle and/or its affiliates. All rights reserved.