public interface DomainClient extends ModelControllerClient
Modifier and Type | Interface and Description |
---|---|
static class |
DomainClient.Factory
Factory used to create an
DomainClient instance for a remote address
and port. |
Modifier and Type | Method and Description |
---|---|
byte[] |
addDeploymentContent(InputStream stream)
Add the content for a deployment to the domain controller.
|
DomainDeploymentManager |
getDeploymentManager()
Gets a
DomainDeploymentManager that provides a convenience API
for manipulating domain deployments. |
List<String> |
getHostControllerNames()
Gets the list of currently running host controllers.
|
Map<ServerIdentity,ServerStatus> |
getServerStatuses()
Gets a list of all servers known to the domain, along with their current
status . |
ServerStatus |
restartServer(String hostControllerName,
String serverName,
long gracefulShutdownTimeout,
TimeUnit timeUnit)
Restarts the given server.
|
ServerStatus |
startServer(String hostControllerName,
String serverName)
Starts the given server.
|
ServerStatus |
stopServer(String hostControllerName,
String serverName,
long gracefulShutdownTimeout,
TimeUnit timeUnit)
Stops the given server.
|
execute, execute, execute, execute, executeAsync, executeAsync, executeAsync, executeAsync, executeOperation, executeOperationAsync
List<String> getHostControllerNames()
null
byte[] addDeploymentContent(InputStream stream)
stream
- the data stream for the deploymentDomainDeploymentManager getDeploymentManager()
DomainDeploymentManager
that provides a convenience API
for manipulating domain deployments.null
Map<ServerIdentity,ServerStatus> getServerStatuses()
status
. Servers associated with host controllers that
are currently off line will not be included.null
ServerStatus startServer(String hostControllerName, String serverName)
hostControllerName
- the name of the host controller responsible for the serverserverName
- the name of the servernull
ServerStatus stopServer(String hostControllerName, String serverName, long gracefulShutdownTimeout, TimeUnit timeUnit)
hostControllerName
- the name of the host controller responsible for the serverserverName
- the name of the servergracefulShutdownTimeout
- maximum period to wait to allow the server
to gracefully handle long running tasks before shutting down,
or -1
to shutdown immediatelytimeUnit
- time unit in which gracefulShutdownTimeout
is expressednull
ServerStatus restartServer(String hostControllerName, String serverName, long gracefulShutdownTimeout, TimeUnit timeUnit)
hostControllerName
- the name of the host controller responsible for the serverserverName
- the name of the servergracefulShutdownTimeout
- maximum period to wait to allow the server
to gracefully handle long running tasks before shutting down,
or -1
to shutdown immediatelytimeUnit
- time unit in which gracefulShutdownTimeout
is expressednull
Copyright © 2017 JBoss by Red Hat. All rights reserved.