tigase.cluster.strategy
Class ConnectionRecord
java.lang.Object
tigase.cluster.strategy.ConnectionRecord
- All Implemented Interfaces:
- Comparable<ConnectionRecord>
public class ConnectionRecord
- extends Object
- implements Comparable<ConnectionRecord>
- Author:
- Artur Hefczyc Created Mar 15, 2011
ConnectionRecord
public ConnectionRecord(tigase.xmpp.JID node,
tigase.xmpp.JID userJid,
String sessionId,
tigase.xmpp.JID connectionId)
- Parameters:
node - user_jid - sessionId - connectionId -
ConnectionRecord
public ConnectionRecord(tigase.xml.Element elem)
toElement
public tigase.xml.Element toElement()
getNode
public tigase.xmpp.JID getNode()
- Returns:
- the node
getUserJid
public tigase.xmpp.JID getUserJid()
- Returns:
- the user_jid
getSessionId
public String getSessionId()
- Returns:
- the sessionId
getConnectionId
public tigase.xmpp.JID getConnectionId()
- Returns:
- the connectionId
setLastPresence
public void setLastPresence(tigase.xml.Element lastPresence)
- Parameters:
last_presence - the last_presence to set
getLastPresence
public tigase.xml.Element getLastPresence()
- Returns:
- the last_presence
toString
public String toString()
- Overrides:
toString in class Object
compareTo
public int compareTo(ConnectionRecord rec)
- Specified by:
compareTo in interface Comparable<ConnectionRecord>
equals
public boolean equals(Object rec)
- Overrides:
equals in class Object
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
Copyright © 2012 Tigase. All Rights Reserved.