Package org.wildfly.plugin.tools
Interface ContainerDescription
public interface ContainerDescription
Information about the running container.
- Author:
- James R. Perkins
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classDescribes the model version. -
Method Summary
Modifier and TypeMethodDescriptionReturns the type of the server that was launched.Returns the root model version.Returns the name of the product.Returns the product version, if defined, ornullif the product version was not defined.Returns the release version, if defined, ornullif the release version was not defined.booleanisDomain()Checks if the server is a managed domain server.static ContainerDescriptionlookup(org.jboss.as.controller.client.ModelControllerClient client) Queries the running container and attempts to lookup the information from the running container.
-
Method Details
-
getProductName
String getProductName()Returns the name of the product.- Returns:
- the name of the product
-
getProductVersion
String getProductVersion()Returns the product version, if defined, ornullif the product version was not defined.- Returns:
- the product version or
nullif not defined
-
getReleaseVersion
String getReleaseVersion()Returns the release version, if defined, ornullif the release version was not defined.Note that in WildFly 9+ this is usually the version for WildFly Core. In WildFly 8 this is the full version.
- Returns:
- the release version or
nullif not defined
-
getModelVersion
Returns the root model version.- Returns:
- the model version
-
getLaunchType
String getLaunchType()Returns the type of the server that was launched.- Returns:
- the type of the server that was launched or
nullif not defined
-
isDomain
boolean isDomain()Checks if the server is a managed domain server.- Returns:
trueif this is a managed domain, otherwisefalse
-
lookup
static ContainerDescription lookup(org.jboss.as.controller.client.ModelControllerClient client) throws IOException, OperationExecutionException Queries the running container and attempts to lookup the information from the running container.- Parameters:
client- the client used to execute the management operation- Returns:
- the container description
- Throws:
IOException- if an error occurs communicating with the serverOperationExecutionException- if the operation used to query the container fails
-