containerConfig.getServerGroupOperationTimeoutInSeconds());
String mode = mapMode(modeMap, serverContainer.getName());
if(mode != null) {
serverContainer.getContainerConfiguration().setMode(mode);
}
setupEvent.fire(new SetupContainer(serverContainer));
serverContainer.setState(Container.State.STARTED);
}
// Register all Servers
for (Server server : domain.getServers()) {
Container serverContainer = createServerContainer(registry, server, containerConfig.getServerOperationTimeoutInSeconds());
String mode = mapMode(modeMap, serverContainer.getName());
if(mode != null) {
serverContainer.getContainerConfiguration().setMode(mode);
}
String serverStatus = managementClient.getServerState(server);
setupEvent.fire(new SetupContainer(serverContainer));
if (serverStatus.equals("STARTED")) {
serverContainer.setState(Container.State.STARTED);
} else {
serverContainer.setState(Container.State.STOPPED);
}