T -public abstract class GetSnapshotTask<T> extends SessionedTask<Snapshot<T>>
Ref : Contains the set of Ref objects representing the resources that existed at a given timeDigest : Contains the set of Digest objects for resources that existed at a given timeCanonicalResource : Contains canonical (in-memory, non-serialized) values of resources that existed at a given timePortableResource : Contains portable (serialized) values of resources that existed at a given time.RefValueDomain.| Modifier and Type | Field and Description |
|---|---|
protected java.util.Date |
date |
protected RefValueDomain |
valueDomain |
| Modifier | Constructor and Description |
|---|---|
protected |
GetSnapshotTask(java.lang.String description, RefValueDomain valueDomain, java.util.Date date) |
| Modifier and Type | Method and Description |
|---|---|
protected Snapshot<T> |
_execute()
Subclasses implement this method
|
static Snapshot<CanonicalResource> |
getCanonicalResourceSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date, boolean getCopy)
Returns a snapshot of canonical data for resources that existed with respect to the given time
|
static Snapshot<Digest> |
getDigestSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain)
Returns the current snapshot of Digests for resources
|
static Snapshot<Digest> |
getDigestSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date)
Returns a snapshot of digests for resources that existed with respect to the given time
|
protected ExecRecord |
getExecRecord(java.lang.String id) |
static Snapshot<PortableResource> |
getPortableResourceSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date, PBE_EncryptionService es)
Returns a snapshot of portable data for resources that existed with respect to the given time
|
static Snapshot<Ref> |
getRefSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date)
Returns a snapshot of references for resources that existed with respect to the given time
|
protected UndoRecord |
getUndoRecord(java.lang.String id) |
protected abstract T |
getValue(Ref ref, java.lang.String lastTaskId) |
assertExists, assertLocation, assertNONResource, assertNotExists, assertNotLocationData, assertNotNull, assertNotNullElement, assertResource, assertSimple, call, doExecute, doExecute, doExecute, doExecute, expand, getConfigContext, getConfigMBean, getConfigService, getDescription, getSession, isLocation, isReadOnlyTransaction, requiresSystemTransactionprotected final RefValueDomain valueDomain
protected final java.util.Date date
protected GetSnapshotTask(java.lang.String description,
RefValueDomain valueDomain,
java.util.Date date)protected abstract T getValue(Ref ref, java.lang.String lastTaskId) throws java.lang.Exception
java.lang.Exceptionprotected Snapshot<T> _execute() throws java.lang.Exception
SessionedTask_execute in class SessionedTask<Snapshot<T>>java.lang.Exceptionpublic static Snapshot<Ref> getRefSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date) throws java.lang.Exception
configService - the config service objectsession - the session for which to compute the result. The snapshot for a session contains only the resources that are ever modified in that session, as opposed to all the resources that are visible in that session.valueDomain - the value domain. Only snapshot information for resources that are in this value domain will be returneddate - time for which to return the snapshot. A null value indicates the most recent (current) snapshot.java.lang.Exceptionpublic static Snapshot<Digest> getDigestSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain)
configService - the config service objectsession - the session for which to compute the result. The snapshot for a session contains only the resources that are ever modified in that session, as opposed to all the resources that are visible in that session.valueDomain - the value domain. Only snapshot information for resources that are in this value domain will be returnedjava.lang.Exceptionpublic static Snapshot<Digest> getDigestSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date) throws java.lang.Exception
configService - the config service objectsession - the session for which to compute the result. The snapshot for a session contains only the resources that are ever modified in that session, as opposed to all the resources that are visible in that session.valueDomain - the value domain. Only snapshot information for resources that are in this value domain will be returneddate - time for which to return the snapshot. A null value indicates the most recent (current) snapshot.java.lang.Exceptionpublic static Snapshot<CanonicalResource> getCanonicalResourceSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date, boolean getCopy) throws java.lang.Exception
configService - the config service objectsession - the session for which to compute the result. The snapshot for a session contains only the resources that are ever modified in that session, as opposed to all the resources that are visible in that session.valueDomain - the value domain. Only snapshot information for resources that are in this value domain will be returneddate - time for which to return the snapshot. A null value indicates the most recent (current) snapshot.java.lang.Exceptionpublic static Snapshot<PortableResource> getPortableResourceSnapshot(ConfigService configService, java.lang.String session, RefValueDomain valueDomain, java.util.Date date, PBE_EncryptionService es) throws java.lang.Exception
configService - the config service objectsession - the session for which to compute the result. The snapshot for a session contains only the resources that are ever modified in that session, as opposed to all the resources that are visible in that session.valueDomain - the value domain. Only snapshot information for resources that are in this value domain will be returneddate - time for which to return the snapshot. A null value indicates the most recent (current) snapshot.java.lang.Exceptionprotected ExecRecord getExecRecord(java.lang.String id) throws java.lang.Exception
java.lang.Exceptionprotected UndoRecord getUndoRecord(java.lang.String id) throws java.lang.Exception
java.lang.Exception