public class SomQmgrChannelControlCommand extends SomQmgrCommand
Modifier and Type | Field and Description |
---|---|
static int |
SOM_CHANNEL_CONNECT |
static int |
SOM_CHANNEL_DELAY_CLEAR |
static int |
SOM_CHANNEL_DELAY_SET |
static int |
SOM_CHANNEL_DELETE_MESSAGES |
static int |
SOM_CHANNEL_DISABLE_INBOUND |
static int |
SOM_CHANNEL_ENABLE_INBOUND |
static int |
SOM_CHANNEL_MINIMISE |
static int |
SOM_CHANNEL_NONDELIVER_MESSAGES |
static int |
SOM_CHANNEL_REPROCESS_MESSAGES |
static int |
SOM_CHANNEL_REPROCESS_MTAS |
static int |
SOM_CHANNEL_START |
static int |
SOM_CHANNEL_STOP |
static int |
SOM_CHANNEL_TIMEOUT_MESSAGES |
opListener, opSession
Constructor and Description |
---|
SomQmgrChannelControlCommand(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.
|
Modifier and Type | Method and Description |
---|---|
void |
addSelector(SomQmgrSelector sel)
Add a selector into a command object
|
java.lang.String |
getCommandString()
Get the command string to be sent to the Queue Manager
|
java.lang.String |
getSubcommand()
Get the sub command string
|
void |
haveMta(java.lang.Boolean val)
Set flag which indicates whether an mtaname regexp should be included in
some control commands.
|
void |
setDelay(SomUtcTime d)
Configure the delay value to be used in the DELAY SET subcommand
|
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
|
void |
setMtaName(java.lang.String m)
Set the MTA name value to be used in the CHANNEL CONNECT subcommand
|
void |
setReason(java.lang.String r)
Set the reason string for NONDELIVER MESSAGES operation
|
getHandler, processResponse
dispatch, getSession, notifyListener, notifyListener, notifyListener
public static final int SOM_CHANNEL_STOP
public static final int SOM_CHANNEL_START
public static final int SOM_CHANNEL_DELAY_CLEAR
public static final int SOM_CHANNEL_DELAY_SET
public static final int SOM_CHANNEL_ENABLE_INBOUND
public static final int SOM_CHANNEL_DISABLE_INBOUND
public static final int SOM_CHANNEL_CONNECT
public static final int SOM_CHANNEL_MINIMISE
public static final int SOM_CHANNEL_DELETE_MESSAGES
public static final int SOM_CHANNEL_NONDELIVER_MESSAGES
public static final int SOM_CHANNEL_TIMEOUT_MESSAGES
public static final int SOM_CHANNEL_REPROCESS_MTAS
public static final int SOM_CHANNEL_REPROCESS_MESSAGES
public SomQmgrChannelControlCommand(SomSession session, int op, SomQmgrHandler object, SomCommandListener listener)
session
- Session with which command is associatedop
- Subcommand codeobject
- Result handler objectlistener
- Listener for notification of operation completionpublic SomQmgrChannelControlCommand(SomSession session, int op, SomQmgrSelector sel, SomQmgrHandler object, SomCommandListener listener)
session
- Session with which command is associatedop
- Subcommand codesel
- Selector to includeobject
- Result handler objectlistener
- Listener for notification of operation completionpublic void setDelay(SomUtcTime d)
d
- The time until which to delay the channelpublic void setMtaName(java.lang.String m)
m
- MTA name to connect topublic void haveMta(java.lang.Boolean val)
val
- indicates whether this command should include a regexp or notpublic 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 void setReason(java.lang.String r)
r
- reason string to insert into NDRpublic java.lang.String getSubcommand() throws SomException
SomException
public void addSelector(SomQmgrSelector sel)
sel
- Selector to addpublic 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