public class ProcessStateHandler extends Object implements ApplicationReadyEvent.ApplicationReadyHandler, ProcessStateEvent.ProcessStateHandler, HostResultEvent.HostResultHandler, ServerGroupResultEvent.ServerGroupResultHandler, ServerActionEvent.ServerActionHandler, ServerResultEvent.ServerResultHandler
ProcessState events and emits messages if necessary. Messages are emitted only if there was no message in the last ms
and if the server was not restarted recently (a server restart resets the timeout).
In standalone mode the message contains an action link to reload / restart the server. Whereas in domain mode there's no direct way to reload / restart the affected servers (there might be just too many of them). Instead the message contains a link to the topology.
| Constructor and Description |
|---|
ProcessStateHandler(Environment environment,
com.google.web.bindery.event.shared.EventBus eventBus,
com.gwtplatform.mvp.client.proxy.PlaceManager placeManager,
Places places,
Finder finder,
ServerActions serverActions,
javax.inject.Provider<Progress> progress,
Resources resources) |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationReady(ApplicationReadyEvent event) |
void |
onHostResult(HostResultEvent event) |
void |
onProcessState(ProcessStateEvent event) |
void |
onServerAction(ServerActionEvent event) |
void |
onServerGroupResult(ServerGroupResultEvent event) |
void |
onServerResult(ServerResultEvent event) |
@Inject public ProcessStateHandler(Environment environment, com.google.web.bindery.event.shared.EventBus eventBus, com.gwtplatform.mvp.client.proxy.PlaceManager placeManager, Places places, Finder finder, ServerActions serverActions, @Footer javax.inject.Provider<Progress> progress, Resources resources)
public void onApplicationReady(ApplicationReadyEvent event)
onApplicationReady in interface ApplicationReadyEvent.ApplicationReadyHandlerpublic void onProcessState(ProcessStateEvent event)
onProcessState in interface ProcessStateEvent.ProcessStateHandlerpublic void onHostResult(HostResultEvent event)
onHostResult in interface HostResultEvent.HostResultHandlerpublic void onServerGroupResult(ServerGroupResultEvent event)
onServerGroupResult in interface ServerGroupResultEvent.ServerGroupResultHandlerpublic void onServerAction(ServerActionEvent event)
onServerAction in interface ServerActionEvent.ServerActionHandlerpublic void onServerResult(ServerResultEvent event)
onServerResult in interface ServerResultEvent.ServerResultHandlerCopyright © 2018 JBoss, a division of Red Hat. All rights reserved.