com.sleepycat.je.rep.util
Class DbRepPreUpgrade_4_1

java.lang.Object
  extended by com.sleepycat.je.rep.util.DbRepPreUpgrade_4_1

public class DbRepPreUpgrade_4_1
extends Object

In JE 5.0 the internal log format changed. Before upgrading environments to JE 5.0, 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.

The command line for this utility:
 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 use 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 can be upgraded to JE 5.0.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DbRepPreUpgrade_4_1

public DbRepPreUpgrade_4_1(File envHome,
                           String groupName,
                           String nodeName,
                           String nodeHostPort,
                           String helperHosts)
Create a DbRepUpgrade object for a specified node.

Parameters:
envHome - The node's environment directory
groupName - The name of the new replication group
nodeName - The node's name
nodeHostPort - The host and port for this node
helperHosts - The helper nodes for this node to contact master
Method Detail

main

public static void main(String[] args)
Usage:
 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]]
 


preUpgrade

public void preUpgrade()
Ensure sure that a ReplicatedEnvironment can be upgraded to JE 5.0.



Copyright (c) 2004-2010 Oracle. All rights reserved.