Class DeployerType
- java.lang.Object
-
- org.codehaus.cargo.container.deployer.DeployerType
-
public final class DeployerType extends Object
Type of Deployer. Can be a installed, embedded or remote.
-
-
Field Summary
Fields Modifier and Type Field Description static DeployerTypeEMBEDDEDA deployer type to deploy to an embedded local container.static DeployerTypeINSTALLEDA deployer type to deploy to an installed local container.static DeployerTypeREMOTEA deployer type to deploy to a remote container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object object)StringgetType()inthashCode()booleanisLocal()booleanisRemote()StringtoString()static DeployerTypetoType(String typeAsString)Transform a type represented as a string into aDeployerTypeobject.static DeployerTypetoType(ContainerType containerType)Converts aContainerTypeto the correspondingDeployerType.
-
-
-
Field Detail
-
INSTALLED
public static final DeployerType INSTALLED
A deployer type to deploy to an installed local container.
-
REMOTE
public static final DeployerType REMOTE
A deployer type to deploy to a remote container.
-
EMBEDDED
public static final DeployerType EMBEDDED
A deployer type to deploy to an embedded local container.
-
-
Method Detail
-
toType
public static DeployerType toType(String typeAsString)
Transform a type represented as a string into aDeployerTypeobject.- Parameters:
typeAsString- the string to transform- Returns:
- the
DeployerTypeobject
-
toType
public static DeployerType toType(ContainerType containerType)
Converts aContainerTypeto the correspondingDeployerType.- Parameters:
containerType- the container type to be converted.- Returns:
- the deployer type
-
getType
public String getType()
- Returns:
- the deployer's type
-
isLocal
public boolean isLocal()
- Returns:
- true if the deployer type is a local type (installed or embedded)
-
isRemote
public boolean isRemote()
- Returns:
- true if the deployer type is a remote type
-
-