Skip navigation links
oracle.security.opss.lifecycle.datamgmt
Class SnapshotContext
java.lang.Object
oracle.security.opss.lifecycle.datamgmt.SnapshotContext
-
public class SnapshotContext
- extends java.lang.Object
Specify location to create snapshot: location/instanceId if no identifier is specified, timestamp is used
Constructor Summary |
SnapshotContext(java.io.File rootDir, java.lang.String instanceId, java.lang.Object svcContext, boolean apply)
Construct a context object to hold the information necessary for creating a snapshot of all registered artifacts. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SnapshotContext
public SnapshotContext(java.io.File rootDir,
java.lang.String instanceId,
java.lang.Object svcContext,
boolean apply)
throws SnapshotException
- Construct a context object to hold the information necessary for creating a snapshot of all registered artifacts. Versioning is automatic and uses current system timestamp
- Parameters:
rootDir
- root directory for snapshots. A null value implies current directory
instanceId
- directory location relative to rootDir/i> for this instance of the snapshot. A null or empty string will create snapshot in rootDir.
svcContext
- any service context to be passed to the Snapshot instance
apply
- true if context used during apply, false if used during create
- Throws:
SnapshotException
setArtifactIdentifier
public void setArtifactIdentifier(ArtifactType type,
java.lang.String identifier)
getLocation
public java.io.File getLocation()
-
- Returns:
- the location
getContext
public java.lang.Object getContext()
-
- Returns:
- the svcContext
Skip navigation links
Copyright © 2011, 2015, Oracle and/or its affiliates. All rights reserved.