Package com.isode.som.qmgr
Class SomQmgrMtaControlCommand
java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
com.isode.som.qmgr.SomQmgrMtaControlCommand
- All Implemented Interfaces:
SomResponseProcessor
SOM Command which enables Control operations to be performed on MTAs.
Commands are:
SOM_MTA_STOP
SOM_MTA_START
SOM_MTA_DELAY_CLEAR
SOM_MTA_DELAY_SET
SOM_MMTA_DELETE
SOM_MTA_CONNECT
SOM_MTA_DISCONNECT
SOM_MTA_ENABLE_INBOUND
SOM_MTA_DISABLE_INBOUND
SOM_MTA_DELETE_MESSAGES
SOM_MTA_NONDELIVER_MESSAGES
SOM_MTA_TIMEOUT_MESSAGES
SOM_MTA_REPROCESS
- 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
static final int
static final int
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrMtaControlCommand
(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrMtaControlCommand object.SomQmgrMtaControlCommand
(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrMtaControlCommand object with a Selector -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a Selector to the commandvoid
setDelay
(SomUtcTime delay) Set the delay value for the SOM_MTA_DELAY_SET commandvoid
Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES commandMethods 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_MTA_STOP
public static final int SOM_MTA_STOP- See Also:
-
SOM_MTA_START
public static final int SOM_MTA_START- See Also:
-
SOM_MTA_DELAY_CLEAR
public static final int SOM_MTA_DELAY_CLEAR- See Also:
-
SOM_MTA_DELAY_SET
public static final int SOM_MTA_DELAY_SET- See Also:
-
SOM_MTA_DELETE
public static final int SOM_MTA_DELETE- See Also:
-
SOM_MTA_CONNECT
public static final int SOM_MTA_CONNECT- See Also:
-
SOM_MTA_DISCONNECT
public static final int SOM_MTA_DISCONNECT- See Also:
-
SOM_MTA_ENABLE_INBOUND
public static final int SOM_MTA_ENABLE_INBOUND- See Also:
-
SOM_MTA_DISABLE_INBOUND
public static final int SOM_MTA_DISABLE_INBOUND- See Also:
-
SOM_MTA_DELETE_MESSAGES
public static final int SOM_MTA_DELETE_MESSAGES- See Also:
-
SOM_MTA_NONDELIVER_MESSAGES
public static final int SOM_MTA_NONDELIVER_MESSAGES- See Also:
-
SOM_MTA_TIMEOUT_MESSAGES
public static final int SOM_MTA_TIMEOUT_MESSAGES- See Also:
-
SOM_MTA_REPROCESS
public static final int SOM_MTA_REPROCESS- See Also:
-
-
Constructor Details
-
SomQmgrMtaControlCommand
public SomQmgrMtaControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrMtaControlCommand object.- Parameters:
session
- Session for command which may not be nullop
- Operation codeobject
- Handler object for result which may not be nulllistener
- Listener for command completion which may be null
-
SomQmgrMtaControlCommand
public SomQmgrMtaControlCommand(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrMtaControlCommand object with a Selector- Parameters:
session
- Session for command which may not be nullop
- Operation codesel
- Selector which may be nullobject
- Handler object for result which may not be nulllistener
- Listener for command completion which may be null
-
-
Method Details
-
setDelay
Set the delay value for the SOM_MTA_DELAY_SET command- Parameters:
delay
- Time to delay until (UTC Time String) which may not be null
-
setReason
Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES command- Parameters:
r
- Reason string, which may not be null
-
getSubcommand
- Throws:
SomException
-
addSelector
Add a Selector to the command- Parameters:
sel
- Selector which may be null
-
getCommandString
- Overrides:
getCommandString
in classSomCommand
- Returns:
- The command string to be sent over the wire.
- Throws:
SomException
- Indicating a problem with the command
-