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
public class SomQmgrMtaControlCommand extends SomQmgrCommand
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
Fields Modifier and Type Field Description static int
SOM_MTA_CONNECT
static int
SOM_MTA_DELAY_CLEAR
static int
SOM_MTA_DELAY_SET
static int
SOM_MTA_DELETE
static int
SOM_MTA_DELETE_MESSAGES
static int
SOM_MTA_DISABLE_INBOUND
static int
SOM_MTA_DISCONNECT
static int
SOM_MTA_ENABLE_INBOUND
static int
SOM_MTA_NONDELIVER_MESSAGES
static int
SOM_MTA_REPROCESS
static int
SOM_MTA_START
static int
SOM_MTA_STOP
static int
SOM_MTA_TIMEOUT_MESSAGES
-
Fields inherited from class com.isode.som.SomCommand
opListener, opSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrMtaControlCommand(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSelector(SomQmgrSelector sel)
Add a Selector to the commandjava.lang.String
getCommandString()
java.lang.String
getSubcommand()
void
setDelay(SomUtcTime delay)
Set the delay value for the SOM_MTA_DELAY_SET commandvoid
setReason(java.lang.String r)
Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES command-
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_MTA_STOP
public static final int SOM_MTA_STOP
- See Also:
- Constant Field Values
-
SOM_MTA_START
public static final int SOM_MTA_START
- See Also:
- Constant Field Values
-
SOM_MTA_DELAY_CLEAR
public static final int SOM_MTA_DELAY_CLEAR
- See Also:
- Constant Field Values
-
SOM_MTA_DELAY_SET
public static final int SOM_MTA_DELAY_SET
- See Also:
- Constant Field Values
-
SOM_MTA_DELETE
public static final int SOM_MTA_DELETE
- See Also:
- Constant Field Values
-
SOM_MTA_CONNECT
public static final int SOM_MTA_CONNECT
- See Also:
- Constant Field Values
-
SOM_MTA_DISCONNECT
public static final int SOM_MTA_DISCONNECT
- See Also:
- Constant Field Values
-
SOM_MTA_ENABLE_INBOUND
public static final int SOM_MTA_ENABLE_INBOUND
- See Also:
- Constant Field Values
-
SOM_MTA_DISABLE_INBOUND
public static final int SOM_MTA_DISABLE_INBOUND
- See Also:
- Constant Field Values
-
SOM_MTA_DELETE_MESSAGES
public static final int SOM_MTA_DELETE_MESSAGES
- See Also:
- Constant Field Values
-
SOM_MTA_NONDELIVER_MESSAGES
public static final int SOM_MTA_NONDELIVER_MESSAGES
- See Also:
- Constant Field Values
-
SOM_MTA_TIMEOUT_MESSAGES
public static final int SOM_MTA_TIMEOUT_MESSAGES
- See Also:
- Constant Field Values
-
SOM_MTA_REPROCESS
public static final int SOM_MTA_REPROCESS
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
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 Detail
-
setDelay
public void setDelay(SomUtcTime delay)
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
public void setReason(java.lang.String r)
Set the reason string for the SOM_MTA_NONDELIVER_MESSAGES command- Parameters:
r
- Reason string, which may not be null
-
getSubcommand
public java.lang.String getSubcommand() throws SomException
- Throws:
SomException
-
addSelector
public void addSelector(SomQmgrSelector sel)
Add a Selector to the command- Parameters:
sel
- Selector which may be null
-
getCommandString
public java.lang.String getCommandString() throws SomException
- Overrides:
getCommandString
in classSomCommand
- Returns:
- The command string to be sent over the wire.
- Throws:
SomException
- Indicating a problem with the command
-
-