org.ehcache.clustered.common
Class PoolAllocation.Dedicated

java.lang.Object
  extended by org.ehcache.clustered.common.PoolAllocation.Dedicated
All Implemented Interfaces:
java.io.Serializable, PoolAllocation
Enclosing interface:
PoolAllocation

public static final class PoolAllocation.Dedicated
extends java.lang.Object
implements PoolAllocation

Describes a dedicated-size allocation for clustered storage. When using a dedicated allocation, storage is allocated from the server-based resource specified.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.ehcache.clustered.common.PoolAllocation
PoolAllocation.Dedicated, PoolAllocation.Shared, PoolAllocation.Unknown
 
Constructor Summary
PoolAllocation.Dedicated(java.lang.String resourceName, long size)
          Create a new dedicated PoolAllocation.
 
Method Summary
 java.lang.String getResourceName()
          Gets the name of the server-side storage resource from which allocations for a store configured with this PoolAllocation are made.
 long getSize()
          Gets the size, in bytes, for the dedicated allocation to make from the server-side storage resource for a store configured with this PoolAllocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PoolAllocation.Dedicated

public PoolAllocation.Dedicated(java.lang.String resourceName,
                                long size)
Create a new dedicated PoolAllocation.

Parameters:
resourceName - the server-side resource from a dedicated-size allocation is made; if null, the allocation is made from the default resource
size - the size, in bytes, of the allocation
Method Detail

getSize

public long getSize()
Gets the size, in bytes, for the dedicated allocation to make from the server-side storage resource for a store configured with this PoolAllocation.

Returns:
the dedicated allocation size

getResourceName

public java.lang.String getResourceName()
Gets the name of the server-side storage resource from which allocations for a store configured with this PoolAllocation are made.

Returns:
the server-side resource name