Package es.bsc.dataclay
Class DataClayExecutionObject
- java.lang.Object
-
- storage.StorageObject
-
- es.bsc.dataclay.DataClayObject
-
- es.bsc.dataclay.DataClayExecutionObject
-
- All Implemented Interfaces:
DataClaySerializable
,Serializable
,StubItf
public class DataClayExecutionObject extends DataClayObject
This class represents a Object in a DataClay's execution environment.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description int
numRefs
Number of references pointing to instance.-
Fields inherited from class es.bsc.dataclay.DataClayObject
clientRuntime, dataSetID, DEBUG_ENABLED, isLoaded, isPersistent, LOCAL, objectID
-
-
Constructor Summary
Constructors Constructor Description DataClayExecutionObject()
Basic constructorDataClayExecutionObject(ObjectID theobjectID)
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
addLazyTask(ObjectID objectID, ImplementationID implID, MetaClassID classID)
Add lazy task to be run in DataClay.long
getCreationTimeStamp()
SessionID
getOwnerSessionIDforVolatiles()
void
initializeObjectAsPersistent()
Initialize object with state 'persistent' with proper flags.void
initializeObjectAsVolatile()
Initialize object with state 'volatile' with proper flags.boolean
isDirty()
Get dirty flagboolean
isLoaded()
Get the DataClayObject::isLoadedboolean
isPendingToRegister()
void
setAsDirty()
Set dirty flag to truevoid
setCreationTimeStamp(long thecreationTimeStamp)
void
setDataSetID(DataSetID newDataSetID)
Set object DataSetIDvoid
setDirty(boolean thedirtyValue)
Set dirty flagvoid
setNumRefs(int thenumRefs)
void
setOwnerSessionIDforVolatiles(SessionID newownerSessionIDforVolatiles)
void
setPendingToRegister(boolean ispendingToRegister)
-
Methods inherited from class es.bsc.dataclay.DataClayObject
addReplicaLocations, clearExecStubInfosCache, clearReplicaLocations, clearStubInfosCache, dcClone, dcClone, dcCloneByAlias, dcCloneByAlias, dcPut, dcPut, dcPut, dcPut, dcUpdate, dcUpdateByAlias, debugEnd, debugStart, deleteAlias, deleteAlias, deleteAlias, deserialize, equals, executeRemoteImplementation, federate, federate, federateToBackend, federateToBackend, getAccessCount, getAlias, getAllLocations, getByAlias, getByAliasExt, getByAliasExt, getDataSetID, getExternalDataClayID, getExternalDataClayID, getHint, getHitCount, getID, getLib, getLocation, getMasterLocation, getMetaClassID, getMetaClassID, getObjectID, getOriginalObjectID, getOriginLocation, getReplicaLocations, getRootLocation, getStubInfo, getStubInfoFromClass, hashCode, incrementAccessCount, incrementHitCount, isMasterLocation, isPersistent, isPrefetchingAccess, isReadOnly, isStub, makePersistent, makePersistent, makePersistent, makePersistent, makePersistent, makePersistent, makePersistent, makePersistent, moveObject, moveObject, newReplica, newReplica, newReplica, newReplica, printObjectAccessStats, removeReplicaLocation, resetObjectAccessStats, run, serialize, sessionDetach, setAlias, setAll, setExternalDataClayID, setFieldsDeserialization, setHint, setIsPersistent, setLib, setLoaded, setMasterLocation, setNewObjectID, setObjectIDUnsafe, setObjectReadOnly, setObjectReadWrite, setOriginalObjectID, setOriginLocation, setPrefetchingAccess, setReadOnly, setReplicaLocations, setRootLocation, setWrappersParams, setWrappersReturn, synchronize, unfederate, unfederate, unfederate, unfederateFromBackend, unfederateFromBackend, whenFederated, whenUnfederated, wrapFieldsDeserialization, wrapFieldsSerialization, wrapParameters, wrapReturn
-
Methods inherited from class storage.StorageObject
deletePersistent, deletePersistent
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface storage.StubItf
deletePersistent
-
-
-
-
Constructor Detail
-
DataClayExecutionObject
public DataClayExecutionObject()
Basic constructor
-
DataClayExecutionObject
public DataClayExecutionObject(ObjectID theobjectID)
Constructor- Parameters:
theobjectID
- ID of the object
-
-
Method Detail
-
initializeObjectAsPersistent
public void initializeObjectAsPersistent()
Initialize object with state 'persistent' with proper flags. See same function in DataClayExecutionObject for a different initialization. This design is intended to be clear with object state. Usually, since constructors are calling initializeObjectAsVolatile, this function 'overrides' flags set- Overrides:
initializeObjectAsPersistent
in classDataClayObject
-
initializeObjectAsVolatile
public void initializeObjectAsVolatile()
Initialize object with state 'volatile' with proper flags. Usually, volatile state is created by a stub, app, exec class,.. See same function in DataClayExecutionObject for a different initialization. This design is intended to be clear with object state.- Overrides:
initializeObjectAsVolatile
in classDataClayObject
-
setAsDirty
public void setAsDirty()
Set dirty flag to true
-
isDirty
public boolean isDirty()
Get dirty flag- Returns:
- TRUE if object is dirty. False otherwise.
-
setDirty
public void setDirty(boolean thedirtyValue)
Set dirty flag- Parameters:
thedirtyValue
- dirty flag value
-
isLoaded
public final boolean isLoaded()
Get the DataClayObject::isLoaded- Returns:
- the isLoaded
-
getOwnerSessionIDforVolatiles
public SessionID getOwnerSessionIDforVolatiles()
- Returns:
- the ownerSessionIDforVolatiles
-
setOwnerSessionIDforVolatiles
public void setOwnerSessionIDforVolatiles(SessionID newownerSessionIDforVolatiles)
- Parameters:
newownerSessionIDforVolatiles
- the ownerSessionIDforVolatiles to set
-
setDataSetID
public void setDataSetID(DataSetID newDataSetID)
Description copied from class:DataClayObject
Set object DataSetID- Overrides:
setDataSetID
in classDataClayObject
- Parameters:
newDataSetID
- ID of DataSet this object belongs to
-
getCreationTimeStamp
public long getCreationTimeStamp()
- Returns:
- the creationTimeStamp
-
setCreationTimeStamp
public void setCreationTimeStamp(long thecreationTimeStamp)
- Parameters:
thecreationTimeStamp
- the creationTimeStamp to set
-
setNumRefs
public void setNumRefs(int thenumRefs)
- Parameters:
thenumRefs
- the numRefs to set
-
isPendingToRegister
public boolean isPendingToRegister()
- Returns:
- the pendingToRegister
-
setPendingToRegister
public void setPendingToRegister(boolean ispendingToRegister)
- Parameters:
ispendingToRegister
- the pendingToRegister to set
-
addLazyTask
protected void addLazyTask(ObjectID objectID, ImplementationID implID, MetaClassID classID)
Add lazy task to be run in DataClay.- Parameters:
objectID
- ID of the object running the taskimplID
- ID of the implementation to runclassID
- ID of the class in which the task is located
-
-