public interface ArchiveManagement
ArchiveManagement interface must be implemented by Enablers that support the "Archive Management Support" feature.
This interface defines methods that will be called for the various archive lifecycle operations:
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONFIGURE_XML
Constant representing the name of the property containing an optional configure.xml text
|
static java.lang.String |
LOGICAL_AND_PROP
Constant representing the name of the logical AND property
|
| Modifier and Type | Method and Description |
|---|---|
void |
archiveDeploy(java.lang.String archiveName,
java.util.List<ArchiveLocator> archiveLocators,
java.util.Properties properties)
Deploy an archive.
|
ArchiveDetail[] |
archiveDetect()
Detect currently active archives.
|
void |
archiveScaleDown(java.lang.String archiveName,
java.lang.String archiveId)
Scale down the instance of the archive.
|
ArchiveActivationInfo |
archiveScaleUp(java.lang.String archiveName,
java.util.List<ArchiveLocator> archiveLocators)
Scale up an instance of the given archive.
|
ArchiveActivationInfo |
archiveStart(java.lang.String archiveName,
java.util.Properties properties)
Start an archive.
|
void |
archiveStop(java.lang.String archiveName,
java.lang.String archiveId,
java.util.Properties properties)
Stop an archive instance.
|
void |
archiveUndeploy(java.lang.String archiveName,
java.util.Properties properties)
Undeploy an archive.
|
java.lang.String[] |
urlDetect()
Detect current context URLs.
|
static final java.lang.String CONFIGURE_XML
static final java.lang.String LOGICAL_AND_PROP
void archiveDeploy(java.lang.String archiveName,
java.util.List<ArchiveLocator> archiveLocators,
java.util.Properties properties)
throws java.lang.Exception
archiveName - the name of the archive to deployarchiveLocators - the locators from which to download the archive. The utility method ContainerUtils.retrieveAndConfigureArchiveFile may be used to download and configure the archive.properties - properties associated with this deploy operationjava.lang.Exception - if there is an error deploying the archiveContainerUtils.retrieveAndConfigureArchiveFile(Container, String, List, Properties)ArchiveActivationInfo archiveStart(java.lang.String archiveName, java.util.Properties properties) throws java.lang.Exception
archiveName - the name of the archive to startproperties - properties associated with this start operationArchiveActivationInfo object containing the ID of the archive instance that was started.java.lang.ExceptionArchiveActivationInfo archiveScaleUp(java.lang.String archiveName, java.util.List<ArchiveLocator> archiveLocators) throws java.lang.Exception
archiveName - the name of archive to scalearchiveLocators - the locators from which to download the archive. This may be null if the archive is not physically available and the scale up operation is to be done by name only. If locators are specified, the utility method ContainerUtils.retrieveAndConfigureArchiveFile may be used to download and configure the archive.ArchiveActivationInfo object containing the ID of the archive instance that was scaled.java.lang.Exception - if there is an error scaling up an instance of the archivevoid archiveScaleDown(java.lang.String archiveName,
java.lang.String archiveId)
throws java.lang.Exception
archiveName - the archive to removearchiveId - the archive instance to removejava.lang.Exception - if there is an error scaling down the archive instancevoid archiveStop(java.lang.String archiveName,
java.lang.String archiveId,
java.util.Properties properties)
throws java.lang.Exception
archiveName - the name of the archive to stoparchiveId - the ID of the archive instance to stopproperties - properties associated with this stop operationjava.lang.Exception - if there is an error stopping this archive instancevoid archiveUndeploy(java.lang.String archiveName,
java.util.Properties properties)
throws java.lang.Exception
archiveName - the name of the archive to undeployproperties - properties associated with this undeploy operationjava.lang.Exception - if there is an error undeploying this archiveArchiveDetail[] archiveDetect() throws java.lang.Exception
ArchiveDetail objects containing information about running archives.java.lang.Exception - if there is an error detecting archivesjava.lang.String[] urlDetect()
throws java.lang.Exception
String containing current context URLs.java.lang.Exception - if there is an error detecting URLsCopyright © 2014 TIBCO Software, Inc. All Rights Reserved.