Package com.isode.som.qmgr.objects
Class SomQmgrChannel
- java.lang.Object
-
- com.isode.som.qmgr.objects.SomQmgrObject
-
- com.isode.som.qmgr.objects.SomQmgrChannel
-
- All Implemented Interfaces:
SomQmgrHandler,SomHandler
public class SomQmgrChannel extends SomQmgrObject implements SomQmgrHandler
This class models a Channel within M-Switch.- Author:
- tc
-
-
Field Summary
-
Fields inherited from class com.isode.som.qmgr.objects.SomQmgrObject
errortext, somSession
-
-
Constructor Summary
Constructors Constructor Description SomQmgrChannel(SomSession session)Create a new SOM Qmgr Channel objectSomQmgrChannel(SomSession session, java.lang.String[] pairs)Create a new SOM Qmgr Channel object, populating it
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegeraddressesIn()Get the number of inbound addresses which this channel has deal withjava.lang.IntegeraddressesOut()Get the number of outbound addresses which this channel has processedjava.lang.StringbuildInfoString()Generate an information string for the channel objectjava.lang.StringcachedUntil()Get a UTC Time String giving the time which the channel is delayed untiljava.lang.Stringchannel()Get the name of the channel.java.lang.StringchannelDescription()Get the channel's description stringjava.lang.Stringchantype()Get channel type as a stringintchanTypeInt()voidclear(SomCommandListener listener)Sends a command to clear any delay on the channel.voidclearMessages(SomCommandListener listener)Sends a command to clear any delay on the channel's subordinate Messages.voidclearMTADelay(java.lang.String mtaName, SomCommandListener listener)Sends a SOM command to clear a delay associated with a particular MTA.voidclearMtas(SomCommandListener listener)Sends a command to clear any delay on the channel's subordinate MTAs.voidconnect(java.lang.String mtaname, SomCommandListener listener)Sends a command to connect the channel to the specified MTAjava.lang.StringcreationTime()Get the time at which the channel was createdvoiddelay(int mins, SomCommandListener listener)Sends a command to delay the channel by a specified number of minutes.voiddeleteMessages(SomCommandListener listener)Delete all the messages on this channeljava.lang.Stringdirection()Get channel direction stringintdirectionInt()voiddisable(SomCommandListener listener)Sends a command to disable the channel.voiddisableInbound(SomCommandListener listener)Disable the channel from accepting inbound connection.voiddisconnect(SomCommandListener listener)Disconnect any peer MTAs which we are currently connected to.voiddisconnect(java.lang.String mtaName, SomCommandListener listener)Disconnect this channel from the specified MTA.voiddownwardsforce(SomCommandListener listener)Performs a "downwards force" on the channel - i.e.voidenable(SomCommandListener listener)Sends a command to enable the channel.java.lang.Stringenabled()Get string saying whether channel is enabled or notbooleanenabledBool()Get boolean indicating if channel is enabledjava.lang.StringenabledInbound()Test whether the channel is enabled for inbound connections.booleanenabledInboundBool()Test whether the channel is enabled for inbound connections.voidenableInbound(SomCommandListener listener)Enable the channel to accept inbound connection.java.lang.IntegererrorCount()Get a count of the number of error which the channel has encounteredjava.lang.IntegerfailedConversions()Get count of failed conversions.java.lang.IntegerfailedOutAssoc()Get count of failed outbound connectionsSomQmgrMessage[]getMessages()Return an array containing the Message objects which are subordinate to this channel.SomQmgrMtagetMTA(java.lang.String mtaName)Returns a SomQmgrMta object representing the external MTA this channel is connected to.java.lang.StringgetMTAError(java.lang.String mtaName)Returns the MTA refusal text for an MTA associated with this channel.SomQmgrMta[]getMtas()Return an array containing the MTA objects which are subordinate to this channel.voidgetStatus(SomCommandListener listener)Get the current status of this Channel.voidgetSubordinateMessages(SomCommandListener listener, java.lang.Integer sizelimit)Interrogate the channel object for its current set of subordinate MessagesvoidgetSubordinates(SomCommandListener listener, java.lang.Integer mtaSizeLimit, java.lang.Integer messageSizeLimit)Interrogate the channel object for its current set of subordinate MTAs or MessagesvoidhandleBindResponse(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 the channel hierarchy valuejava.lang.IntegerinAssoc()Get number of current inbound associationsintinAssocConnections(java.lang.String mtaName)Returns number of in bound Associations to this MTAjava.lang.Integerindex()Get the channel index numberbooleanisConnected(java.lang.String mtaName)Checks local cache of channel values to see if there is an outbound Association with the MTA given in mtaNamebooleanisConnecting(java.lang.String mtaName)Test whether this channel has a specific subordinate MTA which is currently connecting to a peer MTAbooleanisDelayed()Uses the cachedUntil() to tell if channel is delayed.java.lang.StringlastAttempt()Get UTC Time String indicating time of last connection attempt made by channeljava.lang.StringlastInboundTime()Get the time of the last inbound associationjava.lang.StringlastOutboundTime()Get the time of the last outbound associationjava.lang.StringlastSuccess()Get UTC Time String indicating time of last successful connection attempt made by channeljava.lang.IntegerloopsDetected()Get a count of the number of loops detected.java.lang.IntegermaxProcs()Get maximum processes value for channeljava.lang.IntegermessagesIn()Get total number of messages that have been transfered in.java.lang.IntegermessagesOut()Get total number of messages that have been transfered out.voidminimise(int priority, java.util.Date start, java.util.Date stop, SomCommandListener listener)Invoke a MINIMISE operation on this channeljava.lang.IntegerminimisePriority()Get current MINIMISE priority for channeljava.lang.StringminimiseStart()Get current MINIMISE start time for channeljava.lang.StringminimiseStop()Get current MINIMISE stop time for channelvoidnondeliverMessages(java.lang.String reason, SomCommandListener listener)Non-deliver all the messages on this channeljava.lang.IntegernumberActiveProcesses()Get current number of active processes on channeljava.lang.IntegernumberMessages()Get current number of messages queued on channeljava.lang.IntegernumberMtas()Get current number of peer MTAs on channeljava.lang.IntegernumberProcesses()Get the number of channel processes currently runningjava.lang.IntegernumberReports()Get current number of reports queued on channeljava.lang.StringoldestMessage()Get age of oldest message queued on channeljava.lang.StringoldestMessageId()Get the queueid of the oldest message on the channelintoutAssocConnections(java.lang.String mtaName)Returns number of out bound Associations to this MTAjava.lang.IntegeroutboundAssociations()Get the current number of outbound associationsjava.lang.Stringprotocol()Get channel protocol identifier (OID string)java.lang.IntegerreceivedVolume()Get total volume of received messages (bytes)java.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.StringrejectText()Get last inbound connection rejection textjava.lang.StringrejectTime()Get last inbound connection reject timevoidremoveFromArray(java.util.ArrayList<SomQmgrChannel> channels)Remove this channel from the array of channels passed in.voidreprocess(SomCommandListener listener)Perform a Reprocess operation on all Peer MTAs under this channel, or directly on any messages queuedvoidsetSomVersion(java.lang.Integer v)Set the SOM version number for the channel - this controls how the FORCE command is implemented.java.lang.IntegerstoredRecipients()Get the number of stored recipientsjava.lang.IntegersuccessfulConversions()Get the number of successful conversions (for a shaper channel)voidtimeoutMessages(SomCommandListener listener)Time out all the messages on this channeljava.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 on channel-
Methods inherited from class com.isode.som.qmgr.objects.SomQmgrObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getDoubleAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, parsePairs, print, print_str, removeBindListener, setSkipNotifications
-
-
-
-
Constructor Detail
-
SomQmgrChannel
public SomQmgrChannel(SomSession session)
Create a new SOM Qmgr Channel object- Parameters:
session- Session within which to create channel which cannot be null
-
SomQmgrChannel
public SomQmgrChannel(SomSession session, java.lang.String[] pairs)
Create a new SOM Qmgr Channel object, populating it- Parameters:
session- Session within which to create channel which cannot be nullpairs- type/value pairs
-
-
Method Detail
-
setSomVersion
public void setSomVersion(java.lang.Integer v)
Set the SOM version number for the channel - this controls how the FORCE command is implemented.- Parameters:
v- Som version number
-
removeFromArray
public void removeFromArray(java.util.ArrayList<SomQmgrChannel> channels)
Remove this channel from the array of channels passed in.- Parameters:
channels- Array of channels which may not be null
-
getMtas
public SomQmgrMta[] getMtas()
Return an array containing the MTA objects which are subordinate to this channel.- Returns:
- Array of subordinate MTAs which will not be null
-
getMessages
public SomQmgrMessage[] getMessages()
Return an array containing the Message objects which are subordinate to this channel.- Returns:
- Array of subordinate Messages which will not be null
-
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, 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, 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
-
handleResponse
public void handleResponse(SomCommand command, int status, SomQmgrQueueManager 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
-
isConnecting
public boolean isConnecting(java.lang.String mtaName) throws SomExceptionTest whether this channel has a specific subordinate MTA which is currently connecting to a peer MTA- Parameters:
mtaName- name of MTA to test which may not be null- Returns:
- true if this MTA exists and is currently connecting
- Throws:
SomException- on error
-
isConnected
public boolean isConnected(java.lang.String mtaName) throws SomExceptionChecks local cache of channel values to see if there is an outbound Association with the MTA given in mtaName- Parameters:
mtaName- the String representation of the external MTA. Must not be null.- Returns:
- either true or false.
- Throws:
SomException- is thrown if there is a problem reading the outboundAssociations value.
-
outAssocConnections
public int outAssocConnections(java.lang.String mtaName) throws SomExceptionReturns number of out bound Associations to this MTA- Parameters:
mtaName- Name of mta to check.- Returns:
- Number of out bound assoc
- Throws:
SomException- on error
-
inAssocConnections
public int inAssocConnections(java.lang.String mtaName) throws SomExceptionReturns number of in bound Associations to this MTA- Parameters:
mtaName- Name of MTA to check- Returns:
- number of inbound associations
- Throws:
SomException- on error
-
clearMTADelay
public void clearMTADelay(java.lang.String mtaName, SomCommandListener listener) throws SomExceptionSends a SOM command to clear a delay associated with a particular MTA.- Parameters:
mtaName- String representation of the external MTA, this channel is associated with, whose delay needs to be cleared. Must not be null.listener- SomCommandListener who will be called to handle the SOM response. Must not be null.- Throws:
SomException- is thrown if MTA delay cannot be cleared.
-
reprocess
public void reprocess(SomCommandListener listener) throws SomException
Perform a Reprocess operation on all Peer MTAs under this channel, or directly on any messages queued- Parameters:
listener- Listener to notify when operation is complete, which may be null- Throws:
SomException- on error
-
getMTAError
public java.lang.String getMTAError(java.lang.String mtaName) throws SomExceptionReturns the MTA refusal text for an MTA associated with this channel.- Parameters:
mtaName- The string representation of the external MTA. Must not be null.- Returns:
- The last refuse Text.
- Throws:
SomException- is thrown if the refuse text cannot be returned. This typically happens when there is no refuse text.
-
getMTA
public SomQmgrMta getMTA(java.lang.String mtaName) throws SomException
Returns a SomQmgrMta object representing the external MTA this channel is connected to.- Parameters:
mtaName- String representation of the external MTA. Must not be null.- Returns:
- SomQmgrMta object representing the external MTA this channel is connected to.
- Throws:
SomException- Thrown if we are not connected to the specified MTA.
-
disconnect
public void disconnect(java.lang.String mtaName, SomCommandListener listener) throws SomExceptionDisconnect this channel from the specified MTA. The SomCommandListener is called to handle the response.- Parameters:
mtaName- The string representation of the MTA we are disconnecting Must not be null.listener- The SomCommandListener called when we have a response. Must not be null.- Throws:
SomException- Thrown is we can't find an association, or disconnect.
-
getStatus
public void getStatus(SomCommandListener listener) throws SomException
Get the current status of this Channel.- Parameters:
listener- Listener object which will be notified when update complete which may be null- Throws:
SomException- on error
-
getSubordinates
public void getSubordinates(SomCommandListener listener, java.lang.Integer mtaSizeLimit, java.lang.Integer messageSizeLimit) throws SomException
Interrogate the channel object for its current set of subordinate MTAs or Messages- Parameters:
listener- Listener object which will be notified when update complete which may be nullmtaSizeLimit- Specifies the maximum number of MTAs to be returned. May not be null.messageSizeLimit- Specifies the maximum number of Message to be returned. May not be null.- Throws:
SomException- on error
-
getSubordinateMessages
public void getSubordinateMessages(SomCommandListener listener, java.lang.Integer sizelimit) throws SomException
Interrogate the channel object for its current set of subordinate Messages- Parameters:
listener- Listener object which will be notified when update complete which may be nullsizelimit- Specifies the maximum number of Message to be returned. May not be null.- Throws:
SomException- on error
-
buildInfoString
public java.lang.String buildInfoString()
Generate an information string for the channel object- Returns:
- Info string containing name, number of messages etc
-
clear
public void clear(SomCommandListener listener) throws SomException
Sends a command to clear any delay on the channel.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
clearMtas
public void clearMtas(SomCommandListener listener) throws SomException
Sends a command to clear any delay on the channel's subordinate MTAs.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
clearMessages
public void clearMessages(SomCommandListener listener) throws SomException
Sends a command to clear any delay on the channel's subordinate Messages.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
enable
public void enable(SomCommandListener listener) throws SomException
Sends a command to enable the channel.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
disable
public void disable(SomCommandListener listener) throws SomException
Sends a command to disable the channel.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
delay
public void delay(int mins, SomCommandListener listener) throws SomExceptionSends a command to delay the channel by a specified number of minutes.- Parameters:
mins- Number of minutes by which to delay channellistener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
connect
public void connect(java.lang.String mtaname, SomCommandListener listener) throws SomExceptionSends a command to connect the channel to the specified MTA- Parameters:
mtaname- Name of peer MTA to which to connectlistener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
downwardsforce
public void downwardsforce(SomCommandListener listener) throws SomException
Performs a "downwards force" on the channel - i.e. clear any delay on the channel and its subordinate objects.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
disconnect
public void disconnect(SomCommandListener listener) throws SomException
Disconnect any peer MTAs which we are currently connected to.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
enableInbound
public void enableInbound(SomCommandListener listener) throws SomException
Enable the channel to accept inbound connection.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
disableInbound
public void disableInbound(SomCommandListener listener) throws SomException
Disable the channel from accepting inbound connection.- Parameters:
listener- Listener object which will be notified when operation completes which may be null- Throws:
SomException- on error
-
channel
public java.lang.String channel() throws SomExceptionGet the name of the channel.- Returns:
- channel name
- Throws:
SomException- on error
-
channelDescription
public java.lang.String channelDescription() throws SomExceptionGet the channel's description string- Returns:
- description of channel
- Throws:
SomException- on error
-
cachedUntil
public java.lang.String cachedUntil() throws SomExceptionGet a UTC Time String giving the time which the channel is delayed until- Returns:
- Time until which channel is delayed
- Throws:
SomException- on error
-
isDelayed
public boolean isDelayed()
Uses the cachedUntil() to tell if channel is delayed.- Returns:
- true if there is a delay, otherwise false.
-
chantype
public java.lang.String chantype() throws SomExceptionGet channel type as a string- Returns:
- String indicating channel type
- Throws:
SomException- on error
-
chanTypeInt
public int chanTypeInt() throws SomException- Returns:
- 0 == mta, 1 == mts, 2==internal, 3==passive
- Throws:
SomException
-
direction
public java.lang.String direction() throws SomExceptionGet channel direction string- Returns:
- channel direction as string
- Throws:
SomException- on error
-
directionInt
public int directionInt() throws SomException- Returns:
- channel direction as int. 1 == inbound, 2 == outbound, 3 == both
- Throws:
SomException
-
enabled
public java.lang.String enabled() throws SomExceptionGet string saying whether channel is enabled or not- Returns:
- "True" if channel enabled, "False" otherwise
- Throws:
SomException- on error
-
enabledBool
public boolean enabledBool() throws SomExceptionGet boolean indicating if channel is enabled- Returns:
- true if channel enabled
- Throws:
SomException- on error
-
lastAttempt
public java.lang.String lastAttempt() throws SomExceptionGet UTC Time String indicating time of last connection attempt made by channel- Returns:
- time of last connection attempt
- Throws:
SomException- on error
-
lastSuccess
public java.lang.String lastSuccess() throws SomExceptionGet UTC Time String indicating time of last successful connection attempt made by channel- Returns:
- time of last successful connection attempt
- Throws:
SomException- on error
-
maxProcs
public java.lang.Integer maxProcs() throws SomExceptionGet maximum processes value for channel- Returns:
- maximum processes allowed for channel
- Throws:
SomException- on error
-
numberActiveProcesses
public java.lang.Integer numberActiveProcesses() throws SomExceptionGet current number of active processes on channel- Returns:
- active processes on channel
- Throws:
SomException- on error
-
numberMessages
public java.lang.Integer numberMessages() throws SomExceptionGet current number of messages queued on channel- Returns:
- number messages on channel
- Throws:
SomException- on error
-
numberMtas
public java.lang.Integer numberMtas() throws SomExceptionGet current number of peer MTAs on channel- Returns:
- number of peer MTAs on channel
- Throws:
SomException- on error
-
numberReports
public java.lang.Integer numberReports() throws SomExceptionGet current number of reports queued on channel- Returns:
- number of reports on channel
- Throws:
SomException- on error
-
oldestMessage
public java.lang.String oldestMessage() throws SomExceptionGet age of oldest message queued on channel- Returns:
- age of oldest message on channel, as UTC Time String
- Throws:
SomException- on error
-
volumeMessages
public java.lang.Integer volumeMessages() throws SomExceptionGet volume of messages queued on channel- Returns:
- Volume of messages (bytes) queued on channel
- Throws:
SomException- on error
-
addressesIn
public java.lang.Integer addressesIn() throws SomExceptionGet the number of inbound addresses which this channel has deal with- Returns:
- Number of inbound addresses handled
- Throws:
SomException- on error
-
addressesOut
public java.lang.Integer addressesOut() throws SomExceptionGet the number of outbound addresses which this channel has processed- Returns:
- Number of outbound addresses handled
- Throws:
SomException- on error
-
creationTime
public java.lang.String creationTime() throws SomExceptionGet the time at which the channel was created- Returns:
- Creation time as UTC Time String
- Throws:
SomException- on error
-
errorCount
public java.lang.Integer errorCount() throws SomExceptionGet a count of the number of error which the channel has encountered- Returns:
- Count of errors handled
- Throws:
SomException- on error
-
enabledInboundBool
public boolean enabledInboundBool() throws SomExceptionTest whether the channel is enabled for inbound connections.- Returns:
- true if enabled inbound
- Throws:
SomException- on error
-
enabledInbound
public java.lang.String enabledInbound() throws SomExceptionTest whether the channel is enabled for inbound connections.- Returns:
- string "True" if enabled inbound, else "fFalse"
- Throws:
SomException- on error
-
failedConversions
public java.lang.Integer failedConversions() throws SomExceptionGet count of failed conversions. Only relevant if channel is a shaper.- Returns:
- Count of failed conversions
- Throws:
SomException- on error
-
failedOutAssoc
public java.lang.Integer failedOutAssoc() throws SomExceptionGet count of failed outbound connections- Returns:
- number of failed outbound connections
- Throws:
SomException- on error
-
hierarchy
public java.lang.Integer hierarchy() throws SomExceptionGet the channel hierarchy value- Returns:
- Channel hierarchy
- Throws:
SomException- on error
-
inAssoc
public java.lang.Integer inAssoc() throws SomExceptionGet number of current inbound associations- Returns:
- Number of current inbound associations
- Throws:
SomException- on error
-
index
public java.lang.Integer index() throws SomExceptionGet the channel index number- Returns:
- Channel index
- Throws:
SomException- on error
-
lastInboundTime
public java.lang.String lastInboundTime() throws SomExceptionGet the time of the last inbound association- Returns:
- Time of last inbound association (UTC Time String)
- Throws:
SomException- on error
-
lastOutboundTime
public java.lang.String lastOutboundTime() throws SomExceptionGet the time of the last outbound association- Returns:
- Time of last outbound association (UTC Time String)
- Throws:
SomException- on error
-
loopsDetected
public java.lang.Integer loopsDetected() throws SomExceptionGet a count of the number of loops detected.- Returns:
- Count of loops detected
- Throws:
SomException- on error
-
messagesIn
public java.lang.Integer messagesIn() throws SomExceptionGet total number of messages that have been transfered in.- Returns:
- Total number of messages that have bee transfered in.
- Throws:
SomException- on error
-
messagesOut
public java.lang.Integer messagesOut() throws SomExceptionGet total number of messages that have been transfered out.- Returns:
- Total number of messages that have been transfered out.
- Throws:
SomException- on error
-
oldestMessageId
public java.lang.String oldestMessageId() throws SomExceptionGet the queueid of the oldest message on the channel- Returns:
- The queueid of the oldest message on the channel
- Throws:
SomException- on error
-
outboundAssociations
public java.lang.Integer outboundAssociations() throws SomExceptionGet the current number of outbound associations- Returns:
- Number of outbound associations
- Throws:
SomException- on error
-
numberProcesses
public java.lang.Integer numberProcesses() throws SomExceptionGet the number of channel processes currently running- Returns:
- Number of channel processes running
- Throws:
SomException- on error
-
protocol
public java.lang.String protocol() throws SomExceptionGet channel protocol identifier (OID string)- Returns:
- Channel protocol id as OID string
- Throws:
SomException- on error
-
receivedVolume
public java.lang.Integer receivedVolume() throws SomExceptionGet total volume of received messages (bytes)- Returns:
- Total volume of received messages in bytes
- 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
-
rejectText
public java.lang.String rejectText() throws SomExceptionGet last inbound connection rejection text- Returns:
- Last inbound connection rejection text
- 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)- 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
-
transmittedVolume
public java.lang.Integer transmittedVolume() throws SomExceptionGet total volume of transmitted messages- Returns:
- Total volume of transmitted messages (bytes)
- Throws:
SomException- on error
-
minimisePriority
public java.lang.Integer minimisePriority() throws SomExceptionGet current MINIMISE priority for channel- Returns:
- Current MINIMISE priority
- Throws:
SomException- on error
-
minimiseStart
public java.lang.String minimiseStart() throws SomExceptionGet current MINIMISE start time for channel- Returns:
- Current MINIMISE start time (UTC Time String)
- Throws:
SomException- on error
-
minimiseStop
public java.lang.String minimiseStop() throws SomExceptionGet current MINIMISE stop time for channel- Returns:
- Current MINIMISE stop time (UTC Time String)
- Throws:
SomException- on error
-
minimise
public void minimise(int priority, java.util.Date start, java.util.Date stop, SomCommandListener listener) throws SomExceptionInvoke a MINIMISE operation on this channel- Parameters:
priority- MINIMISE prioritystart- Start time which may be nullstop- Stop time which may be nulllistener- Listener object which will be notified when complete which may be null- Throws:
SomException- on error
-
deleteMessages
public void deleteMessages(SomCommandListener listener) throws SomException
Delete all the messages on this channel- 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 SomExceptionNon-deliver all the messages on this channel- Parameters:
reason- Reason string for non-delivery 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 channel- Parameters:
listener- Listener object which will be notified when complete which may be null- Throws:
SomException- on error
-
-