public class DefaultDiscoveryConfig extends java.lang.Object implements IDiscoveryConfig
IDiscoveryConfig
. Since this is
zookeeper related code, check the net for the zookeeper administration guideModifier and Type | Field and Description |
---|---|
static java.lang.String |
CLIENT_PORT_DEFAULT
The client port default.
|
static java.lang.String |
DATADIR_DEFAULT
Directory will be created at runtime.
|
static java.lang.String |
DATALOGDIR_DEFAULT
Will be generated at runtime.
|
static java.lang.String |
DEFAULT_FLAVOR
This is the default flavor when no flavor has been passed
|
protected static java.util.Map<java.lang.String,java.lang.Object> |
defaultConfigProperties |
static java.lang.String |
ELECTION_PORT_DEFAULT
The election port default.
|
static java.lang.String |
INITLIMIT_DEFAULT
The server init limit default.
|
static java.lang.String |
SERVER_PORT_DEFAULT
The server port default.
|
static java.lang.String |
SYNCLIMIT_DEFAULT
The sync limit default.
|
static java.lang.String |
TEMPDIR_DEFAULT
The location of the zookeeper work directory.
|
static java.lang.String |
TICKTIME_DEFAULT
The tick time default.
|
static java.lang.String |
ZOODISCOVERY_PREFIX |
ZOODISCOVERY_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 and Description |
---|
DefaultDiscoveryConfig() |
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getConfigProperties() |
static boolean |
getConsoleLog() |
static java.lang.String |
getDefaultTarget() |
protected static java.util.Map<java.lang.String,java.lang.Object> defaultConfigProperties
public static final java.lang.String DEFAULT_FLAVOR
public static final java.lang.String TEMPDIR_DEFAULT
java.io.tmpdir
property. 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.public static final java.lang.String DATADIR_DEFAULT
-Dzoodiscovery.dataDir=string
where string
is
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.public static final java.lang.String DATALOGDIR_DEFAULT
public static final java.lang.String SERVER_PORT_DEFAULT
-Dzoodiscovery.serverPort=nnnn
where nnnn
is
the port you want to define as the server port or by appending the string
to the instantiation of the container id: zoodiscovery
documentation.public static final java.lang.String ELECTION_PORT_DEFAULT
-Dzoodiscovery.electionPort=nnnn
where nnnn
is
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.public static final java.lang.String CLIENT_PORT_DEFAULT
-Dzoodiscovery.clientPort=nnnn
where nnnn
is
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.public static final java.lang.String TICKTIME_DEFAULT
Can be controlled by either providing
-Dzoodiscovery.tickTime=nnnn
where nnnn
is the
tick time or by appending the string to the instantiation of the container id.
public static final java.lang.String INITLIMIT_DEFAULT
-Dzoodiscovery.initLimit=nnnn
where nnnn
is the
init limit or by appending the string to the instantiation of the container id.public static final java.lang.String SYNCLIMIT_DEFAULT
-Dzoodiscovery.syncLimit=nnnn
where nnnn
is the
sync limit you want to define or by appending the string to the
instantiation of the container id: instantiation of the container id.public static final java.lang.String ZOODISCOVERY_PREFIX
public java.util.Map<java.lang.String,java.lang.Object> getConfigProperties()
getConfigProperties
in interface IDiscoveryConfig
public static java.lang.String getDefaultTarget()
public static boolean getConsoleLog()