Package com.isode.som.qmgr.objects
Class SomQmgrAssociation
java.lang.Object
com.isode.som.qmgr.objects.SomQmgrObject
com.isode.som.qmgr.objects.SomQmgrAssociation
- All Implemented Interfaces:
SomQmgrHandler
,SomHandler
This class models an association between a channel (inbound or outbound)
and a peer MTA of some type.
- Author:
- tc
-
Field Summary
Fields inherited from class com.isode.som.qmgr.objects.SomQmgrObject
errortext, somSession
-
Constructor Summary
ConstructorsConstructorDescriptionSomQmgrAssociation
(SomSession session) Create a new SomQmgrAssociation object for a specified channel and MTASomQmgrAssociation
(SomSession session, String[] pairs) Create a new SomQmgrAssociation object for a specified channel and MTA, populating it with data from type/value pairs -
Method Summary
Modifier and TypeMethodDescriptionGet the application index value for the associationGet the association idGet the association typevoid
handleBindResponse
(int status, String detail) Handle the response to a Bind operationvoid
handleResponse
(SomCommand obj, int status, SomMessage msg) Handles the response to commands which return a SomMessage object (i.e.void
handleResponse
(SomCommand command, int status, SomQmgrChannel object) Handles the response to commands which return a list of channel objectsvoid
handleResponse
(SomCommand command, int status, SomQmgrMessage object) Handles the response to commands which return a list of message objectsvoid
handleResponse
(SomCommand command, int status, SomQmgrMta object) Handles the response to commands which return a list of MTA objectsvoid
handleResponse
(SomCommand command, int status, SomQmgrQueueManager object) void
handleResponse
(SomCommand command, int status, String detail) Handles the response to control commands which return an OK/error response plus an info stringvoid
handleResponse
(SomCommand command, int status, String[] pairs) Handles the response to commands which return data about the current object - i.e.Get the time at which the association startedMethods 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 Details
-
SomQmgrAssociation
Create a new SomQmgrAssociation object for a specified channel and MTA- Parameters:
session
- Session object for association which may not be null
-
SomQmgrAssociation
Create a new SomQmgrAssociation object for a specified channel and MTA, populating it with data from type/value pairs- Parameters:
session
- Session object for association which may not be nullpairs
- Array of data pairs which may not be null
-
-
Method Details
-
applIndex
Get the application index value for the association- Returns:
- application index
- Throws:
SomException
- on error
-
association
Get the association id- Returns:
- association id
- Throws:
SomException
- on error
-
associationType
Get the association type- Returns:
- association type
- Throws:
SomException
- on error
-
startTime
Get the time at which the association started- Returns:
- Association start time (UTC Time String)
- Throws:
SomException
- on error
-
handleResponse
Description copied from interface:SomQmgrHandler
Handles the response to control commands which return an OK/error response plus an info string- Specified by:
handleResponse
in interfaceSomHandler
- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusdetail
- detail on error
-
handleResponse
-
handleResponse
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a list of channel objects- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusobject
- a channel object
-
handleResponse
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a list of MTA objects- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusobject
- a SOM Qmgr MTA object
-
handleResponse
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a list of message objects- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statusobject
- a qmgr message object
-
handleBindResponse
Description copied from interface:SomHandler
Handle the response to a Bind operation- Specified by:
handleBindResponse
in interfaceSomHandler
- Parameters:
status
- operation statusdetail
- error detail on failure
-
handleResponse
Description copied from interface:SomQmgrHandler
Handles the response to commands which return a SomMessage object (i.e. read from the Queue or Archive).- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
obj
- the SOM commandstatus
- operation statusmsg
- a message object
-
handleResponse
Description copied from interface:SomQmgrHandler
Handles the response to commands which return data about the current object - i.e. we are refreshing an existing object.- Specified by:
handleResponse
in interfaceSomQmgrHandler
- Parameters:
command
- the SOM commandstatus
- operation statuspairs
- data pairs
-
buildInfoString
-