org.oclc.da.gdfr.registryprototype.pvt.dbxml
Class DBXMLClusterConfig

java.lang.Object
  extended by org.oclc.da.gdfr.registryprototype.pvt.dbxml.DBXMLClusterConfig
All Implemented Interfaces:
com.sleepycat.db.EventHandler

public class DBXMLClusterConfig
extends java.lang.Object
implements com.sleepycat.db.EventHandler


Field Summary
static int CACHESIZE
           
static java.lang.String configFileName
           
 java.lang.String home
           
 java.lang.String localHost
           
 java.util.Vector otherHosts
           
 int priority
           
static java.lang.String progname
           
 java.lang.String sConfigFile
           
static int SLEEPTIME
           
 com.sleepycat.db.ReplicationManagerStartPolicy startPolicy
           
 com.sleepycat.db.ReplicationHostAddress thisHost
           
 int totalSites
           
 
Method Summary
 void addOtherHost(java.lang.String host, int port, boolean peer)
           
 com.sleepycat.db.ReplicationHostAddress getFirstOtherHost()
           
 java.io.File getHome()
           
static DBXMLClusterConfig getInstance()
           
 com.sleepycat.db.ReplicationHostAddress getNextOtherHost()
           
 com.sleepycat.db.ReplicationHostAddress getOtherHost(int i)
           
 com.sleepycat.db.ReplicationHostAddress getThisHost()
           
 boolean gotCluster()
           
 boolean gotListenAddress()
           
 int handleEvent(com.sleepycat.db.EventType event)
           
 boolean isMaster()
           
 void setThisHost(java.lang.String host, int port)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

progname

public static final java.lang.String progname
See Also:
Constant Field Values

configFileName

public static final java.lang.String configFileName
See Also:
Constant Field Values

CACHESIZE

public static final int CACHESIZE
See Also:
Constant Field Values

SLEEPTIME

public static final int SLEEPTIME
See Also:
Constant Field Values

home

public java.lang.String home

otherHosts

public java.util.Vector otherHosts

localHost

public java.lang.String localHost

sConfigFile

public java.lang.String sConfigFile

priority

public int priority

startPolicy

public com.sleepycat.db.ReplicationManagerStartPolicy startPolicy

thisHost

public com.sleepycat.db.ReplicationHostAddress thisHost

totalSites

public int totalSites
Method Detail

getInstance

public static DBXMLClusterConfig getInstance()

getHome

public java.io.File getHome()

setThisHost

public void setThisHost(java.lang.String host,
                        int port)

getThisHost

public com.sleepycat.db.ReplicationHostAddress getThisHost()

gotListenAddress

public boolean gotListenAddress()

gotCluster

public boolean gotCluster()

addOtherHost

public void addOtherHost(java.lang.String host,
                         int port,
                         boolean peer)

getFirstOtherHost

public com.sleepycat.db.ReplicationHostAddress getFirstOtherHost()

getNextOtherHost

public com.sleepycat.db.ReplicationHostAddress getNextOtherHost()

getOtherHost

public com.sleepycat.db.ReplicationHostAddress getOtherHost(int i)

handleEvent

public int handleEvent(com.sleepycat.db.EventType event)
Specified by:
handleEvent in interface com.sleepycat.db.EventHandler

isMaster

public boolean isMaster()


Copyright © 2008 OCLC Online Computer Library Center, Inc.. All Rights Reserved.