Class ServerActions
- java.lang.Object
-
- org.jboss.hal.core.runtime.server.ServerActions
-
-
Field Summary
-
Fields inherited from interface org.jboss.hal.core.runtime.Timeouts
HOST_DEFAULT_TIMEOUT, HOST_RELOAD_TIMEOUT, HOST_RESTART_TIMEOUT, SERVER_DESTROY_TIMEOUT, SERVER_GROUP_DEFAULT_TIMEOUT, SERVER_KILL_TIMEOUT, SERVER_RELOAD_TIMEOUT, SERVER_RESTART_TIMEOUT, SERVER_RESUME_TIMEOUT, SERVER_START_TIMEOUT, SERVER_STOP_TIMEOUT, SERVER_SUSPEND_TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description ServerActions(com.google.web.bindery.event.shared.EventBus eventBus, Dispatcher dispatcher, ServerUrlStorage serverUrlStorage, StatementContext statementContext, MetadataProcessor metadataProcessor, javax.inject.Provider<Progress> progress, Resources resources)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearPending(Server server)voidcopyServer(Server server, Callback callback)voiddestroy(Server server)voideditUrl(Server server, Callback callback)booleanisPending(Server server)voidkill(Server server)voidmarkAsPending(Server server)voidreadUrl(boolean standalone, String host, String serverGroup, String server, com.google.gwt.user.client.rpc.AsyncCallback<ServerUrl> callback)Reads the URL using the provided parametersvoidreadUrl(Server server, elemental2.dom.HTMLElement element)Reads the URL and updates the specified HTML elementvoidreload(Server server)voidrestart(Server server)voidrestartStandalone(Server server, com.google.gwt.safehtml.shared.SafeHtml question)voidresume(Server server)voidstart(Server server)voidstartInSuspendedMode(Server server)voidstop(Server server)voidstopNow(Server server)Call/host={host}/server-config={sever}:stop(blocking=false)the intended action is to immediately stop the server.voidsuspend(Server server)
-
-
-
Constructor Detail
-
ServerActions
@Inject public ServerActions(com.google.web.bindery.event.shared.EventBus eventBus, Dispatcher dispatcher, ServerUrlStorage serverUrlStorage, StatementContext statementContext, MetadataProcessor metadataProcessor, @Footer javax.inject.Provider<Progress> progress, Resources resources)
-
-
Method Detail
-
restartStandalone
public void restartStandalone(Server server, com.google.gwt.safehtml.shared.SafeHtml question)
-
reload
public void reload(Server server)
-
restart
public void restart(Server server)
-
suspend
public void suspend(Server server)
-
resume
public void resume(Server server)
-
stop
public void stop(Server server)
-
stopNow
public void stopNow(Server server)
Call/host={host}/server-config={sever}:stop(blocking=false)the intended action is to immediately stop the server.
-
destroy
public void destroy(Server server)
-
kill
public void kill(Server server)
-
start
public void start(Server server)
-
startInSuspendedMode
public void startInSuspendedMode(Server server)
-
readUrl
public void readUrl(Server server, elemental2.dom.HTMLElement element)
Reads the URL and updates the specified HTML element
-
readUrl
public void readUrl(boolean standalone, String host, String serverGroup, String server, com.google.gwt.user.client.rpc.AsyncCallback<ServerUrl> callback)Reads the URL using the provided parameters
-
markAsPending
public void markAsPending(Server server)
-
clearPending
public void clearPending(Server server)
-
isPending
public boolean isPending(Server server)
-
-