Package com.isode.som.pumice.objects
Class SomPumiceConnection
- java.lang.Object
-
- com.isode.som.pumice.objects.SomPumiceObject
-
- com.isode.som.pumice.objects.SomPumiceConnection
-
- All Implemented Interfaces:
SomPumiceHandler
,SomHandler
public class SomPumiceConnection extends SomPumiceObject implements SomPumiceHandler
Class which models a (P7 or P3) connection into the Message Store The SomPumiceSubordinates command generates a list of objects of this type when it is invoked to list connections.- Author:
- tc
-
-
Field Summary
-
Fields inherited from class com.isode.som.pumice.objects.SomPumiceObject
errortext, somSession
-
-
Constructor Summary
Constructors Constructor Description SomPumiceConnection(SomPumiceSession session, java.lang.Integer c)
Create a new objectSomPumiceConnection(SomPumiceSession session, java.lang.Integer c, java.lang.String[] pairs)
Create a new objectSomPumiceConnection(SomPumiceSession session, java.lang.String s)
Create a new objectSomPumiceConnection(SomPumiceSession session, java.lang.String[] pairs)
Create a new object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
bindTime()
java.lang.String
buildInfoString()
java.lang.String
callingAddress()
java.lang.Integer
cancelDeferredDeliveryOps()
java.lang.Integer
changeCredentialsOps()
java.lang.Integer
connectionId()
java.lang.String
connectionType()
java.lang.Integer
deleteOps()
java.lang.Integer
deliverMessageOps()
java.lang.Integer
deliverReportOps()
java.lang.Integer
deliveryControlOps()
java.lang.String
dn()
java.lang.Integer
fetchOps()
void
handleBindResponse(int status, java.lang.String detail)
Handle the response to a Bind operationvoid
handleResponse(SomCommand command, int status, SomPumiceConnection object)
void
handleResponse(SomCommand command, int status, SomPumiceMailbox object)
void
handleResponse(SomCommand command, int status, SomPumiceMessage object)
void
handleResponse(SomCommand command, int status, SomPumiceMessageStore object)
void
handleResponse(SomCommand command, int status, java.lang.String detail)
Generic command response handlervoid
handleResponse(SomCommand command, int status, java.lang.String[] pairs)
void
handleResponse(SomCommand command, java.lang.String detail, int status)
void
handleResponseWithDetail(SomCommand command, int status)
java.lang.String
lastOpTime()
java.lang.String
lastOpType()
java.lang.Integer
listOps()
void
logout(SomCommandListener listener)
Log out this connectionjava.lang.String
mailboxPath()
java.lang.String
orAddress()
void
parsePairs(java.lang.String[] pairs)
void
refresh(SomCommandListener listener)
Refresh the status of this connection objectjava.lang.Integer
registerMsOps()
java.lang.Integer
registerOps()
void
removeFromArray(java.util.ArrayList<SomPumiceConnection> connections)
java.lang.Integer
submitMessageOps()
java.lang.Integer
submitProbeOps()
java.lang.Integer
summarizeOps()
java.lang.String
uniqueId()
-
Methods inherited from class com.isode.som.pumice.objects.SomPumiceObject
addAttribute, addAttribute, addBindListener, clearAttributes, getBooleanAttributeValue, getIntegerAttributeValue, getSession, getStringAttributeValue, notifyBindListeners, notifyListener, notifyListeners, notifyListeners, notifyListeners, print, removeBindListener, setSkipNotifications
-
-
-
-
Constructor Detail
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.Integer c)
Create a new object- Parameters:
session
- session to with which the object is associatedc
- connection id
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.String s)
Create a new object- Parameters:
session
- session to with which the object is associateds
- connection id as string
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.String[] pairs)
Create a new object- Parameters:
session
- session to with which the object is associatedpairs
- array of type/value pairs with which to populate object
-
SomPumiceConnection
public SomPumiceConnection(SomPumiceSession session, java.lang.Integer c, java.lang.String[] pairs)
Create a new object- Parameters:
session
- session to with which the object is associatedc
- connection idpairs
- array of type/value pairs with which to populate object
-
-
Method Detail
-
parsePairs
public void parsePairs(java.lang.String[] pairs)
- Overrides:
parsePairs
in classSomPumiceObject
-
removeFromArray
public void removeFromArray(java.util.ArrayList<SomPumiceConnection> connections)
-
uniqueId
public java.lang.String uniqueId()
-
handleResponse
public void handleResponse(SomCommand command, int status, java.lang.String detail)
Description copied from interface:SomHandler
Generic command response handler- Specified by:
handleResponse
in interfaceSomHandler
- Specified by:
handleResponse
in interfaceSomPumiceHandler
- Parameters:
command
- the command to which the response appliesstatus
- status from commanddetail
- error detail
-
handleResponse
public void handleResponse(SomCommand command, java.lang.String detail, int status)
-
handleResponseWithDetail
public void handleResponseWithDetail(SomCommand command, int status)
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMessageStore object)
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMailbox object)
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceMessage object)
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleResponse
public void handleResponse(SomCommand command, int status, SomPumiceConnection object)
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
handleBindResponse
public void handleBindResponse(int status, java.lang.String detail)
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
public void handleResponse(SomCommand command, int status, java.lang.String[] pairs)
- Specified by:
handleResponse
in interfaceSomPumiceHandler
-
refresh
public void refresh(SomCommandListener listener) throws SomException
Refresh the status of this connection object- Parameters:
listener
- listener to be notified when status updated- Throws:
SomException
- on error
-
logout
public void logout(SomCommandListener listener) throws SomException
Log out this connection- Parameters:
listener
- listener to be notified when connection logged out- Throws:
SomException
- on error
-
buildInfoString
public java.lang.String buildInfoString()
-
connectionId
public java.lang.Integer connectionId() throws SomException
- Throws:
SomException
-
connectionType
public java.lang.String connectionType() throws SomException
- Throws:
SomException
-
orAddress
public java.lang.String orAddress() throws SomException
- Throws:
SomException
-
dn
public java.lang.String dn() throws SomException
- Throws:
SomException
-
mailboxPath
public java.lang.String mailboxPath() throws SomException
- Throws:
SomException
-
lastOpTime
public java.lang.String lastOpTime() throws SomException
- Throws:
SomException
-
lastOpType
public java.lang.String lastOpType() throws SomException
- Throws:
SomException
-
callingAddress
public java.lang.String callingAddress() throws SomException
- Throws:
SomException
-
listOps
public java.lang.Integer listOps() throws SomException
- Throws:
SomException
-
summarizeOps
public java.lang.Integer summarizeOps() throws SomException
- Throws:
SomException
-
fetchOps
public java.lang.Integer fetchOps() throws SomException
- Throws:
SomException
-
deleteOps
public java.lang.Integer deleteOps() throws SomException
- Throws:
SomException
-
registerMsOps
public java.lang.Integer registerMsOps() throws SomException
- Throws:
SomException
-
submitMessageOps
public java.lang.Integer submitMessageOps() throws SomException
- Throws:
SomException
-
submitProbeOps
public java.lang.Integer submitProbeOps() throws SomException
- Throws:
SomException
-
cancelDeferredDeliveryOps
public java.lang.Integer cancelDeferredDeliveryOps() throws SomException
- Throws:
SomException
-
deliverMessageOps
public java.lang.Integer deliverMessageOps() throws SomException
- Throws:
SomException
-
deliverReportOps
public java.lang.Integer deliverReportOps() throws SomException
- Throws:
SomException
-
deliveryControlOps
public java.lang.Integer deliveryControlOps() throws SomException
- Throws:
SomException
-
changeCredentialsOps
public java.lang.Integer changeCredentialsOps() throws SomException
- Throws:
SomException
-
registerOps
public java.lang.Integer registerOps() throws SomException
- Throws:
SomException
-
bindTime
public java.lang.String bindTime() throws SomException
- Throws:
SomException
-
-