|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.eclipse.smila.jobmanager.persistence.objectstore.DefinitionStorageObjectstore
public class DefinitionStorageObjectstore
Component for handling persistent jobmanager data by using objectstore.
| Constructor Summary | |
|---|---|
DefinitionStorageObjectstore()
|
|
| Method Summary | |
|---|---|
protected void |
activate(ComponentContext context)
OSGi Declarative Services service activation method. |
void |
addBucket(BucketDefinition bucket)
Write bucket definition to storage. |
void |
addJob(JobDefinition job)
Write job definition to storage. |
void |
addWorkflow(WorkflowDefinition workflow)
Write workflow definition to storage. |
boolean |
containsJobRun(java.lang.String jobName,
java.lang.String jobRunId)
|
protected void |
deactivate(ComponentContext context)
OSGi Declarative Services service deactivation method. |
void |
deleteJobRunData(java.lang.String jobName,
java.lang.String jobRunId)
Deletes the stored data for the given job run. |
BucketDefinition |
getBucket(java.lang.String name)
get bucket definition from storage. |
java.util.Collection<java.lang.String> |
getBuckets()
Get bucket names defined in storage. |
JobDefinition |
getJob(java.lang.String name)
get job definition from storage. |
AnyMap |
getJobRunData(java.lang.String jobName,
java.lang.String jobRunId)
|
java.util.Collection<java.lang.String> |
getJobRunIds(java.lang.String jobName)
|
java.util.Collection<java.lang.String> |
getJobs()
Get job names defined in storage. |
WorkflowDefinition |
getWorkflow(java.lang.String name)
get workflow definition from storage. |
java.util.Collection<java.lang.String> |
getWorkflows()
Get workflow names defined in storage. |
boolean |
hasJob(java.lang.String name)
|
void |
removeBucket(java.lang.String name)
Remove bucket definition from storage. |
void |
removeJob(java.lang.String name)
Remove job definition from storage. |
void |
removeWorkflow(java.lang.String name)
Remove workflow definition from storage. |
void |
setClusterConfigService(ClusterConfigService ccs)
set new ClusterConfigService. |
void |
setObjectStoreService(ObjectStoreService objectStoreService)
method for DS to set a service reference. |
void |
storeJobRun(java.lang.String jobName,
java.lang.String jobRunId,
AnyMap jobRunData)
Stores the job run data for the given job run. |
void |
unsetClusterConfigService(ClusterConfigService ccs)
remove an ClusterConfigService. |
void |
unsetObjectStoreService(ObjectStoreService objectStoreService)
method for DS to unset a service reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefinitionStorageObjectstore()
| Method Detail |
|---|
protected void activate(ComponentContext context)
throws ObjectStoreException
context - OSGi service component context.
ObjectStoreException - could not prepare store.protected void deactivate(ComponentContext context)
context - OSGi service component context.public void setObjectStoreService(ObjectStoreService objectStoreService)
objectStoreService - ObjectStoreService reference.public void unsetObjectStoreService(ObjectStoreService objectStoreService)
objectStoreService - ObjectStoreService reference.
public void addBucket(BucketDefinition bucket)
throws PersistenceException
addBucket in interface DefinitionStoragebucket - bucket definition
PersistenceException - error writing.
public BucketDefinition getBucket(java.lang.String name)
throws PersistenceException
getBucket in interface DefinitionStoragename - bucket name
null if bucket doesn't exist.
PersistenceException - error reading bucket definition
public void removeBucket(java.lang.String name)
throws PersistenceException
removeBucket in interface DefinitionStoragename - bucket name
PersistenceException - error deleting.
public java.util.Collection<java.lang.String> getBuckets()
throws PersistenceException
getBuckets in interface DefinitionStoragePersistenceException - error reading.
public void addJob(JobDefinition job)
throws PersistenceException
addJob in interface DefinitionStoragejob - job definition
PersistenceException - error writing.
public JobDefinition getJob(java.lang.String name)
throws PersistenceException
getJob in interface DefinitionStoragename - job name
null if job doesn't exist.
PersistenceException - error reading job definition
public boolean hasJob(java.lang.String name)
throws PersistenceException
hasJob in interface DefinitionStoragename - job name
PersistenceException - error checking existence.
public void removeJob(java.lang.String name)
throws PersistenceException
removeJob in interface DefinitionStoragename - job name
PersistenceException - error deleting.
public java.util.Collection<java.lang.String> getJobs()
throws PersistenceException
getJobs in interface DefinitionStoragePersistenceException - error reading.
public void addWorkflow(WorkflowDefinition workflow)
throws PersistenceException
addWorkflow in interface DefinitionStorageworkflow - workflow definition
PersistenceException - error writing.
public WorkflowDefinition getWorkflow(java.lang.String name)
throws PersistenceException
getWorkflow in interface DefinitionStoragename - workflow name
null if workflow doesn't exist.
PersistenceException - error reading workflow definition
public java.util.Collection<java.lang.String> getWorkflows()
throws PersistenceException
getWorkflows in interface DefinitionStoragePersistenceException - error reading.
public void removeWorkflow(java.lang.String name)
throws PersistenceException
removeWorkflow in interface DefinitionStoragename - workflow name
PersistenceException - error deleting.
public java.util.Collection<java.lang.String> getJobRunIds(java.lang.String jobName)
throws PersistenceException
getJobRunIds in interface DefinitionStoragejobName - the job for which to return the job run ids
PersistenceException - error accessing store
public void storeJobRun(java.lang.String jobName,
java.lang.String jobRunId,
AnyMap jobRunData)
storeJobRun in interface DefinitionStoragejobName - the jobjobRunId - the job run for which to store the datajobRunData - the job run data
public boolean containsJobRun(java.lang.String jobName,
java.lang.String jobRunId)
throws PersistenceException
containsJobRun in interface DefinitionStoragejobName - the jobjobRunId - the job run for which to check if it's contained in the store
PersistenceException - error accessing store
public AnyMap getJobRunData(java.lang.String jobName,
java.lang.String jobRunId)
throws PersistenceException
getJobRunData in interface DefinitionStoragejobName - the jobjobRunId - the job run id
PersistenceException - error accessing store
public void deleteJobRunData(java.lang.String jobName,
java.lang.String jobRunId)
throws PersistenceException
deleteJobRunData in interface DefinitionStoragejobName - the jobjobRunId - the id of the job run for which to delete the data
PersistenceException - error accessing storepublic void setClusterConfigService(ClusterConfigService ccs)
ClusterConfigService. To be called by DS runtime before activation.
ccs - new ClusterConfigServicepublic void unsetClusterConfigService(ClusterConfigService ccs)
ClusterConfigService. To be called by DS runtime after deactivation.
ccs - new ClusterConfigService
|
SMILA (incubation) API documentation | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||