public class ServerActions extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
SERVER_RELOAD_TIMEOUT |
static int |
SERVER_RESTART_TIMEOUT |
static int |
SERVER_RESUME_TIMEOUT |
static int |
SERVER_START_TIMEOUT |
static int |
SERVER_STOP_TIMEOUT |
static int |
SERVER_SUSPEND_TIMEOUT |
| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
void |
clearPending(Server server) |
void |
copyServer(Server server,
Callback callback) |
void |
editUrl(Server server,
Callback callback) |
boolean |
isPending(Server server) |
void |
kill(Server server) |
void |
markAsPending(Server server) |
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
|
void |
readUrl(Server server,
com.google.gwt.user.client.rpc.AsyncCallback<ServerUrl> callback)
Reads the URL using the information from the specified server instance
|
void |
readUrl(Server server,
elemental2.dom.HTMLElement element)
Reads the URL and updates the specified HTML element
|
void |
reload(Server server) |
void |
restart(Server server) |
void |
restartStandalone(Server server,
com.google.gwt.safehtml.shared.SafeHtml question) |
void |
resume(Server server) |
void |
start(Server server) |
void |
stop(Server server) |
void |
stopNow(Server server)
Call
/host={host}/server-config={sever}:stop(blocking=false) the intended action is to immediately
stop the server. |
void |
suspend(Server server) |
public static final int SERVER_SUSPEND_TIMEOUT
public static final int SERVER_RESUME_TIMEOUT
public static final int SERVER_START_TIMEOUT
public static final int SERVER_STOP_TIMEOUT
public static final int SERVER_RELOAD_TIMEOUT
public static final int SERVER_RESTART_TIMEOUT
@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)
public void reload(Server server)
public void restart(Server server)
public void restartStandalone(Server server, com.google.gwt.safehtml.shared.SafeHtml question)
public void suspend(Server server)
public void resume(Server server)
public void stop(Server server)
public void stopNow(Server server)
/host={host}/server-config={sever}:stop(blocking=false) the intended action is to immediately
stop the server.server - public void kill(Server server)
public void start(Server server)
public void readUrl(Server server, elemental2.dom.HTMLElement element)
public void readUrl(Server server, com.google.gwt.user.client.rpc.AsyncCallback<ServerUrl> callback)
public void readUrl(boolean standalone,
String host,
String serverGroup,
String server,
com.google.gwt.user.client.rpc.AsyncCallback<ServerUrl> callback)
public void markAsPending(Server server)
public void clearPending(Server server)
public boolean isPending(Server server)
Copyright © 2018 JBoss, a division of Red Hat. All rights reserved.