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 DeployerType
EMBEDDED
A deployer type to deploy to an embedded local container.static DeployerType
INSTALLED
A deployer type to deploy to an installed local container.static DeployerType
REMOTE
A deployer type to deploy to a remote container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object object)
String
getType()
int
hashCode()
boolean
isLocal()
boolean
isRemote()
String
toString()
static DeployerType
toType(String typeAsString)
Transform a type represented as a string into aDeployerType
object.static DeployerType
toType(ContainerType containerType)
Converts aContainerType
to 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 aDeployerType
object.- Parameters:
typeAsString
- the string to transform- Returns:
- the
DeployerType
object
-
toType
public static DeployerType toType(ContainerType containerType)
Converts aContainerType
to 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
-
-