Package com.sun.enterprise.admin.util
Class InstanceRestCommandExecutor
- java.lang.Object
-
- com.sun.enterprise.admin.event.AdminCommandEventBrokerImpl<GfSseInboundEvent>
-
- com.sun.enterprise.admin.remote.RemoteRestAdminCommand
-
- com.sun.enterprise.admin.remote.ServerRemoteRestAdminCommand
-
- com.sun.enterprise.admin.util.InstanceRestCommandExecutor
-
- All Implemented Interfaces:
Runnable
,AdminCommandEventBroker<GfSseInboundEvent>
,InstanceCommand
public class InstanceRestCommandExecutor extends ServerRemoteRestAdminCommand implements Runnable, InstanceCommand
Causes execution of an administrative command on one or more remote instances to be triggered from code running inside the DAS.- Author:
- Vijay Ramachandran, mmares
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.glassfish.api.admin.AdminCommandEventBroker
AdminCommandEventBroker.AdminCommandListener<T>, AdminCommandEventBroker.BrokerListenerRegEvent, AdminCommandEventBroker.EventBrokerUtils
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.remote.RemoteRestAdminCommand
authToken, COMMAND_MODEL_MATCH_HEADER, host, logger, name, notify, operands, options, output, password, port, prohibitDirectoryUploads, scope, secure, user
-
Fields inherited from interface org.glassfish.api.admin.AdminCommandEventBroker
LOCAL_EVENT_PREFIX
-
-
Constructor Summary
Constructors Constructor Description InstanceRestCommandExecutor(org.glassfish.hk2.api.ServiceLocator habitat, String name, FailurePolicy fail, FailurePolicy offline, Server server, String host, int port, Logger logger, ParameterMap p, ActionReport r, InstanceCommandResult res)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCommandOutput()
ActionReport
getReport()
Server
getServer()
void
run()
-
Methods inherited from class com.sun.enterprise.admin.remote.ServerRemoteRestAdminCommand
addAdditionalHeaders, authenticationInfo, getHttpConnectorAddress
-
Methods inherited from class com.sun.enterprise.admin.remote.RemoteRestAdminCommand
closeSse, executeCommand, fetchCommandModel, findPropertyInReport, getActionReport, getAttributes, getCanonicalHost, getCommandModel, getCommandURI, getFromEnvironment, getManPage, getReadTimeout, getUsage, headers, isCommandModelFromCache, preinit, processHeaders, refetchInvalidModel, reportAuthenticationException, retryUsingSecureConnection, setActionReport, setCommandModel, setConnectTimeout, setEnableCommandModelCache, setFileOutputDirectory, setInteractive, setReadTimeout, setResponseFormatType, setUserOut, updateAuthentication, useSse
-
Methods inherited from class com.sun.enterprise.admin.event.AdminCommandEventBrokerImpl
fireEvent, fireEvent, getUtils, listening, registerListener, unregisterListener
-
-
-
-
Constructor Detail
-
InstanceRestCommandExecutor
public InstanceRestCommandExecutor(org.glassfish.hk2.api.ServiceLocator habitat, String name, FailurePolicy fail, FailurePolicy offline, Server server, String host, int port, Logger logger, ParameterMap p, ActionReport r, InstanceCommandResult res) throws CommandException
- Throws:
CommandException
-
-
Method Detail
-
getCommandOutput
public String getCommandOutput()
- Specified by:
getCommandOutput
in interfaceInstanceCommand
- Returns:
-
getServer
public Server getServer()
-
getReport
public ActionReport getReport()
-
-