public class SomQmgrControlCommand extends SomQmgrCommand
Modifier and Type | Field and 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 |
opListener, opSession
Constructor and Description |
---|
SomQmgrControlCommand(SomSession session,
int op,
SomQmgrHandler object,
SomCommandListener listener)
Create a new SomQmgrControlCommand object
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCommandString()
Generate the command string
|
void |
setMinimisePriority(int max)
Set the maximum priority to which the MINIMISE operation should apply
|
void |
setMinimiseStart(SomUtcTime time)
Set the start time for the MINIMISE operation
|
void |
setMinimiseStop(SomUtcTime time)
Set the stop time for the MINIMISE operation
|
getHandler, processResponse
dispatch, getSession, notifyListener, notifyListener, notifyListener
public static final int SOM_QMGR_DECREASE_MAX_CHANS
public static final int SOM_QMGR_INCREASE_MAX_CHANS
public static final int SOM_QMGR_DISABLE_ALL
public static final int SOM_QMGR_DISABLE_SUBMISSION
public static final int SOM_QMGR_ENABLE_ALL
public static final int SOM_QMGR_ENABLE_SUBMISSION
public static final int SOM_QMGR_REREAD_QUEUE
public static final int SOM_QMGR_RESTART
public static final int SOM_QMGR_SHUTDOWN
public static final int SOM_QMGR_MINIMISE
public static final int SOM_QMGR_LOAD_CONFIG
public SomQmgrControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener)
session
- Session for commandop
- Operation codeobject
- Result handler objectlistener
- Listener to be alerted when operation completepublic void setMinimiseStart(SomUtcTime time)
time
- at which MIMIMISE operation should come in to forcepublic void setMinimiseStop(SomUtcTime time)
time
- at which MIMIMISE operation should stoppublic void setMinimisePriority(int max)
max
- priority for MINIMISE operationpublic java.lang.String getCommandString() throws SomException
getCommandString
in class SomCommand
SomException
- Indicating a problem with the commandVersion: 18.0v6-0
Copyright (c) 2017-2020 Isode