org.smartfrog.sfcore.common
Class ActionDeploy
java.lang.Object
org.smartfrog.sfcore.common.ConfigurationAction
org.smartfrog.sfcore.common.ActionDeploy
public class ActionDeploy
- extends ConfigurationAction
Deploy a component
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_LANGUAGE
public static final java.lang.String KEY_LANGUAGE
- See Also:
- Constant Field Values
ActionDeploy
public ActionDeploy()
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 parseappName - name of the applicationparent - parent for the new component. If null if will use 'target'.target - the target process compound to request deploymentc - a context of additional attributes that should be set before
deploymentdeployReference - 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 commandconfiguration - 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
(C) Copyright 1998-2006 Hewlett-Packard Development Company, LP