SmartFrog 3.10.000

org.smartfrog.sfcore.common
Class ActionDeploy

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

public class ActionDeploy
extends ConfigurationAction

Deploy a component


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

KEY_LANGUAGE

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

ActionDeploy

public ActionDeploy()
Method Detail

Deploy

public static Prim Deploy(java.lang.String url,
                          java.lang.String appName,
                          Prim parent,
                          Compound target,
                          Context c,
                          Reference deployReference)
                   throws SmartFrogException,
                          java.rmi.RemoteException
Parses and deploys "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
appName - name of the application
parent - parent for the new component. If null if will use 'target'.
target - the target process compound to request deployment
c - a context of additional attributes that should be set before deployment
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