public class DelphixEngine
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DelphixEngine.ContainerOperationType |
static class |
DelphixEngine.EnvironmentOperationType |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONTENT_COMPATIBLE_REPOSITORIES |
static java.lang.String |
CONTENT_LATEST_POINT |
static java.lang.String |
CONTENT_LATEST_SNAPSHOT |
static java.lang.String |
CONTENT_REFRESH_HOOK |
static java.lang.String |
CONTENT_ROLLBACK_HOOK |
static java.lang.String |
CONTENT_SYNC_HOOK |
| Constructor and Description |
|---|
DelphixEngine(DelphixEngine engine) |
DelphixEngine(java.lang.String engineAddress,
java.lang.String engineUsername,
java.lang.String enginePassword) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelJob(java.lang.String jobRef)
Cancel a job running on the Delphix Engine
|
java.lang.String |
createEnvironment(java.lang.String address,
java.lang.String user,
java.lang.String password,
java.lang.String toolkit)
Create and discover an environment
|
java.lang.String |
deleteContainer(java.lang.String containerRef)
Delete a container
|
java.lang.String |
deleteEnvironment(java.lang.String environmentRef)
Delete an environment
|
java.util.ArrayList<DelphixRepository> |
getCompatibleRepositoriesContainer(java.lang.String environmentRef,
java.lang.String containerRef,
java.lang.String location)
Get the compatible provision repositories from a semantic point on a container
|
java.util.ArrayList<DelphixRepository> |
getCompatibleRepositoriesSnapshot(java.lang.String environmentRef,
java.lang.String snapshotRef)
Get the compatible provision repositories from a snapshot
|
DelphixContainer |
getContainer(java.lang.String reference)
Get a single container
|
java.lang.String |
getEngineAddress() |
java.lang.String |
getEnginePassword() |
java.lang.String |
getEngineUsername() |
JobStatus |
getJobStatus(java.lang.String job)
Get the status of a job running on the Delphix Engine
|
java.lang.String |
getParentContainer(java.lang.String vdbRef)
Get the parent of a virtual database on the Delphix Engine
|
DelphixRepository |
getRepository(java.lang.String repositoryRef)
Gets a repository
|
DelphixSnapshot |
getSnapshot(java.lang.String reference) |
java.util.ArrayList<DelphixClusterNode> |
listClusterNodes()
Get cluster nodes
|
java.util.LinkedHashMap<java.lang.String,DelphixContainer> |
listContainers()
List containers in the Delphix Engine
|
java.util.LinkedHashMap<java.lang.String,DelphixEnvironment> |
listEnvironments()
List environments in the Delphix Engine
|
java.util.ArrayList<DelphixGroup> |
listGroups() |
java.util.LinkedHashMap<java.lang.String,DelphixSnapshot> |
listSnapshots()
List snapshots in the Delphix Engine
|
java.util.LinkedHashMap<java.lang.String,DelphixSource> |
listSources()
List sources in the Delphix Engine
|
java.util.LinkedHashMap<java.lang.String,DelphixTimeflow> |
listTimeflows()
List timeflows in the Delphix Engine
|
void |
login()
Login to Delphix Engine Will throw a DelphixEngineException if the login
fails due to bad username or password
|
java.lang.String |
provisionVDB(java.lang.String containerRef,
java.lang.String snapshotRef,
java.lang.String containerName,
java.lang.String repositoryRef,
java.lang.String mountBase)
Provision a VDB either a semantic point or a snapshot with the name of the new VDB being optional
|
java.lang.String |
refreshContainer(java.lang.String vdbRef,
java.lang.String location)
Refresh a virtual database on the Delphix Engine using semantic location
|
java.lang.String |
refreshEnvironment(java.lang.String environmentRef)
Refresh and discover an environment
|
java.lang.String |
rollbackContainer(java.lang.String vdbRef,
java.lang.String location)
Rollback a virtual database on the Delphix Engine using semantic location
|
java.lang.String |
sync(java.lang.String sourceRef)
Run a sync operation for a source on the Delphix Engine
|
void |
updateHooks(DelphixEngine.ContainerOperationType targetOperation,
java.lang.String containerRef,
java.util.ArrayList<HookOperation> preOperations,
java.util.ArrayList<HookOperation> postOperations)
Update the pre and post hooks for a specific type of operation on a container
|
public static final java.lang.String CONTENT_LATEST_POINT
public static final java.lang.String CONTENT_LATEST_SNAPSHOT
public static final java.lang.String CONTENT_SYNC_HOOK
public static final java.lang.String CONTENT_REFRESH_HOOK
public static final java.lang.String CONTENT_ROLLBACK_HOOK
public static final java.lang.String CONTENT_COMPATIBLE_REPOSITORIES
@DataBoundConstructor
public DelphixEngine(java.lang.String engineAddress,
java.lang.String engineUsername,
java.lang.String enginePassword)
public DelphixEngine(DelphixEngine engine)
public void login()
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic DelphixContainer getContainer(java.lang.String reference) throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.util.LinkedHashMap<java.lang.String,DelphixContainer> listContainers() throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.util.ArrayList<DelphixGroup> listGroups() throws java.io.IOException, DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.util.LinkedHashMap<java.lang.String,DelphixSource> listSources() throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.util.LinkedHashMap<java.lang.String,DelphixTimeflow> listTimeflows() throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.util.LinkedHashMap<java.lang.String,DelphixEnvironment> listEnvironments() throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic DelphixSnapshot getSnapshot(java.lang.String reference) throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.util.LinkedHashMap<java.lang.String,DelphixSnapshot> listSnapshots() throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic void cancelJob(java.lang.String jobRef)
throws org.apache.http.client.ClientProtocolException,
java.io.IOException,
DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic JobStatus getJobStatus(java.lang.String job) throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.lang.String refreshContainer(java.lang.String vdbRef,
java.lang.String location)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String rollbackContainer(java.lang.String vdbRef,
java.lang.String location)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String getParentContainer(java.lang.String vdbRef)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String sync(java.lang.String sourceRef)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic DelphixRepository getRepository(java.lang.String repositoryRef) throws java.io.IOException, DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.util.ArrayList<DelphixClusterNode> listClusterNodes() throws java.io.IOException, DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.util.ArrayList<DelphixRepository> getCompatibleRepositoriesSnapshot(java.lang.String environmentRef, java.lang.String snapshotRef) throws org.apache.http.client.ClientProtocolException, java.io.IOException, DelphixEngineException
org.apache.http.client.ClientProtocolExceptionjava.io.IOExceptionDelphixEngineExceptionpublic java.util.ArrayList<DelphixRepository> getCompatibleRepositoriesContainer(java.lang.String environmentRef, java.lang.String containerRef, java.lang.String location) throws java.io.IOException, DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String provisionVDB(java.lang.String containerRef,
java.lang.String snapshotRef,
java.lang.String containerName,
java.lang.String repositoryRef,
java.lang.String mountBase)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String createEnvironment(java.lang.String address,
java.lang.String user,
java.lang.String password,
java.lang.String toolkit)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String deleteContainer(java.lang.String containerRef)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String refreshEnvironment(java.lang.String environmentRef)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String deleteEnvironment(java.lang.String environmentRef)
throws java.io.IOException,
DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic void updateHooks(DelphixEngine.ContainerOperationType targetOperation, java.lang.String containerRef, java.util.ArrayList<HookOperation> preOperations, java.util.ArrayList<HookOperation> postOperations) throws java.io.IOException, DelphixEngineException
java.io.IOExceptionDelphixEngineExceptionpublic java.lang.String getEngineAddress()
public java.lang.String getEngineUsername()
public java.lang.String getEnginePassword()