public interface DeploymentFacility
Modifier and Type | Field and Description |
---|---|
static String |
STUBS_JARFILENAME |
Modifier and Type | Method and Description |
---|---|
javax.enterprise.deploy.spi.TargetModuleID[] |
_listAppRefs(String[] targets)
list all application refs that are present in the provided list of targets
|
javax.enterprise.deploy.spi.TargetModuleID[] |
_listAppRefs(String[] targets,
String state)
list all application refs that are present in the provided list of targets with the specified state
|
javax.enterprise.deploy.spi.TargetModuleID[] |
_listAppRefs(String[] targets,
String state,
String type)
list all application refs that are present in the provided list of targets with the specified state and specified type
|
javax.enterprise.deploy.spi.TargetModuleID[] |
_listAppRefs(javax.enterprise.deploy.spi.Target[] targets,
String state,
String type)
list all application refs that are present in the provided list of targets with the specified state and specified type
|
boolean |
connect(ServerConnectionIdentifier targetDAS)
Connects to a particular instance of the domain adminstration
server using the provided connection information
|
DFProgressObject |
createAppRef(javax.enterprise.deploy.spi.Target[] targets,
String moduleID,
Map options)
Add an application ref on the selected targets
|
javax.enterprise.deploy.spi.Target[] |
createTargets(String[] targets)
Creates an array of Target objects corresponding to the list of target names.
|
DFProgressObject |
deleteAppRef(javax.enterprise.deploy.spi.Target[] targets,
String moduleID,
Map options)
remove the application ref for the provided list of targets.
|
DFProgressObject |
deploy(javax.enterprise.deploy.spi.Target[] targets,
ReadableArchive source,
ReadableArchive deploymentPlan,
Map deploymentOptions) |
DFProgressObject |
deploy(javax.enterprise.deploy.spi.Target[] targets,
URI source,
URI deploymentPlan,
Map deploymentOptions)
Initiates a deployment operation on the server, using a source
archive abstraction and an optional deployment plan if the
server specific information is not embedded in the source
archive.
|
DFProgressObject |
disable(javax.enterprise.deploy.spi.Target[] targets,
String moduleID)
Disables a deployed component on the provided list of targets
|
boolean |
disconnect()
Disconnects from a domain administration server and releases
all associated resouces.
|
String |
downloadFile(File location,
String moduleID,
String moduleURI)
Downloads a particular file from the server repository.
|
DFProgressObject |
enable(javax.enterprise.deploy.spi.Target[] targets,
String moduleID)
Enables a deployed component on the provided list of targets.
|
void |
getClientStubs(String location,
String moduleID)
Downloads the client stubs from the server repository.
|
String |
getContextRoot(String moduleName)
Get context root for the module
|
HostAndPort |
getHostAndPort(String target)
get the host and port information
|
HostAndPort |
getHostAndPort(String target,
boolean securityEnabled)
get the host and port information with security enabled attribute
|
HostAndPort |
getHostAndPort(String target,
String modID,
boolean securityEnabled)
get the host and port information with the specified module id and
security enabled attribute
|
javax.enterprise.deploy.shared.ModuleType |
getModuleType(String moduleName)
Get module type for the module
|
List<String> |
getSubModuleInfoForJ2EEApplication(String appName)
Get sub module info for ear
|
HostAndPort |
getVirtualServerHostAndPort(String target,
String virtualServer,
boolean securityEnabled)
get the host and port information with the specified virtual server and
security enabled attribute
|
boolean |
isConnected() |
javax.enterprise.deploy.spi.TargetModuleID[] |
listAppRefs(String[] targets)
list all application refs that are present in the provided list of targets
|
javax.enterprise.deploy.spi.Target[] |
listReferencedTargets(String appName)
list the referenced targets for application
|
javax.enterprise.deploy.spi.Target[] |
listTargets()
list all targets
|
DFProgressObject |
undeploy(javax.enterprise.deploy.spi.Target[] targets,
String moduleID) |
DFProgressObject |
undeploy(javax.enterprise.deploy.spi.Target[] targets,
String moduleID,
Map options)
Initiates an undeployment operation of the specified module affecting the selected targets.
|
DFDeploymentStatus |
waitFor(DFProgressObject po)
Wait for a progress object to be in a completed state
(sucessful or failed) and return the DeploymentStatus for
this progress object.
|
static final String STUBS_JARFILENAME
boolean connect(ServerConnectionIdentifier targetDAS)
Most other methods require that connect be invoked first.
targetDAS
- the ServerConnectionIdentifier
that specifies which DAS to connect toboolean isConnected()
boolean disconnect()
DFProgressObject deploy(javax.enterprise.deploy.spi.Target[] targets, URI source, URI deploymentPlan, Map deploymentOptions)
Once the deployment
is successful, the TargetModuleID objects representing where the application
now resides are available using the ProgressObject.getResultTargetModuleIDs()
method.
targets
- the Target objects to which to deploy the application - an empty array indicates a request to deploy to the default serversource
- URI to the Java EE module abstraction (with or without
the server specific artifacts).deploymentPlan
- URI to the optional deployment plan if the source
archive is portable.deploymentOptions
- deployment optionsIllegalStateException
- if the client has not invoked connect yetDFProgressObject deploy(javax.enterprise.deploy.spi.Target[] targets, ReadableArchive source, ReadableArchive deploymentPlan, Map deploymentOptions) throws IOException
IOException
DFProgressObject undeploy(javax.enterprise.deploy.spi.Target[] targets, String moduleID)
DFProgressObject undeploy(javax.enterprise.deploy.spi.Target[] targets, String moduleID, Map options)
After the undeployment operation completes successfully use the ProgressObject.getResultTargetModuleIDs()
method to retrieve
the TargetModuleID objects representing the targets from which the module has been undeployed.
targets
- the Target objects indicating which targets from which to undeploy the application; an empty targets array is a request to undeploy from the default servermoduleID
- identifies the module to undeployDFProgressObject
to receive undeployment events and completion statusIllegalStateException
- if the deployment facility has not been connected to the back-endDFProgressObject enable(javax.enterprise.deploy.spi.Target[] targets, String moduleID)
DFProgressObject disable(javax.enterprise.deploy.spi.Target[] targets, String moduleID)
DFProgressObject createAppRef(javax.enterprise.deploy.spi.Target[] targets, String moduleID, Map options)
DFProgressObject deleteAppRef(javax.enterprise.deploy.spi.Target[] targets, String moduleID, Map options)
HostAndPort getHostAndPort(String target) throws IOException
IOException
HostAndPort getHostAndPort(String target, boolean securityEnabled) throws IOException
IOException
HostAndPort getVirtualServerHostAndPort(String target, String virtualServer, boolean securityEnabled) throws IOException
IOException
HostAndPort getHostAndPort(String target, String modID, boolean securityEnabled) throws IOException
IOException
javax.enterprise.deploy.spi.TargetModuleID[] listAppRefs(String[] targets) throws IOException
IOException
javax.enterprise.deploy.spi.TargetModuleID[] _listAppRefs(String[] targets) throws IOException
IOException
javax.enterprise.deploy.spi.TargetModuleID[] _listAppRefs(String[] targets, String state) throws IOException
IOException
javax.enterprise.deploy.spi.TargetModuleID[] _listAppRefs(String[] targets, String state, String type) throws IOException
IOException
javax.enterprise.deploy.spi.TargetModuleID[] _listAppRefs(javax.enterprise.deploy.spi.Target[] targets, String state, String type) throws IOException
IOException
List<String> getSubModuleInfoForJ2EEApplication(String appName) throws IOException
IOException
String getContextRoot(String moduleName) throws IOException
IOException
javax.enterprise.deploy.shared.ModuleType getModuleType(String moduleName) throws IOException
IOException
javax.enterprise.deploy.spi.Target[] listTargets() throws IOException
IOException
javax.enterprise.deploy.spi.Target[] listReferencedTargets(String appName) throws IOException
IOException
String downloadFile(File location, String moduleID, String moduleURI) throws IOException
location
- is the root directory where to place the
downloaded filemoduleID
- is the moduleID of the deployed component
to download the file frommoduleURI
- is the relative path to the file in the repository
or STUBS_JARFILENAME to download the appclient jar file.IOException
void getClientStubs(String location, String moduleID) throws IOException
location
- is the root path where to place the
downloaded stubsmoduleID
- is the moduleID of the deployed component
to download the stubs forIOException
DFDeploymentStatus waitFor(DFProgressObject po)
the
- progress object to wait for completionjavax.enterprise.deploy.spi.Target[] createTargets(String[] targets)
targets
- the names of the targets of interestCopyright © 2019. All rights reserved.