Package tigase.cluster.strategy
Class ConnectionRecord
- java.lang.Object
-
- tigase.cluster.strategy.ConnectionRecord
-
- All Implemented Interfaces:
java.lang.Comparable<ConnectionRecord>,ConnectionRecordIfc
public class ConnectionRecord extends java.lang.Object implements ConnectionRecordIfc, java.lang.Comparable<ConnectionRecord>
- Author:
- Artur Hefczyc Created Mar 15, 2011
-
-
Constructor Summary
Constructors Constructor Description ConnectionRecord()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ConnectionRecord rec)booleanequals(java.lang.Object rec)JIDgetConnectionId()JIDgetNode()java.lang.StringgetSessionId()JIDgetUserJid()inthashCode()voidsetConnectionId(JID connectionId)voidsetElement(Element elem)voidsetRecordFields(JID node, JID userJid, java.lang.String sessionId, JID connectionId)ElementtoElement()java.lang.StringtoString()
-
-
-
Method Detail
-
compareTo
public int compareTo(ConnectionRecord rec)
- Specified by:
compareToin interfacejava.lang.Comparable<ConnectionRecord>
-
equals
public boolean equals(java.lang.Object rec)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toElement
public Element toElement()
- Specified by:
toElementin interfaceConnectionRecordIfc
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getConnectionId
public JID getConnectionId()
- Specified by:
getConnectionIdin interfaceConnectionRecordIfc
-
setConnectionId
public void setConnectionId(JID connectionId)
-
getNode
public JID getNode()
- Specified by:
getNodein interfaceConnectionRecordIfc
-
getSessionId
public java.lang.String getSessionId()
- Specified by:
getSessionIdin interfaceConnectionRecordIfc
-
getUserJid
public JID getUserJid()
- Specified by:
getUserJidin interfaceConnectionRecordIfc
-
setElement
public void setElement(Element elem)
- Specified by:
setElementin interfaceConnectionRecordIfc
-
setRecordFields
public void setRecordFields(JID node, JID userJid, java.lang.String sessionId, JID connectionId)
- Specified by:
setRecordFieldsin interfaceConnectionRecordIfc
-
-