Interface ServerGroupManager
-
- All Known Subinterfaces:
DomainManager
- All Known Implementing Classes:
AbstractDomainManager
public interface ServerGroupManagerA manager that allows control of the server groups lifecycle. Note that if this is not associated with a manual mode container operations will fail.- Author:
- James R. Perkins
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreloadServers(String groupName)Reloads all the servers associated with this server group.voidrestartServers(String groupName)Restarts all the servers associated with this server group.voidresumeServers(String groupName)Resumes all the previously suspended servers associated with this server group.voidstartServers(String groupName)Starts all the servers associated with this server group.voidstopServers(String groupName)Stops all the servers associated with this server group.voidsuspendServers(String groupName, int timeout)Suspends all the servers associated with this server group.
-
-
-
Method Detail
-
reloadServers
void reloadServers(String groupName)
Reloads all the servers associated with this server group.- Parameters:
groupName- the name of the server group- Throws:
IllegalStateException- if lifecycle operations are not allowedRuntimeException- if the reload operation fails
-
restartServers
void restartServers(String groupName)
Restarts all the servers associated with this server group.- Parameters:
groupName- the name of the server group- Throws:
IllegalStateException- if lifecycle operations are not allowedRuntimeException- if the restart operation fails
-
resumeServers
void resumeServers(String groupName)
Resumes all the previously suspended servers associated with this server group.- Parameters:
groupName- the name of the server group- Throws:
IllegalStateException- if lifecycle operations are not allowedRuntimeException- if the resume operation fails
-
startServers
void startServers(String groupName)
Starts all the servers associated with this server group.- Parameters:
groupName- the name of the server group- Throws:
IllegalStateException- if lifecycle operations are not allowedRuntimeException- if the start operation fails
-
stopServers
void stopServers(String groupName)
Stops all the servers associated with this server group.- Parameters:
groupName- the name of the server group- Throws:
IllegalStateException- if lifecycle operations are not allowedRuntimeException- if the stop operation fails
-
suspendServers
void suspendServers(String groupName, int timeout)
Suspends all the servers associated with this server group.- Parameters:
groupName- the name of the server grouptimeout- the timeout in seconds. A value of 0 returns immediately and a value of -1 will wait indefinitely- Throws:
IllegalStateException- if lifecycle operations are not allowedRuntimeException- if the suspend operation fails
-
-