Class ShutdownCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<T>
-
- de.caluga.morphium.driver.commands.AdminMongoCommand<ShutdownCommand>
-
- de.caluga.morphium.driver.commands.ShutdownCommand
-
- All Implemented Interfaces:
SingleResultCommand
public class ShutdownCommand extends AdminMongoCommand<ShutdownCommand>
-
-
Constructor Summary
Constructors Constructor Description ShutdownCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()Map<String,Object>execute()intexecuteAsync()StringgetCommandName()BooleangetForce()IntegergetTimeoutSecs()ShutdownCommandsetForce(Boolean force)ShutdownCommandsetTimeoutSecs(Integer timeoutSecs)-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
clear, fromMap, getColl, getComment, getConnection, getDb, getMetaData, releaseConnection, setColl, setComment, setConnection, setDb, setMetaData, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.caluga.morphium.driver.commands.SingleResultCommand
getMetaData
-
-
-
-
Constructor Detail
-
ShutdownCommand
public ShutdownCommand(MongoConnection d)
-
-
Method Detail
-
getForce
public Boolean getForce()
-
setForce
public ShutdownCommand setForce(Boolean force)
-
getTimeoutSecs
public Integer getTimeoutSecs()
-
setTimeoutSecs
public ShutdownCommand setTimeoutSecs(Integer timeoutSecs)
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<ShutdownCommand>
-
asMap
public Map<String,Object> asMap()
- Specified by:
asMapin interfaceSingleResultCommand- Overrides:
asMapin classAdminMongoCommand<ShutdownCommand>
-
execute
public Map<String,Object> execute() throws MorphiumDriverException
- Specified by:
executein interfaceSingleResultCommand- Overrides:
executein classAdminMongoCommand<ShutdownCommand>- Throws:
MorphiumDriverException
-
executeAsync
public int executeAsync() throws MorphiumDriverException- Overrides:
executeAsyncin classAdminMongoCommand<ShutdownCommand>- Throws:
MorphiumDriverException
-
-