public class ExtendedObjectMetadata extends ObjectMetadata
ExtendedObjectMetadata
augments the user-specified ObjectMetadata
values with additional read-only
values maintained automatically by the StateServer. Instances of ExtendedObjectMetadata
are returned by
NamedCache.getMetadata(com.scaleoutsoftware.soss.client.CachedObjectId, com.scaleoutsoftware.soss.client.ReadOptions)
.Constructor and Description |
---|
ExtendedObjectMetadata() |
Modifier and Type | Method and Description |
---|---|
boolean |
getAbsoluteTimeout()
Returns
true if the StateServer object corresponding to this metadata instance will be removed from
the store at a specific absolute time as opposed to a sliding expiration timeout due to a period of inactivity. |
boolean |
getAllowRemoteAccess()
Returns
true if the object can be accessed by the remote store, false otherwise. |
boolean |
getAllowReplication()
Returns
true if the StateServer object corresponding to this metadata instance can be replicated to
remote stores. |
BackingStoreAsyncPolicy |
getBackingStoreAsyncPolicy()
Returns the type of backing store operations (none, refresh-ahead or write-behind) performed on the StateServer object
corresponding to this metadata instance.
|
TimeSpan |
getBackingStoreInterval()
Gets the interval between asynchronous backing store events (refresh-ahead, write-behind) for the StateServer
object corresponding to this metadata instance.
|
CoherencyPolicy |
getDefaultCoherencyPolicy()
Gets the default coherency policy or
null if no coherency policy is set. |
IndexCollection |
getIndexCollection()
Gets the
IndexCollection |
int |
getObjectSize()
Returns the size in bytes of the StateServer object corresponding to this metadata
|
Set<CachedObjectId> |
getParents()
Return a read-only list containing the dependency parents specified for the StateServer object corresponding to
this ObjectMetadata instance.
|
ObjectPreemptionPriority |
getPreemptionPriority()
Returns the preemption priority of the StateServer object corresponding to this metadata instance.
|
TimeSpan |
getTimeout()
Returns the expiration timeout value for the StateServer object corresponding to this metadata.
|
boolean |
isProxy()
Checks if the object is a proxy object for "pull" replication.
|
public int getObjectSize()
public TimeSpan getTimeout()
public boolean getAbsoluteTimeout()
true
if the StateServer object corresponding to this metadata instance will be removed from
the store at a specific absolute time as opposed to a sliding expiration timeout due to a period of inactivity.true
if timeout is absolute, false
otherwisepublic boolean getAllowReplication()
true
if the StateServer object corresponding to this metadata instance can be replicated to
remote stores.true
replication is allowed, false
otherwisepublic ObjectPreemptionPriority getPreemptionPriority()
public Set<CachedObjectId> getParents()
CachedObjectId
's corresponding to parent objectspublic BackingStoreAsyncPolicy getBackingStoreAsyncPolicy()
BackingStoreAsyncPolicy
enumerationpublic TimeSpan getBackingStoreInterval()
public IndexCollection getIndexCollection()
IndexCollection
getIndexCollection
in class ObjectMetadata
IndexCollection
containing object metadata.public CoherencyPolicy getDefaultCoherencyPolicy()
null
if no coherency policy is set.public boolean getAllowRemoteAccess()
true
if the object can be accessed by the remote store, false
otherwise.true
if remote access is allowed, false
otherwisepublic boolean isProxy()
true
if the object is a proxy object, false
otherwiseCopyright (C) 2007-2014 ScaleOut Software, Inc.