Package com.isode.som.qmgr
Class SomQmgrChannelControlCommand
java.lang.Object
com.isode.som.SomCommand
com.isode.som.qmgr.SomQmgrCommand
com.isode.som.qmgr.SomQmgrChannelControlCommand
- All Implemented Interfaces:
SomResponseProcessor
Class which provides Channel Control commands.
Sub commands are:
SOM_CHANNEL_STOP
SOM_CHANNEL_START
SOM_CHANNEL_DELAY_CLEAR
SOM_CHANNEL_DELAY_SET
SOM_CHANNEL_ENABLE_INBOUND
SOM_CHANNEL_DISABLE_INBOUND
SOM_CHANNEL_CONNECT
SOM_CHANNEL_MINIMISE
- 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
ConstructorsConstructorDescriptionSomQmgrChannelControlCommand
(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrChannelControlCommand object.SomQmgrChannelControlCommand
(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrChannelControlCommand object, with Selector. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Add a selector into a command objectGet the command string to be sent to the Queue ManagerGet the sub command stringvoid
Set flag which indicates whether an mtaname regexp should be included in some control commands.void
Configure the delay value to be used in the DELAY SET subcommandvoid
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 operationvoid
setMtaName
(String m) Set the MTA name value to be used in the CHANNEL CONNECT subcommandvoid
Set the reason string for NONDELIVER MESSAGES operationMethods 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_CHANNEL_STOP
public static final int SOM_CHANNEL_STOP- See Also:
-
SOM_CHANNEL_START
public static final int SOM_CHANNEL_START- See Also:
-
SOM_CHANNEL_DELAY_CLEAR
public static final int SOM_CHANNEL_DELAY_CLEAR- See Also:
-
SOM_CHANNEL_DELAY_SET
public static final int SOM_CHANNEL_DELAY_SET- See Also:
-
SOM_CHANNEL_ENABLE_INBOUND
public static final int SOM_CHANNEL_ENABLE_INBOUND- See Also:
-
SOM_CHANNEL_DISABLE_INBOUND
public static final int SOM_CHANNEL_DISABLE_INBOUND- See Also:
-
SOM_CHANNEL_CONNECT
public static final int SOM_CHANNEL_CONNECT- See Also:
-
SOM_CHANNEL_MINIMISE
public static final int SOM_CHANNEL_MINIMISE- See Also:
-
SOM_CHANNEL_DELETE_MESSAGES
public static final int SOM_CHANNEL_DELETE_MESSAGES- See Also:
-
SOM_CHANNEL_NONDELIVER_MESSAGES
public static final int SOM_CHANNEL_NONDELIVER_MESSAGES- See Also:
-
SOM_CHANNEL_TIMEOUT_MESSAGES
public static final int SOM_CHANNEL_TIMEOUT_MESSAGES- See Also:
-
SOM_CHANNEL_REPROCESS_MTAS
public static final int SOM_CHANNEL_REPROCESS_MTAS- See Also:
-
SOM_CHANNEL_REPROCESS_MESSAGES
public static final int SOM_CHANNEL_REPROCESS_MESSAGES- See Also:
-
-
Constructor Details
-
SomQmgrChannelControlCommand
public SomQmgrChannelControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrChannelControlCommand object.- Parameters:
session
- Session with which command is associatedop
- Subcommand codeobject
- Result handler objectlistener
- Listener for notification of operation completion
-
SomQmgrChannelControlCommand
public SomQmgrChannelControlCommand(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener) Create a new SomQmgrChannelControlCommand object, with Selector.- Parameters:
session
- Session with which command is associatedop
- Subcommand codesel
- Selector to includeobject
- Result handler objectlistener
- Listener for notification of operation completion
-
-
Method Details
-
setDelay
Configure the delay value to be used in the DELAY SET subcommand- Parameters:
d
- The time until which to delay the channel
-
setMtaName
Set the MTA name value to be used in the CHANNEL CONNECT subcommand- Parameters:
m
- MTA name to connect to
-
haveMta
Set flag which indicates whether an mtaname regexp should be included in some control commands.- Parameters:
val
- indicates whether this command should include a regexp or not- Since:
- R16.6
-
setMinimiseStart
Set the start time for the MINIMISE operation- Parameters:
time
- at which MIMIMISE operation should come in to force
-
setMinimiseStop
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
-
setReason
Set the reason string for NONDELIVER MESSAGES operation- Parameters:
r
- reason string to insert into NDR
-
getSubcommand
Get the sub command string- Returns:
- subcommand string
- Throws:
SomException
-
addSelector
Add a selector into a command object- Parameters:
sel
- Selector to add
-
getCommandString
Get the command string to be sent to the Queue Manager- Overrides:
getCommandString
in classSomCommand
- Returns:
- command string
- Throws:
SomException
- Indicating a problem with the command
-