public interface ManagedDeployment
Modifier and Type | Interface and Description |
---|---|
static class |
ManagedDeployment.DeploymentPhase
Deprecated.
- no replacement, to be dropped
|
Modifier and Type | Method and Description |
---|---|
void |
addComponent(String name,
ManagedComponent comp)
Add a component to this deployment
|
ManagedDeployment |
addModule(String deploymentBaseName,
DeploymentTemplateInfo info)
Add a deployment
|
boolean |
addType(String type)
Add a deployment/module type
|
<T> T |
getAttachment(Class<T> expectedType)
Get an attachment from the deployment,
uses the expected type as both the name
and to cast the resulting object.
|
Object |
getAttachment(String name)
Get an attachment from the deployment.
|
List<ManagedDeployment> |
getChildren()
Get the nested deployment modules.
|
ManagedComponent |
getComponent(String name)
Gets the nested ManagedComponent with the specified name.
|
Map<String,ManagedComponent> |
getComponents()
Get the nested ManagedComponents for the deployment module.
|
Set<String> |
getComponentTemplateNames()
Get the DeploymentTemplate names for components
that can be added to this deployment.
|
ManagedDeployment.DeploymentPhase |
getDeploymentPhase()
Get the phase this deployment is associated with
|
DeploymentState |
getDeploymentState()
Get the deployment state of the deployment.
|
Set<String> |
getDeploymentTemplateNames()
Get the DeploymentTemplate names for deployments
that can be added to this deployment.
|
ManagedObject |
getManagedObject(String name)
Gets the child managed object with the specified name.
|
Set<String> |
getManagedObjectNames()
Get the names of the child managed objects.
|
Map<String,ManagedObject> |
getManagedObjects()
Gets the child managed objects.
|
String |
getName()
Get the full name of the associated DeploymentUnit
(e.g.
|
ManagedDeployment |
getParent() |
Map<String,ManagedProperty> |
getProperties()
Get the properties
|
ManagedProperty |
getProperty(String name)
Get a property
|
Set<String> |
getPropertyNames()
Get the managed property names
|
String |
getSimpleName()
Get the simple name (e.g.
|
Set<String> |
getTypes()
Get the deployment/module types.
|
boolean |
removeComponent(String name) |
void |
setAttachment(String name,
Object attachment)
Set an attachment against the deployment.
|
void |
setTypes(Set<String> types)
Get the deployment/module types.
|
String getName()
String getSimpleName()
ManagedDeployment.DeploymentPhase getDeploymentPhase()
DeploymentState getDeploymentState()
boolean addType(String type)
type
- Set<String> getPropertyNames()
ManagedProperty getProperty(String name)
name
- the nameMap<String,ManagedProperty> getProperties()
Set<String> getManagedObjectNames()
Map<String,ManagedObject> getManagedObjects()
ManagedObject getManagedObject(String name)
name
- the managed object nameManagedDeployment getParent()
ManagedComponent getComponent(String name)
name
- the child component's nameMap<String,ManagedComponent> getComponents()
List<ManagedDeployment> getChildren()
Set<String> getComponentTemplateNames()
void addComponent(String name, ManagedComponent comp)
name
- the namecomp
- the componentboolean removeComponent(String name)
name
- the nameSet<String> getDeploymentTemplateNames()
ManagedDeployment addModule(String deploymentBaseName, DeploymentTemplateInfo info)
deploymentBaseName
- info
- Object getAttachment(String name)
name
- the namesetAttachment(String, Object)
<T> T getAttachment(Class<T> expectedType)
T
- the expected typeexpectedType
- the expected typeClassCastException
- when the object is not of the expected typevoid setAttachment(String name, Object attachment)
name
- the nameattachment
- the attachment, pass null to remove an attachmentIllegalArgumentException
- for a null nameCopyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.