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
public class SomQmgrAssociation extends SomQmgrObject implements SomQmgrHandler
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
Constructors Constructor Description SomQmgrAssociation(SomSession session)Create a new SomQmgrAssociation object for a specified channel and MTASomQmgrAssociation(SomSession session, java.lang.String[] pairs)Create a new SomQmgrAssociation object for a specified channel and MTA, populating it with data from type/value pairs
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.IntegerapplIndex()Get the application index value for the associationjava.lang.Integerassociation()Get the association idjava.lang.IntegerassociationType()Get the association typejava.lang.StringbuildInfoString()voidhandleBindResponse(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.StringstartTime()Get the time at which the association started-
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
-
SomQmgrAssociation
public SomQmgrAssociation(SomSession session)
Create a new SomQmgrAssociation object for a specified channel and MTA- Parameters:
session- Session object for association which may not be null
-
SomQmgrAssociation
public SomQmgrAssociation(SomSession session, java.lang.String[] pairs)
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 Detail
-
applIndex
public java.lang.Integer applIndex() throws SomExceptionGet the application index value for the association- Returns:
- application index
- Throws:
SomException- on error
-
association
public java.lang.Integer association() throws SomExceptionGet the association id- Returns:
- association id
- Throws:
SomException- on error
-
associationType
public java.lang.Integer associationType() throws SomExceptionGet the association type- Returns:
- association type
- Throws:
SomException- on error
-
startTime
public java.lang.String startTime() throws SomExceptionGet the time at which the association started- Returns:
- Association start time (UTC Time String)
- Throws:
SomException- on error
-
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, 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 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
-
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 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
-
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
-
buildInfoString
public java.lang.String buildInfoString()
-
-