From: <st...@us...> - 2010-01-19 17:35:07
|
Revision: 8154 http://smartfrog.svn.sourceforge.net/smartfrog/?rev=8154&view=rev Author: steve_l Date: 2010-01-19 17:34:57 +0000 (Tue, 19 Jan 2010) Log Message: ----------- SFOS-1401 starting on the workflows Modified Paths: -------------- trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRole.java trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRoleImpl.java Modified: trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRole.java =================================================================== --- trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRole.java 2010-01-19 17:25:17 UTC (rev 8153) +++ trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRole.java 2010-01-19 17:34:57 UTC (rev 8154) @@ -64,10 +64,33 @@ /** * CD of name, value pairs + * {@value} */ String ATTR_OPTIONS = "options"; /** + * CD of something to deploy for the machine; node.name, node.external.ip and node.role are all set + * {@value} + */ + String ATTR_ON_NODE_DEPLOY = "onNodeDeploy"; + + /** + * {@value} + */ + String ATTR_NODE_NAME = "node.name"; + + /** + * {@value} + */ + String ATTR_NODE_EXTERNAL_IP = "node.external.ip"; + + /** + * {@value} + */ + String ATTR_NODE_ROLE = "node.role"; + + + /** * Build a new ClusterRoleInfo instance * * @return the new instance @@ -75,5 +98,13 @@ */ ClusterRoleInfo buildClusterRoleInfo() throws RemoteException; + /** + * This will look up the role information + * + * @param name name to look for + * @return role information + * @throws RemoteException network trouble + * @throws SmartFrogResolutionException resolution problems + */ ClusterRoleInfo resolveRoleInfo(String name) throws RemoteException, SmartFrogResolutionException; } Modified: trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRoleImpl.java =================================================================== --- trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRoleImpl.java 2010-01-19 17:25:17 UTC (rev 8153) +++ trunk/core/components/cloudfarmer/src/org/smartfrog/services/cloudfarmer/server/common/ClusterRoleImpl.java 2010-01-19 17:34:57 UTC (rev 8154) @@ -26,7 +26,6 @@ import org.smartfrog.sfcore.prim.Prim; import org.smartfrog.sfcore.prim.PrimImpl; import org.smartfrog.sfcore.componentdescription.ComponentDescription; - import java.rmi.RemoteException; import java.util.Iterator; @@ -69,14 +68,15 @@ } /** - * This will build the role information - * - * @return role info -without any name + * This will look up the role information + * + * @param name name to fill in + * @return role info * @throws RemoteException network trouble * @throws SmartFrogResolutionException resolution problems */ public ClusterRoleInfo resolveRoleInfo(String name) throws RemoteException, SmartFrogResolutionException { - final ClusterRoleInfo roleInfo = resolveRoleInfo(this); + ClusterRoleInfo roleInfo = resolveRoleInfo(this); roleInfo.setName(name); return roleInfo; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |