com.jboss.jbossnetwork.product.jbpm.handlers
Class PluginContainerControlActionFacade

java.lang.Object
  extended by com.jboss.jbossnetwork.product.jbpm.handlers.PluginContainerControlActionFacade
All Implemented Interfaces:
ControlActionFacade

public class PluginContainerControlActionFacade
extends Object
implements ControlActionFacade

Implementation of the ControlActionFacade that connects to the plugin container to perform its calls.

Author:
Jason Dobies

Constructor Summary
PluginContainerControlActionFacade(OperationContext operationContext, ResourceComponent<?> serverComponent)
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PluginContainerControlActionFacade

public PluginContainerControlActionFacade(OperationContext operationContext,
                                          ResourceComponent<?> serverComponent)
Method Detail

start

public OperationServicesResult start()
Description copied from interface: ControlActionFacade
Starts the underlying JBoss AS instance.

Specified by:
start in interface ControlActionFacade
Returns:
result of executing the operation, which will indicate success or failure

stop

public OperationServicesResult stop()
Description copied from interface: ControlActionFacade
Stops the underlying JBoss AS instance. This method will throw an exception if the AS server is not currently running.

Specified by:
stop in interface ControlActionFacade
Returns:
result of executing the operation, which will indicate success or failure

isRunning

public boolean isRunning()
Description copied from interface: ControlActionFacade
Indicates if the AS instance is running.

Specified by:
isRunning in interface ControlActionFacade
Returns:
true if the instance is running; false otherwise.


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