Package tigase.cluster.strategy
Class ConnectionRecord
java.lang.Object
tigase.cluster.strategy.ConnectionRecord
- All Implemented Interfaces:
Comparable<ConnectionRecord>
,ConnectionRecordIfc
public class ConnectionRecord
extends Object
implements ConnectionRecordIfc, Comparable<ConnectionRecord>
- Author:
- Artur Hefczyc Created Mar 15, 2011
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
tigase.xmpp.jid.JID
tigase.xmpp.jid.JID
getNode()
tigase.xmpp.jid.JID
int
hashCode()
void
setConnectionId
(tigase.xmpp.jid.JID connectionId) void
setElement
(tigase.xml.Element elem) void
setRecordFields
(tigase.xmpp.jid.JID node, tigase.xmpp.jid.JID userJid, String sessionId, tigase.xmpp.jid.JID connectionId) tigase.xml.Element
toString()
-
Constructor Details
-
ConnectionRecord
public ConnectionRecord()
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ConnectionRecord>
-
equals
-
hashCode
public int hashCode() -
toElement
public tigase.xml.Element toElement()- Specified by:
toElement
in interfaceConnectionRecordIfc
-
toString
-
getConnectionId
public tigase.xmpp.jid.JID getConnectionId()- Specified by:
getConnectionId
in interfaceConnectionRecordIfc
-
setConnectionId
public void setConnectionId(tigase.xmpp.jid.JID connectionId) -
getNode
public tigase.xmpp.jid.JID getNode()- Specified by:
getNode
in interfaceConnectionRecordIfc
-
getSessionId
- Specified by:
getSessionId
in interfaceConnectionRecordIfc
-
getUserJid
public tigase.xmpp.jid.JID getUserJid()- Specified by:
getUserJid
in interfaceConnectionRecordIfc
-
setElement
public void setElement(tigase.xml.Element elem) - Specified by:
setElement
in interfaceConnectionRecordIfc
-
setRecordFields
public void setRecordFields(tigase.xmpp.jid.JID node, tigase.xmpp.jid.JID userJid, String sessionId, tigase.xmpp.jid.JID connectionId) - Specified by:
setRecordFields
in interfaceConnectionRecordIfc
-