|
Berkeley DB Java Edition version 4.0.117 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.je.rep.util.DbGroupAdmin
public class DbGroupAdmin
DbGroupAdmin supplies the functionality of the administrative class ReplicationGroupAdmin in a convenient command line utility. For example, it
can be used to display replication group information, or to remove a node
from the replication group.
Note: This utility does not handle security and authorization. It is left to the user to ensure that the utility is invoked with proper authorization.
See main(java.lang.String[]) for a full description of the command line
arguments.
| Constructor Summary | |
|---|---|
DbGroupAdmin(String groupName,
Set<InetSocketAddress> helperSockets)
Create a DbGroupAdmin instance for programmatic use. |
|
| Method Summary | |
|---|---|
void |
dumpGroup()
Display group information. |
static void |
main(String[] args)
Usage: |
void |
removeMember(String name)
Remove a node from the replication group. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbGroupAdmin(String groupName,
Set<InetSocketAddress> helperSockets)
groupName - replication group namehelperSockets - set of host and port pairs for group members which
can be queried to obtain group information.| Method Detail |
|---|
public static void main(String[] args)
throws Exception
java {com.sleepycat.je.rep.util.DbGroupAdmin |
-jar je-<version>.jar DbGroupAdmin}
-groupName <group name> # name of replication group
-helperHosts <host:port> # identifier for one or more members
# of the replication group which can be
# contacted for group information, in
# this format:
# hostname[:port][,hostname[:port]]*
-dumpGroup # dump group information
-removeMember <node name># node to be removed
Exceptionpublic void dumpGroup()
public void removeMember(String name)
name - name of the node to be removedReplicationGroupAdmin.removeMember(java.lang.String)
|
Berkeley DB Java Edition version 4.0.117 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||