org.jboss.on.plugins.tomcat
Class TomcatServerOperationsDelegate

java.lang.Object
  extended by org.jboss.on.plugins.tomcat.TomcatServerOperationsDelegate

public class TomcatServerOperationsDelegate
extends Object

Handles performing operations on a Tomcat Server

Author:
Jay Shaughnessy, Ian Springer, Jason Dobies, Lukas Krejci

Field Summary
static String SHUTDOWN_SCRIPT_ENVIRONMENT_PROPERTY
           
static String START_SCRIPT_ENVIRONMENT_PROPERTY
           
 
Constructor Summary
TomcatServerOperationsDelegate(TomcatServerComponent serverComponent, SystemInfo systemInfo)
           
 
Method Summary
 OperationResult invoke(TomcatServerComponent.SupportedOperations operation, Configuration parameters)
          Performs the specified operation.
static void setProcessExecutionEnvironment(ProcessExecution processExecution, String catalinaHome, String catalinaBase)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SHUTDOWN_SCRIPT_ENVIRONMENT_PROPERTY

public static final String SHUTDOWN_SCRIPT_ENVIRONMENT_PROPERTY
See Also:
Constant Field Values

START_SCRIPT_ENVIRONMENT_PROPERTY

public static final String START_SCRIPT_ENVIRONMENT_PROPERTY
See Also:
Constant Field Values
Constructor Detail

TomcatServerOperationsDelegate

public TomcatServerOperationsDelegate(TomcatServerComponent serverComponent,
                                      SystemInfo systemInfo)
Method Detail

invoke

public OperationResult invoke(TomcatServerComponent.SupportedOperations operation,
                              Configuration parameters)
                       throws InterruptedException
Performs the specified operation. The result of the operation will be indicated in the return. If there is an error, an RuntimeException will be thrown.

Parameters:
operation - the operation to perform
parameters - parameters to the operation call
Returns:
if successful, the result object will contain a success message
Throws:
RuntimeException - if any errors occur while trying to perform the operation
InterruptedException

setProcessExecutionEnvironment

public static void setProcessExecutionEnvironment(ProcessExecution processExecution,
                                                  String catalinaHome,
                                                  String catalinaBase)


Copyright © 2008-2011 Red Hat, Inc.. All Rights Reserved.