org.smartfrog.sfcore.common
Class ActionDetachAndTerminate
java.lang.Object
org.smartfrog.sfcore.common.ConfigurationAction
org.smartfrog.sfcore.common.ActionDetachAndTerminate
public class ActionDetachAndTerminate
- extends ConfigurationAction
Detach and Terminate a component
|
Field Summary |
static java.lang.String |
ERROR_NO_APP_NAME
Error text when there is no application to terminate. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ERROR_NO_APP_NAME
public static final java.lang.String ERROR_NO_APP_NAME
- Error text when there is no application to terminate.
"No application name provided"
- See Also:
- Constant Field Values
ActionDetachAndTerminate
public ActionDetachAndTerminate()
DetachAndTerminate
public static Prim DetachAndTerminate(java.lang.String name,
ProcessCompound targetP)
throws SmartFrogException,
java.rmi.RemoteException
- Detaches and Terminates name from component targetP
- Parameters:
name - name of the applicationtargetP - the target process compound to request deployment
- Returns:
- Reference to detached component
- Throws:
SmartFrogException - failure in some part of the process
java.rmi.RemoteException - In case of network/rmi error
execute
public java.lang.Object execute(ProcessCompound targetP,
ConfigurationDescriptor configuration)
throws SmartFrogException,
java.rmi.RemoteException
- Detach and Terminate action
- Specified by:
execute in class ConfigurationAction
- Parameters:
targetP - target where to execute the configuration commandconfiguration - configuration command to be executed
- Returns:
- Object Reference to detached and terminated component
- Throws:
SmartFrogException - failure in some part of the process
java.rmi.RemoteException - In case of network/rmi error
(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP