SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class ActionDetachAndTerminate

java.lang.Object
  extended by org.smartfrog.sfcore.common.ConfigurationAction
      extended by 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.
 
Constructor Summary
ActionDetachAndTerminate()
           
 
Method Summary
static Prim DetachAndTerminate(java.lang.String name, ProcessCompound targetP)
          Detaches and Terminates name from component targetP
 java.lang.Object execute(ProcessCompound targetP, ConfigurationDescriptor configuration)
          Detach and Terminate action
 
Methods inherited from class org.smartfrog.sfcore.common.ConfigurationAction
execute, HandleTerminationException, selectTargetProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

ActionDetachAndTerminate

public ActionDetachAndTerminate()
Method Detail

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 application
targetP - 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 command
configuration - 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

SmartFrog CORE 3.10.000

(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP