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
public class SomQmgrControlCommand extends SomQmgrCommand
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
Fields Modifier and Type Field Description static int
SOM_QMGR_DECREASE_MAX_CHANS
static int
SOM_QMGR_DISABLE_ALL
static int
SOM_QMGR_DISABLE_SUBMISSION
static int
SOM_QMGR_ENABLE_ALL
static int
SOM_QMGR_ENABLE_SUBMISSION
static int
SOM_QMGR_INCREASE_MAX_CHANS
static int
SOM_QMGR_LOAD_CONFIG
static int
SOM_QMGR_MINIMISE
static int
SOM_QMGR_REREAD_QUEUE
static int
SOM_QMGR_RESTART
static int
SOM_QMGR_SHUTDOWN
-
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener)
Create a new SomQmgrControlCommand object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCommandString()
Generate 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 operation-
Methods inherited from class com.isode.som.qmgr.SomQmgrCommand
getHandler, processResponse
-
Methods inherited from class com.isode.som.SomCommand
dispatch, getSession, notifyListener, notifyListener, notifyListener
-
-
-
-
Field Detail
-
SOM_QMGR_DECREASE_MAX_CHANS
public static final int SOM_QMGR_DECREASE_MAX_CHANS
- See Also:
- Constant Field Values
-
SOM_QMGR_INCREASE_MAX_CHANS
public static final int SOM_QMGR_INCREASE_MAX_CHANS
- See Also:
- Constant Field Values
-
SOM_QMGR_DISABLE_ALL
public static final int SOM_QMGR_DISABLE_ALL
- See Also:
- Constant Field Values
-
SOM_QMGR_DISABLE_SUBMISSION
public static final int SOM_QMGR_DISABLE_SUBMISSION
- See Also:
- Constant Field Values
-
SOM_QMGR_ENABLE_ALL
public static final int SOM_QMGR_ENABLE_ALL
- See Also:
- Constant Field Values
-
SOM_QMGR_ENABLE_SUBMISSION
public static final int SOM_QMGR_ENABLE_SUBMISSION
- See Also:
- Constant Field Values
-
SOM_QMGR_REREAD_QUEUE
public static final int SOM_QMGR_REREAD_QUEUE
- See Also:
- Constant Field Values
-
SOM_QMGR_RESTART
public static final int SOM_QMGR_RESTART
- See Also:
- Constant Field Values
-
SOM_QMGR_SHUTDOWN
public static final int SOM_QMGR_SHUTDOWN
- See Also:
- Constant Field Values
-
SOM_QMGR_MINIMISE
public static final int SOM_QMGR_MINIMISE
- See Also:
- Constant Field Values
-
SOM_QMGR_LOAD_CONFIG
public static final int SOM_QMGR_LOAD_CONFIG
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
setMinimiseStart
public void setMinimiseStart(SomUtcTime time)
Set the start time for the MINIMISE operation- Parameters:
time
- at which MIMIMISE operation should come in to force
-
setMinimiseStop
public void setMinimiseStop(SomUtcTime time)
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
public java.lang.String getCommandString() throws SomException
Generate the command string- Overrides:
getCommandString
in classSomCommand
- Returns:
- command string
- Throws:
SomException
- Indicating a problem with the command
-
-