Package com.isode.som.qmgr
Class SomQmgrControlCommand
java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
com.isode.som.qmgr.SomQmgrControlCommand
- All Implemented Interfaces:
SomResponseProcessor
Class which implements the commands which provide control of the Queue
Manager itself.
The control command available are:
DECREASE_MAX_CHANS
INCREASE_MAX_CHANS
DISABLE_ALL
DISABLE_SUBMISSION
ENABLE_ALL
ENABLE_SUBMISSION
REREAD_QUEUE
RESTART
SHUTDOWN
MINIMISE
LOAD_CONFIG
- Author:
- tc
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrControlCommand
(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrControlCommand object -
Method Summary
Modifier and TypeMethodDescriptionGenerate the command stringvoid
setMinimisePriority
(int max) Set the maximum priority to which the MINIMISE operation should applyvoid
setMinimiseStart
(SomUtcTime time) Set the start time for the MINIMISE operationvoid
setMinimiseStop
(SomUtcTime time) Set the stop time for the MINIMISE operationMethods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandler, processResponse
Methods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
Field Details
-
SOM_QMGR_DECREASE_MAX_CHANS
public static final int SOM_QMGR_DECREASE_MAX_CHANS- See Also:
-
SOM_QMGR_INCREASE_MAX_CHANS
public static final int SOM_QMGR_INCREASE_MAX_CHANS- See Also:
-
SOM_QMGR_DISABLE_ALL
public static final int SOM_QMGR_DISABLE_ALL- See Also:
-
SOM_QMGR_DISABLE_SUBMISSION
public static final int SOM_QMGR_DISABLE_SUBMISSION- See Also:
-
SOM_QMGR_ENABLE_ALL
public static final int SOM_QMGR_ENABLE_ALL- See Also:
-
SOM_QMGR_ENABLE_SUBMISSION
public static final int SOM_QMGR_ENABLE_SUBMISSION- See Also:
-
SOM_QMGR_REREAD_QUEUE
public static final int SOM_QMGR_REREAD_QUEUE- See Also:
-
SOM_QMGR_RESTART
public static final int SOM_QMGR_RESTART- See Also:
-
SOM_QMGR_SHUTDOWN
public static final int SOM_QMGR_SHUTDOWN- See Also:
-
SOM_QMGR_MINIMISE
public static final int SOM_QMGR_MINIMISE- See Also:
-
SOM_QMGR_LOAD_CONFIG
public static final int SOM_QMGR_LOAD_CONFIG- See Also:
-
-
Constructor Details
-
SomQmgrControlCommand
public SomQmgrControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrControlCommand object- Parameters:
session
- Session for commandop
- Operation codeobject
- Result handler objectlistener
- Listener to be alerted when operation complete
-
-
Method Details
-
setMinimiseStart
Set the start time for the MINIMISE operation- Parameters:
time
- at which MIMIMISE operation should come in to force
-
setMinimiseStop
Set the stop time for the MINIMISE operation- Parameters:
time
- at which MIMIMISE operation should stop
-
setMinimisePriority
public void setMinimisePriority(int max) Set the maximum priority to which the MINIMISE operation should apply- Parameters:
max
- priority for MINIMISE operation
-
getCommandString
Generate the command string- Overrides:
getCommandString
in classSomCommand
- Returns:
- command string
- Throws:
SomException
- Indicating a problem with the command
-