com.sun.enterprise.admin.util
Class InstanceCommandExecutor

java.lang.Object
  extended by com.sun.enterprise.admin.remote.RemoteAdminCommand
      extended by com.sun.enterprise.admin.remote.ServerRemoteAdminCommand
          extended by 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, host, logger, name, operands, options, output, password, port, prohibitDirectoryUploads, secure, user
 
Constructor Summary
InstanceCommandExecutor(org.jvnet.hk2.component.Habitat habitat, String name, FailurePolicy fail, FailurePolicy offline, Server server, String host, int port, Logger logger, ParameterMap p, ActionReport r, InstanceCommandResult res)
           
 
Method Summary
 String getCommandOutput()
           
 ActionReport getReport()
           
 Server getServer()
           
 void run()
           
 
Methods inherited from class com.sun.enterprise.admin.remote.ServerRemoteAdminCommand
addAdditionalHeaders, authenticationInfo, getHttpConnectorAddress
 
Methods inherited from class com.sun.enterprise.admin.remote.RemoteAdminCommand
executeCommand, getAttributes, getCommandModel, getFromEnvironment, getReadTimeout, getUsage, headers, reportAuthenticationException, retryUsingSecureConnection, setCommandModel, setConnectTimeout, setFileOutputDirectory, setInteractive, setReadTimeout, setResponseFormatType, setUserOut, updateAuthentication
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceCommandExecutor

public InstanceCommandExecutor(org.jvnet.hk2.component.Habitat 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 interface InstanceCommand

getServer

public Server getServer()

getReport

public ActionReport getReport()

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2012. All Rights Reserved.