public class RunnerHttpCreateInstance extends RunnerHttp
DEFAULT=<target>
query execution using HTTP interface.
Contains common code for commands that are called with
DEFAULT=<target>
query string. Individual child classes
are not needed at this stage.
Class implements GlassFish server administration functionality trough HTTP
interface.
Modifier and Type | Field and Description |
---|---|
private static String |
CLUSTER_PARAM
Start/Stop command
cluster param name. |
private static String |
DEFAULT_PARAM
Start/Stop command
DEFAULT param name. |
private static Logger |
LOGGER
Logger instance for this class.
|
private static String |
NODE_PARAM
Start/Stop command
node param name. |
LIBRARY_SEPARATOR, manifest, result
auth, command, FALSE_VALUE, HTTP_CONNECTION_TIMEOUT, HTTP_RETRY_DELAY, ITEM_SEPARATOR, PARAM_ASSIGN_VALUE, PARAM_SEPARATOR, path, query, QUERY_SEPARATOR, retry, server, silentFailureAllowed, stateListeners, TRUE_VALUE
Constructor and Description |
---|
RunnerHttpCreateInstance(GlassFishServer server,
Command command,
IdeContext ide)
Constructs an instance of administration command executor using
HTTP interface.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
processResponse()
Extracts result value from internal
Manifest object. |
private static String |
query(Command command)
Builds enable/disable query string for given command.
|
acceptsGzip, constructCommandUrl, createResult, getDoOutput, getExtraProperties, getLastModified, getRequestMethod, handleSend, prepareHttpConnection, queryLibrariesAppend, queryLibrariesLength, queryPropertiesAppend, queryPropertiesLength, readResponse
call, execute, execute, getCommand, getCommandWithQuery, getContentType, getQuery, getResult, handleReceive, handleSecureConnection, handleStateChange, isSilentFailureAllowed, parallelExecutor, serializedExecutor, setReadyState, setSilentFailureAllowed, setStateListeners, stateChangeArgs, stateChangeArgs, toBoolean, toString
private static final Logger LOGGER
private static final String DEFAULT_PARAM
DEFAULT
param name.private static final String NODE_PARAM
node
param name.private static final String CLUSTER_PARAM
cluster
param name.public RunnerHttpCreateInstance(GlassFishServer server, Command command, IdeContext ide)
server
- GlassFish server entity object.command
- GlassFish server administration command entity.private static String query(Command command)
QUERY :: "DEFAULT" '=' <name> '&' "node" '=' <node>
['&' "cluster" '=' <cluster> ]
command
- GlassFish Server Admin Command Entity.
CommandDisable
instance is expected.protected boolean processResponse()
Manifest
object.
Value of message attribute in Manifest
object is
stored as value into ResultString
result object.
processResponse
in class RunnerHttp
null
messagevalue is considered as failure.Copyright © 2013. All Rights Reserved.