org.codehaus.wadi.location.partitionmanager.local
Class Location

java.lang.Object
  extended by 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

Field Summary
protected  java.util.concurrent.locks.Lock _exclusiveLock
           
protected  java.lang.Object _key
           
protected  Lease _sharedLease
           
protected  Peer peer
           
 
Constructor Summary
Location(java.lang.Object key, Peer peer)
           
 
Method Summary
 java.util.concurrent.locks.Lock getExclusiveLock()
           
 java.lang.Object getKey()
           
 Lease getSharedLease()
           
 Peer getSMPeer()
           
 void setPeer(Peer peer)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_key

protected java.lang.Object _key

peer

protected Peer peer

_sharedLease

protected transient Lease _sharedLease

_exclusiveLock

protected transient java.util.concurrent.locks.Lock _exclusiveLock
Constructor Detail

Location

public Location(java.lang.Object key,
                Peer peer)
Method Detail

getSharedLease

public Lease getSharedLease()

getExclusiveLock

public java.util.concurrent.locks.Lock getExclusiveLock()

setPeer

public void setPeer(Peer peer)

getSMPeer

public Peer getSMPeer()

getKey

public java.lang.Object getKey()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2010. All Rights Reserved.