Re: Compound implementations
"Goldsack, Patrick" <[email protected]> Mon, 3 Jul 2006 21:32:40 +0100
| Newsgroups | gmane.comp.java.smartfrog.devel |
|---|---|
| Message-ID | <[email protected]> |
Actually, Sequence does not call sfTerninate, but waits for the child
termination to occur before invoking sfDeploy/sfStart on the next.
A component such as you propose would be very easy...
Patrick
-----Original Message-----
From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Olivier Pernet
Sent: 03 July 2006 17:52
To: Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] Compound implementations
Hello,
We're in need of a Compound implementation that calls sfDeploy and
sfStart for each component sequentially, but not sfTerminate like what
Sequence does.
Is there a way to use one of the provided implementations for this, or
do we have to write one ?
Just to make things clearer, here is the description we want to get
working :
#include "org/smartfrog/components.sf"
#include "org/smartfrog/sfcore/workflow/combinators/container.sf"
#include "ch/cern/openlab/smartfrog/xen/components.sf"
#include "org/smartfrog/services/shellscript/components.sf"
/*
* A gLite testbed-in-a-box. Deploy on a Xen-enabled machine.
*/
sfConfig extends Compound {
sfDeployerClass
"org.smartfrog.sfcore.processcompound.PrimHostDeployerImpl";
// Needed for proper termination of the component :
// the shell is needed for domain shutdown.
sfSyncTerminate true;
// The shell needs to come first, too.
domZeroShell extends BashShell;
rgmaServer extends Compound {
sfSyncTerminate true;
vm4rgma extends XenDomainLVM {
domainName "rgma";
ip "128.142.134.121";
hostname "oplaslim9-rgma";
#include "ch/cern/openlab/smartfrog/gLite/LVMDefaultSetup.sf"
}
// This fails, because Compound calls
// sfDeploy on it before call sfStart on vm4rgma.
dummy extends Prim {
sfProcessHost ATTRIB vm4rgma:ip;
sfClass "org.smartfrog.sfcore.prim.PrimImpl";
}
}
vomsServer extends Compound {
sfSyncTerminate true;
vm4voms extends XenDomainLVM {
domainName "voms";
ip "128.142.134.122";
hostname "oplaslim9-voms";
#include "ch/cern/openlab/smartfrog/gLite/LVMDefaultSetup.sf"
}
// Also fails for the same reason (except that it's vm4voms this
time).
dummy extends Prim {
sfProcessHost ATTRIB vm4voms:ip;
sfClass "org.smartfrog.sfcore.prim.PrimImpl";
}
}
}
--
Olivier Pernet
Summer Student - CERN Openlab
We are the knights who say
echo '16i[q]sa[ln0=aln100%Pln100/snlbx]sbA0D4D465452snlbxq'|dc
Using Tomcat but need to do more? Need to support web services,
security?
Get stuff done quickly with pre-integrated technology to make your job
easier Download IBM WebSphere Application Server v.1.0.1 based on Apache
Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Smartfrog-developer mailing list
Smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-developer
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642