|
Berkeley DB Java Edition version 4.1.10 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sleepycat.je.rep.util.DbRepPreUpgrade_4_1
public class DbRepPreUpgrade_4_1
In JE 4.2 the internal format changed for databases with duplicates
configured. Duplicates are configured if
DatabaseConfig.setSortedDuplicates(true) is called in the base
API, or a MANY_TO_ONE or MANY_TO_MANY relationship
is used in the DPL API. Before upgrading environments which have duplicates
databases to JE 4.2, this utility must first be run using JE 4.1.
This utility is used for replicated environments. For standalone
environments, please use DbPreUpgrade_4_1
instead.
java com.sleepycat.je.rep.util.DbRepPreUpgrade_4_1
-h <dir> # environment home directory
-groupName <group name> # replication group name
-nodeName <node name> # replicated node name
-nodeHostPort <host:port> # host name or IP address and port
number to user for this node
-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]]
See main(java.lang.String[]) for a full description of the command
line arguments.
| Constructor Summary | |
|---|---|
DbRepPreUpgrade_4_1(File envHome,
String groupName,
String nodeName,
String nodeHostPort,
String helperHosts)
Create a DbRepUpgrade object for a specified node. |
|
| Method Summary | |
|---|---|
static void |
main(String[] args)
Usage: |
void |
preUpgrade()
Ensure sure that a ReplicatedEnvironment which has duplicates databases can be upgraded to JE 4.2. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DbRepPreUpgrade_4_1(File envHome,
String groupName,
String nodeName,
String nodeHostPort,
String helperHosts)
envHome - The node's environment directorygroupName - The name of the new replication groupnodeName - The node's namenodeHostPort - The host and port for this nodehelperHosts - The helper nodes for this node to contact master| Method Detail |
|---|
public static void main(String[] args)
java -cp je.jar com.sleepycat.je.rep.util.DbRepPreUpgrade_4_1
-h <dir> # environment home directory
-groupName <group name> # replication group name
-nodeName <node name> # replicated node name
-nodeHostPort <host:port> # host name or IP address and port
number to use for this node
-helperHosts $lt;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]]
public void preUpgrade()
|
Berkeley DB Java Edition version 4.1.10 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||