SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class ActionUpdate

java.lang.Object
  extended by org.smartfrog.sfcore.common.ConfigurationAction
      extended by org.smartfrog.sfcore.common.ActionUpdate

public class ActionUpdate
extends ConfigurationAction

Deploy a component


Field Summary
static java.lang.String KEY_LANGUAGE
           
 
Constructor Summary
ActionUpdate()
           
 
Method Summary
 java.lang.Object execute(ProcessCompound targetP, ConfigurationDescriptor configuration)
          Deploy Action.
static Update update(java.lang.String url, Update component, Context c, Reference deployReference)
          Parses and updates "sfConfig" from a resource to the target process compound rethrows an exception if it fails, after trying to clean up.
 
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

KEY_LANGUAGE

public static final java.lang.String KEY_LANGUAGE
See Also:
Constant Field Values
Constructor Detail

ActionUpdate

public ActionUpdate()
Method Detail

update

public static Update update(java.lang.String url,
                            Update component,
                            Context c,
                            Reference deployReference)
                     throws SmartFrogException,
                            java.rmi.RemoteException
Parses and updates "sfConfig" from a resource to the target process compound rethrows an exception if it fails, after trying to clean up. This method will check if parent is a rootProcess and it so, it will register "url" as a root component that will start its own liveness.

Parameters:
url - URL of resource to parse
component - reference for the component to update.
deployReference - reference to resolve in ComponentDescription. If ref is null the whole result ComponentDescription is returned.
Returns:
Prim Reference to deployed 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
Deploy 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 deployed 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