Class DefaultDiscoveryConfig
- java.lang.Object
- 
- org.eclipse.ecf.provider.zookeeper.core.DefaultDiscoveryConfig
 
- 
- All Implemented Interfaces:
- IDiscoveryConfig
 
 public class DefaultDiscoveryConfig extends Object implements IDiscoveryConfig Default implementation ofIDiscoveryConfig. Since this is zookeeper related code, check the net for the zookeeper administration guide
- 
- 
Field SummaryFields Modifier and Type Field Description static StringCLIENT_PORT_DEFAULTThe client port default.static StringDATADIR_DEFAULTDirectory will be created at runtime.static StringDATALOGDIR_DEFAULTWill be generated at runtime.static StringDEFAULT_FLAVORThis is the default flavor when no flavor has been passedprotected static Map<String,Object>defaultConfigPropertiesstatic StringELECTION_PORT_DEFAULTThe election port default.static StringINITLIMIT_DEFAULTThe server init limit default.static StringSERVER_PORT_DEFAULTThe server port default.static StringSYNCLIMIT_DEFAULTThe sync limit default.static StringTEMPDIR_DEFAULTThe location of the zookeeper work directory.static StringTICKTIME_DEFAULTThe tick time default.static StringZOODISCOVERY_PREFIX- 
Fields inherited from interface org.eclipse.ecf.provider.zookeeper.core.IDiscoveryConfigZOODISCOVERY_CONSOLELOG, ZOODISCOVERY_FLAVOR_CENTRALIZED, ZOODISCOVERY_FLAVOR_REPLICATED, ZOODISCOVERY_FLAVOR_STANDALONE, ZOOKEEPER_AUTOSTART, ZOOKEEPER_CLIENTPORT, ZOOKEEPER_DATADIR, ZOOKEEPER_DATALOGDIR, ZOOKEEPER_ELECTION_PORT, ZOOKEEPER_INITLIMIT, ZOOKEEPER_SERVER_PORT, ZOOKEEPER_SYNCLIMIT, ZOOKEEPER_TEMPDIR, ZOOKEEPER_TICKTIME
 
- 
 - 
Constructor SummaryConstructors Constructor Description DefaultDiscoveryConfig()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>getConfigProperties()static booleangetConsoleLog()static StringgetDefaultTarget()
 
- 
- 
- 
Field Detail- 
DEFAULT_FLAVORpublic static final String DEFAULT_FLAVOR This is the default flavor when no flavor has been passed- Since:
- 1.0.0
 
 - 
TEMPDIR_DEFAULTpublic static final String TEMPDIR_DEFAULT The location of the zookeeper work directory. By default it will be the value of thejava.io.tmpdirproperty. Can be controlled by either providing-Dzoodiscovery.tempDir=/qualified/path/where/qualified/path/is the absolute path name you want to define or by appending the string to the instantiation of the container id: instantiation of the container id.- Since:
- 1.0.0
 
 - 
DATADIR_DEFAULTpublic static final String DATADIR_DEFAULT Directory will be created at runtime. The folder will be named "zookeeperData". Can be controlled by either providing-Dzoodiscovery.dataDir=stringwherestringis the single directory name you want to define or by appending the string to the instantiation of the container id: instantiation of the container id.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
DATALOGDIR_DEFAULTpublic static final String DATALOGDIR_DEFAULT Will be generated at runtime. The folder will be named "zookeeperData"- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
SERVER_PORT_DEFAULTpublic static final String SERVER_PORT_DEFAULT The server port default. Can be controlled by either providing-Dzoodiscovery.serverPort=nnnnwherennnnis the port you want to define as the server port or by appending the string to the instantiation of the container id: zoodiscovery documentation.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
ELECTION_PORT_DEFAULTpublic static final String ELECTION_PORT_DEFAULT The election port default. Can be controlled by either providing-Dzoodiscovery.electionPort=nnnnwherennnnis the port you want to define as the election port or by appending the string to the instantiation of the instantiation of the container id.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
CLIENT_PORT_DEFAULTpublic static final String CLIENT_PORT_DEFAULT The client port default. Can be controlled by either providing-Dzoodiscovery.clientPort=nnnnwherennnnis the port you want to define as the client port or by appending the string to the instantiation of the instantiation of the container id.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
TICKTIME_DEFAULTpublic static final String TICKTIME_DEFAULT The tick time default. the length of a single tick, which is the basic time unit used by ZooKeeper, as measured in milliseconds. It is used to regulate heartbeats, and timeouts. For example, the minimum session timeout will be two ticks.Can be controlled by either providing -Dzoodiscovery.tickTime=nnnnwherennnnis the tick time or by appending the string to the instantiation of the container id.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
INITLIMIT_DEFAULTpublic static final String INITLIMIT_DEFAULT The server init limit default. Can be controlled by either providing-Dzoodiscovery.initLimit=nnnnwherennnnis the init limit or by appending the string to the instantiation of the container id.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
SYNCLIMIT_DEFAULTpublic static final String SYNCLIMIT_DEFAULT The sync limit default. Can be controlled by either providing-Dzoodiscovery.syncLimit=nnnnwherennnnis the sync limit you want to define or by appending the string to the instantiation of the container id: instantiation of the container id.- Since:
- 1.0.0
- See Also:
- Constant Field Values
 
 - 
ZOODISCOVERY_PREFIXpublic static final String ZOODISCOVERY_PREFIX - See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getConfigPropertiespublic Map<String,Object> getConfigProperties() - Specified by:
- getConfigPropertiesin interface- IDiscoveryConfig
- Returns:
- Map of properties used for configuration. All properties understood by Apache ZooKeeper (v3.1.1) might be included as well.
- See Also:
- ZooKeeper Administrator's Guide
 
 - 
getDefaultTargetpublic static String getDefaultTarget() 
 - 
getConsoleLogpublic static boolean getConsoleLog() - Returns:
- true if consoleLogging was specified.
 
 
- 
 
-