Package com.sun.enterprise.admin.util
Class InstanceCommandExecutor
- java.lang.Object
-
- com.sun.enterprise.admin.remote.RemoteAdminCommand
-
- com.sun.enterprise.admin.remote.ServerRemoteAdminCommand
-
- com.sun.enterprise.admin.util.InstanceCommandExecutor
-
- All Implemented Interfaces:
Runnable,InstanceCommand
public class InstanceCommandExecutor extends ServerRemoteAdminCommand 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
-
-
Field Summary
-
Fields inherited from class com.sun.enterprise.admin.remote.RemoteAdminCommand
authToken, COMMAND_MODEL_MATCH_HEADER, host, logger, name, operands, options, output, password, port, prohibitDirectoryUploads, scope, secure, user
-
-
Constructor Summary
Constructors Constructor Description InstanceCommandExecutor(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 StringgetCommandOutput()ActionReportgetReport()ServergetServer()voidrun()-
Methods inherited from class com.sun.enterprise.admin.remote.ServerRemoteAdminCommand
addAdditionalHeaders, authenticationInfo, getHttpConnectorAddress
-
Methods inherited from class com.sun.enterprise.admin.remote.RemoteAdminCommand
executeCommand, fetchCommandModel, getAttributes, getCanonicalHost, getCommandModel, getCommandURI, getFromEnvironment, getReadTimeout, getUsage, headers, isCommandModelFromCache, processHeaders, reportAuthenticationException, retryUsingSecureConnection, setCommandModel, setConnectTimeout, setFileOutputDirectory, setInteractive, setOmitCache, setReadTimeout, setResponseFormatType, setUserOut, updateAuthentication
-
-
-
-
Constructor Detail
-
InstanceCommandExecutor
public InstanceCommandExecutor(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:
getCommandOutputin interfaceInstanceCommand- Returns:
-
getServer
public Server getServer()
-
getReport
public ActionReport getReport()
-
-