Class StepDownCommand
- java.lang.Object
-
- de.caluga.morphium.driver.commands.MongoCommand<T>
-
- de.caluga.morphium.driver.commands.AdminMongoCommand<StepDownCommand>
-
- de.caluga.morphium.driver.commands.StepDownCommand
-
- All Implemented Interfaces:
SingleResultCommand
public class StepDownCommand extends AdminMongoCommand<StepDownCommand>
-
-
Constructor Summary
Constructors Constructor Description StepDownCommand(MongoConnection d)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,Object>asMap()StepDownCommandfromMap(Map<String,Object> m)StringgetCommandName()BooleangetForce()IntegergetSecondaryCatchUpPeriodSecs()intgetTimeToStepDown()StepDownCommandsetForce(Boolean force)StepDownCommandsetSecondaryCatchUpPeriodSecs(Integer secondaryCatchUpPeriodSecs)StepDownCommandsetTimeToStepDown(int timeToStepDown)-
Methods inherited from class de.caluga.morphium.driver.commands.AdminMongoCommand
execute, executeAsync
-
Methods inherited from class de.caluga.morphium.driver.commands.MongoCommand
clear, 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
-
StepDownCommand
public StepDownCommand(MongoConnection d)
-
-
Method Detail
-
getCommandName
public String getCommandName()
- Specified by:
getCommandNamein classMongoCommand<StepDownCommand>
-
getTimeToStepDown
public int getTimeToStepDown()
-
setTimeToStepDown
public StepDownCommand setTimeToStepDown(int timeToStepDown)
-
getSecondaryCatchUpPeriodSecs
public Integer getSecondaryCatchUpPeriodSecs()
-
setSecondaryCatchUpPeriodSecs
public StepDownCommand setSecondaryCatchUpPeriodSecs(Integer secondaryCatchUpPeriodSecs)
-
getForce
public Boolean getForce()
-
setForce
public StepDownCommand setForce(Boolean force)
-
asMap
public Map<String,Object> asMap()
- Specified by:
asMapin interfaceSingleResultCommand- Overrides:
asMapin classAdminMongoCommand<StepDownCommand>
-
fromMap
public StepDownCommand fromMap(Map<String,Object> m)
- Overrides:
fromMapin classMongoCommand<StepDownCommand>
-
-