Package com.isode.som.qmgr.objects
Class SomQmgrMta
- java.lang.Object
-
- com.isode.som.qmgr.objects.SomQmgrObject
-
- com.isode.som.qmgr.objects.SomQmgrMta
-
- All Implemented Interfaces:
SomQmgrHandler,SomHandler
public class SomQmgrMta extends SomQmgrObject implements SomQmgrHandler
Class which models a Peer MTA object within M-Switch- Author:
- tc
-
-
Field Summary
-
Fields inherited from class com.isode.som.qmgr.objects.SomQmgrObject
errortext, somSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrMta(SomSession session)Create a new MTA objectSomQmgrMta(SomSession session, java.lang.String[] pairs)Create a new MTA object, populating it from the attribute pairs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringactive()Test whether this MTA is active or notbooleanactiveBool()Test whether MTA activejava.lang.IntegeractiveNumber()Get number of active associations on this MTAvoidaddMessage(SomQmgrMessage object)Add a new message to the objectjava.lang.IntegeraddressesIn()Get total number of inbound addresses handledjava.lang.IntegeraddressesOut()Get total number of outbound addresses handledjava.lang.StringbuildInfoString()Generate an information string for this MTAjava.lang.StringcachedUntil()Get time until which this MTA is cachedjava.lang.Stringchannel()Get channel name for this MTAvoidclear(SomCommandListener listener)Clear any delay on this MTAvoidconnect(SomCommandListener listener)Connect to this permanent peer MTAjava.lang.StringcreationTime()Get creation time of this MTAvoiddelay(int mins, SomCommandListener listener)Delay this MTAvoiddelete(SomCommandListener listener)Delete this permanent peer MTAvoiddeleteMessages(SomCommandListener listener)Delete all the messages on this MTAjava.lang.Stringdescription()Get MTA descriptionvoiddisable(SomCommandListener listener)Disable this MTAvoiddisableInbound(SomCommandListener listener)Disable inbound connections to this peer MTAvoiddisconnect(SomCommandListener listener)Disconnect from this permanent peer MTAjava.lang.Booleandiverted()Whether MTA has the 'divert' flag set or notvoiddownwardsforce(SomCommandListener listener)Clear delays and enable this MTA and subordinate messagesvoidenable(SomCommandListener listener)Enable this MTA, if disabledjava.lang.Stringenabled()Get string indicating whether MTA is enabledbooleanenabledBool()Test whether MTA enabledjava.lang.StringenabledInbound()Check whether this MTA is enabled for inbound connectionsbooleanenabledInboundBool()Check whether this MTA is enabled for inbound connectionsvoidenableInbound(SomCommandListener listener)Enable inbound connections to this peer MTAjava.lang.IntegererrorCount()Get count of errors on this MTAjava.lang.IntegerfailedConversions()Get count of failed conversions on this MTAjava.lang.IntegerfailedOutAssoc()Get count of failed outbound associations on this MTASomQmgrAssociation[]getAssociations()Get the associations subordinate to this MTASomQmgrInboundMessage[]getInboundMessages()Get the inbound messages subordinate to this MTASomQmgrMessage[]getMessages()Get the messages subordinate to this MTAjava.lang.StringgetMtaName()Get the name of this MTASomQmgrSchedule[]getSchedules()Get the schedules subordinate to this MTAvoidgetStatus(SomCommandListener listener)Update the status of this MTA object by querying the Queue ManagervoidgetSubordinateMessages(SomCommandListener listener)Get the subordinate messages of this MTAvoidgetSubordinateMessages(SomCommandListener listener, java.lang.Integer sizelimit)Get the subordinate messages of this MTAvoidhandleBindResponse(int status, java.lang.String detail)Handle the response to a Bind operationvoidhandleResponse(SomCommand obj, int status, SomMessage msg)Handles the response to commands which return a SomMessage object (i.e.voidhandleResponse(SomCommand command, int status, SomQmgrChannel object)Handles the response to commands which return a list of channel objectsvoidhandleResponse(SomCommand command, int status, SomQmgrMessage object)Handles the response to commands which return a list of message objectsvoidhandleResponse(SomCommand command, int status, SomQmgrMta object)Handles the response to commands which return a list of MTA objectsvoidhandleResponse(SomCommand command, int status, SomQmgrQueueManager object)voidhandleResponse(SomCommand command, int status, java.lang.String detail)Handles the response to control commands which return an OK/error response plus an info stringvoidhandleResponse(SomCommand command, int status, java.lang.String[] pairs)Handles the response to commands which return data about the current object - i.e.java.lang.Integerhierarchy()Get this MTA's hierarchy valuejava.lang.IntegerinAssoc()Get current number of inbound associations on this MTAjava.lang.Integerindex()Get this MTA's index valuejava.lang.Stringinfo()Get information string for Peer MTAjava.lang.StringlastAttempt()Get time of last attempted connectionjava.lang.StringlastInboundTime()Get time of last inbound association on this MTAjava.lang.StringlastOutboundTime()Get time of last outbound association on this MTAjava.lang.StringlastSuccess()Get time of last successful connectionjava.lang.IntegerloopsDetected()Get count of loops detected on this MTAjava.lang.IntegermaxInboundConnections()Get maximum permitted number of inbound connectionsjava.lang.IntegermaxOutboundConnections()Get maximum permitted number of outbound connectionsjava.lang.IntegermessagesIn()Get total number of inbound messages receivedjava.lang.IntegermessagesOut()Get total number of outbound messages sentjava.lang.Stringmta()Get MTA namejava.lang.StringmtaConnecting()Test whether MTA is currently connectingbooleanmtaConnectingBool()Test whether MTA is currently connectingvoidnondeliverMessages(java.lang.String reason, SomCommandListener listener)Nondeliver all the messages on this MTAjava.lang.IntegernumberMessages()Get number of messages queuedjava.lang.IntegernumberReports()Get number of reports queuedjava.lang.StringoldestMessage()Get age of oldest messagejava.lang.StringoldestMessageId()Get Queue Id of oldest messagejava.lang.IntegeroutboundAssociations()Get number of current outbound associationsvoidparsePairs(java.lang.String[] pairs)Parse the Attribute pairs passed injava.lang.Stringprotocol()Get protocol id for MTAjava.lang.IntegerreceivedVolume()Get total volume of received messagesvoidrefreshSubordinates(SomCommandListener listener)Refresh the list of subordinate messages of this MTAvoidrefreshSubordinates(SomCommandListener listener, java.lang.Integer sizelimit)Refresh the list of subordinate messages of this MTA, with size limitjava.lang.StringrefuseStatus()Get last outbound connection refusal status as x.y.z stringjava.lang.StringrefuseText()Get last outbound connection refusal reason textjava.lang.StringrefuseTime()Get last outbound connection refusal timejava.lang.IntegerrejectedAssoc()Get number of rejected inbound connectionsjava.lang.IntegerrejectedMessage()Get number of rejected inbound messagesjava.lang.IntegerrejectStatus()Get last inbound connection rejection status as x.y.z stringjava.lang.StringrejectTime()Get last inbound connection reject timevoidremoveFromArray(java.util.ArrayList<SomQmgrMta> mtas)Remove this MTA from the array passed invoidreprocess(SomCommandListener listener)Reprocess all messages on this MTAjava.lang.Stringrerouted()voidsetSomVersion(java.lang.Integer v)Set the SOM version associated with this MTAjava.lang.IntegerstoredRecipients()Get the number of stored recipientsjava.lang.IntegersuccessfulConversions()Get the number of successful conversions (for a shaper channel MTA)voidtimeoutMessages(SomCommandListener listener)Time out all the messages on this MTAjava.lang.IntegertotalInAssoc()Get total number of inbound associationsjava.lang.IntegertotalOutAssoc()Get total number of outbound associationsjava.lang.IntegertransmittedVolume()Get total volume of transmitted messagesjava.lang.IntegervolumeMessages()Get volume of messages queued-
Methods inherited from class com.isode.som.qmgr.objects.SomQmgrObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getDoubleAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, print, print_str, removeBindListener, setSkipNotifications
-
-
-
-
Constructor Detail
-
SomQmgrMta
public SomQmgrMta(SomSession session)
Create a new MTA object- Parameters:
session- Session which the message is associated with, which cannot be null
-
SomQmgrMta
public SomQmgrMta(SomSession session, java.lang.String[] pairs)
Create a new MTA object, populating it from the attribute pairs- Parameters:
session- Session which the message is associated with, which cannot be nullpairs- Attribute pairs to use which cannot be null
-
-
Method Detail
-
setSomVersion
public void setSomVersion(java.lang.Integer v)
Set the SOM version associated with this MTA- Parameters:
v- the version of SOM protocol used to access this MTA
-
getMtaName
public java.lang.String getMtaName()
Get the name of this MTA- Returns:
- The String representation of this MTA or "Unknown".
-
parsePairs
public void parsePairs(java.lang.String[] pairs)
Parse the Attribute pairs passed in- Overrides:
parsePairsin classSomQmgrObject- Parameters:
pairs- Array of attribute type:value strings which may not be null
-
addMessage
public void addMessage(SomQmgrMessage object)
Add a new message to the object- Parameters:
object- Message to add which cannot be null
-
getMessages
public SomQmgrMessage[] getMessages()
Get the messages subordinate to this MTA- Returns:
- Array of messages
-
removeFromArray
public void removeFromArray(java.util.ArrayList<SomQmgrMta> mtas)
Remove this MTA from the array passed in- Parameters:
mtas- Array of MTAs from which this one should be remove, which cannot be null
-
getInboundMessages
public SomQmgrInboundMessage[] getInboundMessages()
Get the inbound messages subordinate to this MTA- Returns:
- Array of inbound messages
-
getAssociations
public SomQmgrAssociation[] getAssociations()
Get the associations subordinate to this MTA- Returns:
- Array of associations
-
getSchedules
public SomQmgrSchedule[] getSchedules()
Get the schedules subordinate to this MTA- Returns:
- Array of schedules
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String detail)
Description copied from interface:SomQmgrHandlerHandles the response to control commands which return an OK/error response plus an info string- Specified by:
handleResponsein interfaceSomHandler- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusdetail- detail on error
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
Description copied from interface:SomQmgrHandlerHandles the response to commands which return data about the current object - i.e. we are refreshing an existing object.- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statuspairs- data pairs
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrMta object)
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a list of MTA objects- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusobject- a SOM Qmgr MTA object
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrChannel object)
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a list of channel objects- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusobject- a channel object
-
handleResponse
public void handleResponse(SomCommand obj, int status, SomMessage msg)
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a SomMessage object (i.e. read from the Queue or Archive).- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
obj- the SOM commandstatus- operation statusmsg- a message object
-
handleBindResponse
public void handleBindResponse(int status, java.lang.String detail)Description copied from interface:SomHandlerHandle the response to a Bind operation- Specified by:
handleBindResponsein interfaceSomHandler- Parameters:
status- operation statusdetail- error detail on failure
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrQueueManager object)
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrMessage object)
Description copied from interface:SomQmgrHandlerHandles the response to commands which return a list of message objects- Specified by:
handleResponsein interfaceSomQmgrHandler- Parameters:
command- the SOM commandstatus- operation statusobject- a qmgr message object
-
getStatus
public void getStatus(SomCommandListener listener) throws SomException
Update the status of this MTA object by querying the Queue Manager- Parameters:
listener- Listener to notify when update complete, which may be null- Throws:
SomException- on error
-
refreshSubordinates
public void refreshSubordinates(SomCommandListener listener) throws SomException
Refresh the list of subordinate messages of this MTA- Parameters:
listener- Listener to notify when update complete, which may be null- Throws:
SomException- on error
-
refreshSubordinates
public void refreshSubordinates(SomCommandListener listener, java.lang.Integer sizelimit) throws SomException
Refresh the list of subordinate messages of this MTA, with size limit- Parameters:
listener- Listener to notify when update complete, which may be nullsizelimit- Limit on number of entries to return, which may not be null- Throws:
SomException- on error
-
buildInfoString
public java.lang.String buildInfoString()
Generate an information string for this MTA- Returns:
- info string
-
getSubordinateMessages
public void getSubordinateMessages(SomCommandListener listener) throws SomException
Get the subordinate messages of this MTA- Parameters:
listener- Listener to notify when update complete, which may be null- Throws:
SomException- on error
-
getSubordinateMessages
public void getSubordinateMessages(SomCommandListener listener, java.lang.Integer sizelimit) throws SomException
Get the subordinate messages of this MTA- Parameters:
listener- Listener to notify when update complete, which may be nullsizelimit- Limit on number of messages, which may not be null- Throws:
SomException- on error
-
clear
public void clear(SomCommandListener listener) throws SomException
Clear any delay on this MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
enable
public void enable(SomCommandListener listener) throws SomException
Enable this MTA, if disabled- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
disable
public void disable(SomCommandListener listener) throws SomException
Disable this MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
delay
public void delay(int mins, SomCommandListener listener) throws SomExceptionDelay this MTA- Parameters:
mins- Number of minutes to delay bylistener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
downwardsforce
public void downwardsforce(SomCommandListener listener) throws SomException
Clear delays and enable this MTA and subordinate messages- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
reprocess
public void reprocess(SomCommandListener listener) throws SomException
Reprocess all messages on this MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
delete
public void delete(SomCommandListener listener) throws SomException
Delete this permanent peer MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
connect
public void connect(SomCommandListener listener) throws SomException
Connect to this permanent peer MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
disconnect
public void disconnect(SomCommandListener listener) throws SomException
Disconnect from this permanent peer MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
enableInbound
public void enableInbound(SomCommandListener listener) throws SomException
Enable inbound connections to this peer MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
disableInbound
public void disableInbound(SomCommandListener listener) throws SomException
Disable inbound connections to this peer MTA- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
active
public java.lang.String active() throws SomExceptionTest whether this MTA is active or not- Returns:
- true if MTA is active
- Throws:
SomException- on error
-
activeNumber
public java.lang.Integer activeNumber() throws SomExceptionGet number of active associations on this MTA- Returns:
- Number of active associations
- Throws:
SomException- on error
-
cachedUntil
public java.lang.String cachedUntil() throws SomExceptionGet time until which this MTA is cached- Returns:
- Time until which MTA is cached (UTC Time String)
- Throws:
SomException- on error
-
channel
public java.lang.String channel() throws SomExceptionGet channel name for this MTA- Returns:
- Channel name
- Throws:
SomException- on error
-
enabled
public java.lang.String enabled() throws SomExceptionGet string indicating whether MTA is enabled- Returns:
- String "True" if MTA enabled, else "False"
- Throws:
SomException- on error
-
activeBool
public boolean activeBool() throws SomExceptionTest whether MTA active- Returns:
- true if active
- Throws:
SomException- on error
-
enabledBool
public boolean enabledBool() throws SomExceptionTest whether MTA enabled- Returns:
- true if enabled
- Throws:
SomException- on error
-
info
public java.lang.String info() throws SomExceptionGet information string for Peer MTA- Returns:
- Information string
- Throws:
SomException- on error
-
lastAttempt
public java.lang.String lastAttempt() throws SomExceptionGet time of last attempted connection- Returns:
- Time of last attempted connection (UTC time string)
- Throws:
SomException- on error
-
lastSuccess
public java.lang.String lastSuccess() throws SomExceptionGet time of last successful connection- Returns:
- Time of last successful connection (UTC time string)
- Throws:
SomException- on error
-
mta
public java.lang.String mta() throws SomExceptionGet MTA name- Returns:
- MTA Name
- Throws:
SomException- on error
-
numberMessages
public java.lang.Integer numberMessages() throws SomExceptionGet number of messages queued- Returns:
- Number of messages on MTA
- Throws:
SomException- on error
-
numberReports
public java.lang.Integer numberReports() throws SomExceptionGet number of reports queued- Returns:
- Number of reports on MTA
- Throws:
SomException- on error
-
oldestMessage
public java.lang.String oldestMessage() throws SomExceptionGet age of oldest message- Returns:
- Age of oldest message (UTC Time string)
- Throws:
SomException- on error
-
volumeMessages
public java.lang.Integer volumeMessages() throws SomExceptionGet volume of messages queued- Returns:
- Volume of messages on MTA (bytes)
- Throws:
SomException- on error
-
addressesIn
public java.lang.Integer addressesIn() throws SomExceptionGet total number of inbound addresses handled- Returns:
- Total number of inbound addresses
- Throws:
SomException- on error
-
addressesOut
public java.lang.Integer addressesOut() throws SomExceptionGet total number of outbound addresses handled- Returns:
- Total number of outbound addresses
- Throws:
SomException- on error
-
creationTime
public java.lang.String creationTime() throws SomExceptionGet creation time of this MTA- Returns:
- Creation time of MTA (UTC Time string)
- Throws:
SomException- on error
-
description
public java.lang.String description() throws SomExceptionGet MTA description- Returns:
- MTA description
- Throws:
SomException- on error
-
enabledInboundBool
public boolean enabledInboundBool() throws SomExceptionCheck whether this MTA is enabled for inbound connections- Returns:
- true if enabled for inbound connections
- Throws:
SomException- on error
-
enabledInbound
public java.lang.String enabledInbound() throws SomExceptionCheck whether this MTA is enabled for inbound connections- Returns:
- "True" if enabled for inbound connections
- Throws:
SomException- on error
-
errorCount
public java.lang.Integer errorCount() throws SomExceptionGet count of errors on this MTA- Returns:
- error count
- Throws:
SomException- on error
-
failedConversions
public java.lang.Integer failedConversions() throws SomExceptionGet count of failed conversions on this MTA- Returns:
- count of failed conversions
- Throws:
SomException- on error
-
failedOutAssoc
public java.lang.Integer failedOutAssoc() throws SomExceptionGet count of failed outbound associations on this MTA- Returns:
- count of failed outbound associations
- Throws:
SomException- on error
-
hierarchy
public java.lang.Integer hierarchy() throws SomExceptionGet this MTA's hierarchy value- Returns:
- hierarchy value
- Throws:
SomException- on error
-
inAssoc
public java.lang.Integer inAssoc() throws SomExceptionGet current number of inbound associations on this MTA- Returns:
- current number of inbound associations
- Throws:
SomException- on error
-
index
public java.lang.Integer index() throws SomExceptionGet this MTA's index value- Returns:
- index value
- Throws:
SomException- on error
-
lastInboundTime
public java.lang.String lastInboundTime() throws SomExceptionGet time of last inbound association on this MTA- Returns:
- time of inbound associations (UTC Time string)
- Throws:
SomException- on error
-
lastOutboundTime
public java.lang.String lastOutboundTime() throws SomExceptionGet time of last outbound association on this MTA- Returns:
- time of outbound associations (UTC Time string)
- Throws:
SomException- on error
-
loopsDetected
public java.lang.Integer loopsDetected() throws SomExceptionGet count of loops detected on this MTA- Returns:
- count of loops detected
- Throws:
SomException- on error
-
maxInboundConnections
public java.lang.Integer maxInboundConnections() throws SomExceptionGet maximum permitted number of inbound connections- Returns:
- maximum permitted inbound connections
- Throws:
SomException- on error
-
maxOutboundConnections
public java.lang.Integer maxOutboundConnections() throws SomExceptionGet maximum permitted number of outbound connections- Returns:
- maximum permitted outbound connections
- Throws:
SomException- on error
-
messagesIn
public java.lang.Integer messagesIn() throws SomExceptionGet total number of inbound messages received- Returns:
- total number of inbound messages received
- Throws:
SomException- on error
-
messagesOut
public java.lang.Integer messagesOut() throws SomExceptionGet total number of outbound messages sent- Returns:
- total number of outbound messages sent
- Throws:
SomException- on error
-
mtaConnectingBool
public boolean mtaConnectingBool() throws SomExceptionTest whether MTA is currently connecting- Returns:
- true if connecting
- Throws:
SomException- on error
-
mtaConnecting
public java.lang.String mtaConnecting() throws SomExceptionTest whether MTA is currently connecting- Returns:
- string "True" if connecting
- Throws:
SomException- on error
-
oldestMessageId
public java.lang.String oldestMessageId() throws SomExceptionGet Queue Id of oldest message- Returns:
- queueid of oldest message
- Throws:
SomException- on error
-
outboundAssociations
public java.lang.Integer outboundAssociations() throws SomExceptionGet number of current outbound associations- Returns:
- current number of outbound associations
- Throws:
SomException- on error
-
protocol
public java.lang.String protocol() throws SomExceptionGet protocol id for MTA- Returns:
- String encoding of protocol id
- Throws:
SomException- on error
-
receivedVolume
public java.lang.Integer receivedVolume() throws SomExceptionGet total volume of received messages- Returns:
- total volume of received messages
- Throws:
SomException- on error
-
refuseStatus
public java.lang.String refuseStatus() throws SomExceptionGet last outbound connection refusal status as x.y.z string- Returns:
- Last connection refusal status
- Throws:
SomException- on error
-
refuseText
public java.lang.String refuseText() throws SomExceptionGet last outbound connection refusal reason text- Returns:
- Last connection refusal reason text
- Throws:
SomException- on error
-
refuseTime
public java.lang.String refuseTime() throws SomExceptionGet last outbound connection refusal time- Returns:
- Last connection refusal time (UTC Time String)
- Throws:
SomException- on error
-
rejectTime
public java.lang.String rejectTime() throws SomExceptionGet last inbound connection reject time- Returns:
- Last connection reject time (UTC Time String)
- Throws:
SomException- on error
-
rejectedAssoc
public java.lang.Integer rejectedAssoc() throws SomExceptionGet number of rejected inbound connections- Returns:
- Total number of rejected inbound connections
- Throws:
SomException- on error
-
rejectedMessage
public java.lang.Integer rejectedMessage() throws SomExceptionGet number of rejected inbound messages- Returns:
- Total number of rejected inbound messages
- Throws:
SomException- on error
-
rejectStatus
public java.lang.Integer rejectStatus() throws SomExceptionGet last inbound connection rejection status as x.y.z string- Returns:
- Last inbound connection rejection status
- Throws:
SomException- on error
-
storedRecipients
public java.lang.Integer storedRecipients() throws SomExceptionGet the number of stored recipients- Returns:
- Number of stored recipients
- Throws:
SomException- on error
-
successfulConversions
public java.lang.Integer successfulConversions() throws SomExceptionGet the number of successful conversions (for a shaper channel MTA)- Returns:
- Number of successful conversions
- Throws:
SomException- on error
-
totalInAssoc
public java.lang.Integer totalInAssoc() throws SomExceptionGet total number of inbound associations- Returns:
- Total number of inbound associations
- Throws:
SomException- on error
-
totalOutAssoc
public java.lang.Integer totalOutAssoc() throws SomExceptionGet total number of outbound associations- Returns:
- Total number of outbound associations
- Throws:
SomException- on error
-
diverted
public java.lang.Boolean diverted() throws SomExceptionWhether MTA has the 'divert' flag set or not- Returns:
- Diverted or not
- Throws:
SomException- on error
-
transmittedVolume
public java.lang.Integer transmittedVolume() throws SomExceptionGet total volume of transmitted messages- Returns:
- Total volume of transmitted messages (bytes)
- Throws:
SomException- on error
-
rerouted
public java.lang.String rerouted() throws SomException- Throws:
SomException
-
deleteMessages
public void deleteMessages(SomCommandListener listener) throws SomException
Delete all the messages on this MTA- Parameters:
listener- Listener object which will be notified when complete which may be null- Throws:
SomException- on error
-
nondeliverMessages
public void nondeliverMessages(java.lang.String reason, SomCommandListener listener) throws SomExceptionNondeliver all the messages on this MTA- Parameters:
reason- String reason text which may not be nulllistener- Listener object which will be notified when complete which may be null- Throws:
SomException- on error
-
timeoutMessages
public void timeoutMessages(SomCommandListener listener) throws SomException
Time out all the messages on this MTA- Parameters:
listener- Listener object which will be notified when complete which may be null- Throws:
SomException- on error
-
-