org.codehaus.wadi.gridstate.impl
Class LocalPartition

java.lang.Object
  extended byorg.codehaus.wadi.gridstate.impl.LocalPartition
All Implemented Interfaces:
Partition, PMPartition

public class LocalPartition
extends Object
implements Partition


Field Summary
protected  PartitionConfig _config
           
protected  ReadWriteLock _lock
           
protected static Log _log
           
protected  Map _map
           
 
Constructor Summary
LocalPartition()
           
 
Method Summary
 Destination getDestination()
           
 int getKey()
           
 Location getLocation(Object key)
           
 ReadWriteLock getLock()
           
 Map getMap()
           
 void init(PartitionConfig config)
           
 boolean isLocal()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_log

protected static final Log _log

_lock

protected final transient ReadWriteLock _lock

_map

protected Map _map

_config

protected PartitionConfig _config
Constructor Detail

LocalPartition

public LocalPartition()
Method Detail

init

public void init(PartitionConfig config)
Specified by:
init in interface Partition

getDestination

public Destination getDestination()
Specified by:
getDestination in interface Partition

getLocation

public Location getLocation(Object key)
Specified by:
getLocation in interface Partition

getLock

public ReadWriteLock getLock()
Specified by:
getLock in interface Partition

getMap

public Map getMap()
Specified by:
getMap in interface Partition

isLocal

public boolean isLocal()
Specified by:
isLocal in interface PMPartition

getKey

public int getKey()
Specified by:
getKey in interface PMPartition


Copyright © 2004-2008 Core Developers Network Ltd.. All Rights Reserved.