com.jboss.jbossnetwork.product.jbpm.handlers
Interface ControlActionFacade

All Known Implementing Classes:
PluginContainerControlActionFacade

public interface ControlActionFacade

Facade to the rest of the plugin classes necessary to perform control actions on the resource. This is largely to facilitate testing, allowing the test to substitute in a mock implementation. When running live, an implementation will simply forward the calls to the appropriate class in the plugin or in the plugin container APIs.

Author:
Jason Dobies

Method Summary
 boolean isRunning()
          Indicates if the AS instance is running.
 OperationServicesResult start()
          Starts the underlying JBoss AS instance.
 OperationServicesResult stop()
          Stops the underlying JBoss AS instance.
 

Method Detail

start

OperationServicesResult start()
Starts the underlying JBoss AS instance.

Returns:
result of executing the operation, which will indicate success or failure

stop

OperationServicesResult stop()
Stops the underlying JBoss AS instance. This method will throw an exception if the AS server is not currently running.

Returns:
result of executing the operation, which will indicate success or failure

isRunning

boolean isRunning()
Indicates if the AS instance is running.

Returns:
true if the instance is running; false otherwise.


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