public class ManagedMongosLifecycleManager extends AbstractLifecycleManager
| Modifier and Type | Class and Description |
|---|---|
class |
ManagedMongosLifecycleManager.ProcessRunnable |
| Modifier and Type | Field and Description |
|---|---|
protected static String |
CHUNK_SIZE_ARGUMENT_NAME |
protected static String |
CONFIG_DB_ARGUMENT_NAME |
protected static int |
DEFAULT_CHUNK_SIZE |
protected static String |
DEFAULT_MONGO_LOGPATH |
protected static String |
DEFAULT_MONGO_TARGET_PATH |
protected static int |
DEFAULT_PORT |
protected static String |
LOGPATH_ARGUMENT_NAME |
protected static String |
MONGODB_BINARY_DIRECTORY |
protected static String |
MONGOS_EXECUTABLE_W |
protected static String |
MONGOS_EXECUTABLE_X |
protected static String |
PORT_ARGUMENT_NAME |
| Constructor and Description |
|---|
ManagedMongosLifecycleManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
addConfigurationDatabase(String hostAndPort) |
void |
addExtraCommandLineArgument(String argumentName,
String argumentValue) |
void |
addSingleCommandLineArgument(String argument) |
protected boolean |
areConfigDatabasesDefined() |
void |
doStart() |
void |
doStop() |
String |
getHost() |
protected String |
getMongosPath() |
int |
getPort() |
void |
setChunkSize(int chunkSize) |
protected void |
setCommandLineExecutor(CommandLineExecutor commandLineExecutor) |
void |
setLogRelativePath(String logRelativePath) |
protected void |
setMongoDbLowLevelOps(MongoDbLowLevelOps mongoDbLowLevelOps) |
void |
setMongosPath(String mongodPath) |
protected void |
setOperatingSystemResolver(OperatingSystemResolver operatingSystemResolver) |
void |
setPort(int port) |
void |
setTargetPath(String targetPath) |
isReady, startEngine, stopEngineprotected static final int DEFAULT_PORT
protected static final String LOGPATH_ARGUMENT_NAME
protected static final String PORT_ARGUMENT_NAME
protected static final String CHUNK_SIZE_ARGUMENT_NAME
protected static final String CONFIG_DB_ARGUMENT_NAME
protected static final String DEFAULT_MONGO_LOGPATH
protected static final String DEFAULT_MONGO_TARGET_PATH
protected static final int DEFAULT_CHUNK_SIZE
protected static final String MONGODB_BINARY_DIRECTORY
protected static final String MONGOS_EXECUTABLE_X
protected static final String MONGOS_EXECUTABLE_W
public String getHost()
getHost in class AbstractLifecycleManagerpublic int getPort()
getPort in class AbstractLifecycleManagerpublic void doStart()
throws Throwable
doStart in class AbstractLifecycleManagerThrowablepublic void doStop()
doStop in class AbstractLifecycleManagerpublic void setLogRelativePath(String logRelativePath)
public void setMongosPath(String mongodPath)
public void setTargetPath(String targetPath)
public void addExtraCommandLineArgument(String argumentName, String argumentValue)
public void addSingleCommandLineArgument(String argument)
public void setPort(int port)
public void setChunkSize(int chunkSize)
public void addConfigurationDatabase(String hostAndPort)
protected String getMongosPath()
protected boolean areConfigDatabasesDefined()
protected void setCommandLineExecutor(CommandLineExecutor commandLineExecutor)
protected void setOperatingSystemResolver(OperatingSystemResolver operatingSystemResolver)
protected void setMongoDbLowLevelOps(MongoDbLowLevelOps mongoDbLowLevelOps)
Copyright © 2017 JBoss by Red Hat. All Rights Reserved.