public class SnapshotContext
extends java.lang.Object
| Constructor and Description |
|---|
SnapshotContext(java.io.File rootDir, java.lang.String instanceId, java.lang.Object svcContext)
Construct a context object to hold the information necessary for creating a snapshot of all registered artifacts.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
getContext() |
java.io.File |
getLocation() |
void |
setArtifactIdentifier(ArtifactType type, java.lang.String identifier) |
public SnapshotContext(java.io.File rootDir,
java.lang.String instanceId,
java.lang.Object svcContext)
throws SnapshotException
rootDir - root directory for snapshots. A null value implies current directoryinstanceId - 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 instanceSnapshotExceptionpublic void setArtifactIdentifier(ArtifactType type, java.lang.String identifier)
public java.io.File getLocation()
public java.lang.Object getContext()