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 intSOM_MTA_CONNECTstatic intSOM_MTA_DELAY_CLEARstatic intSOM_MTA_DELAY_SETstatic intSOM_MTA_DELETEstatic intSOM_MTA_DELETE_MESSAGESstatic intSOM_MTA_DISABLE_INBOUNDstatic intSOM_MTA_DISCONNECTstatic intSOM_MTA_ENABLE_INBOUNDstatic intSOM_MTA_NONDELIVER_MESSAGESstatic intSOM_MTA_REPROCESSstatic intSOM_MTA_STARTstatic intSOM_MTA_STOPstatic intSOM_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 voidaddSelector(SomQmgrSelector sel)Add a Selector to the commandjava.lang.StringgetCommandString()java.lang.StringgetSubcommand()voidsetDelay(SomUtcTime delay)Set the delay value for the SOM_MTA_DELAY_SET commandvoidsetReason(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:
getCommandStringin classSomCommand- Returns:
- The command string to be sent over the wire.
- Throws:
SomException- Indicating a problem with the command
-
-