org.codehaus.wadi.location.partitionmanager.local
Class Location
java.lang.Object
org.codehaus.wadi.location.partitionmanager.local.Location
- All Implemented Interfaces:
- java.io.Serializable
public class Location
- extends java.lang.Object
- implements java.io.Serializable
a Location provides two things :
- a sync point for the session Peer which is not the Peer itself
- a container for the session Peer, reducing access to id:peer table
- Version:
- $Revision: 1538 $
- See Also:
- Serialized Form
Constructor Summary |
Location(java.lang.Object key,
org.codehaus.wadi.group.Peer peer)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
_key
protected java.lang.Object _key
peer
protected org.codehaus.wadi.group.Peer peer
_sharedLease
protected transient Lease _sharedLease
_exclusiveLock
protected transient java.util.concurrent.locks.Lock _exclusiveLock
Location
public Location(java.lang.Object key,
org.codehaus.wadi.group.Peer peer)
getSharedLease
public Lease getSharedLease()
getExclusiveLock
public java.util.concurrent.locks.Lock getExclusiveLock()
setPeer
public void setPeer(org.codehaus.wadi.group.Peer peer)
getSMPeer
public org.codehaus.wadi.group.Peer getSMPeer()
getKey
public java.lang.Object getKey()
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
Copyright © 2008. All Rights Reserved.