com.scaleoutsoftware.soss.client
Class SossObjectDescriptor

java.lang.Object
  extended by com.scaleoutsoftware.soss.client.SossObjectDescriptor
All Implemented Interfaces:
Serializable

public final class SossObjectDescriptor
extends Object
implements Serializable

Contains information necessary to insert an object into a NamedCache via a bulk NamedCache.putAll(java.util.Map) operation.

See Also:
Serialized Form

Constructor Summary
SossObjectDescriptor(Serializable object, CreatePolicy policy, ObjectMetadata metadata)
          Creates a SossObjDescriptor class with the metadata and CreatePolicy information needed to insert an object via a bulk put NamedCache.putAll(java.util.Map) operation.
 
Method Summary
 Exception getInsertException()
          Gets the exception encountered by a bulk add operation, or null if the object was added to the NamedCache successfully.
 ObjectMetadata getMetadata()
          Gets metadata related to the object being inserted.
 Serializable getObject()
          Gets the serializable object to insert into the NamedCache.
 CreatePolicy getPolicy()
          Policy information for the object being inserted.
 void setMetadata(ObjectMetadata metadata)
           
 void setObject(Serializable object)
           
 void setPolicy(CreatePolicy policy)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SossObjectDescriptor

public SossObjectDescriptor(Serializable object,
                            CreatePolicy policy,
                            ObjectMetadata metadata)
Creates a SossObjDescriptor class with the metadata and CreatePolicy information needed to insert an object via a bulk put NamedCache.putAll(java.util.Map) operation.

Parameters:
object - Object to insert into the NamedCache.
policy - Policy information for the object being inserted.
metadata - Metadata related to the object being inserted.
Method Detail

getObject

public Serializable getObject()
Gets the serializable object to insert into the NamedCache.

Returns:
Serializable value

setObject

public void setObject(Serializable object)
Parameters:
object - Serializable value
See Also:
getObject()

getMetadata

public ObjectMetadata getMetadata()
Gets metadata related to the object being inserted.

Returns:
Metadata value

setMetadata

public void setMetadata(ObjectMetadata metadata)
Parameters:
metadata - Metadata value
See Also:
getMetadata()

getPolicy

public CreatePolicy getPolicy()
Policy information for the object being inserted.

Returns:
CreatePolicy value

setPolicy

public void setPolicy(CreatePolicy policy)
Parameters:
policy - CreatePolicy value
See Also:
getPolicy()

getInsertException

public Exception getInsertException()
Gets the exception encountered by a bulk add operation, or null if the object was added to the NamedCache successfully. This property can be checked after a NamedCache.add() call to see if the corresponding object was inserted.

Returns:
Exception value


Copyright (C) 2007-2012 ScaleOut Software, Inc.