Re: [Smartfrog-developer] How to communicatebetween two differentsmartfrog daemons?
"Guijarro, Julio" <[email protected]> Fri, 22 Dec 2006 19:20:13 -0000
| Newsgroups | gmane.comp.java.smartfrog.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Ambika,
Sorry for not answering this message sooner.
The best way would be to define a new filter Listener for the Cmd class
and use that to receive all the log coming from the shell. This is not
implemented yet but I could do it for you. I am about to go on holidays
today and back the week of the 8th so it won't be ready before that but
it could be that Kumar or Ritu could help you with it if you need it
before that week.
The other option is to get the log files back to the source with a
component listening to the log or a component that reads the log files
from the remote machine. We use a similar approach with Avalanche and
Ritu and Kumar could show you how to do it.
I am sorry that I cannot help you more but these two weeks before
Christmas have been very busy for all of us.
Merry Christmas and Happy New Year.
Julio G
________________________________
From: smartfrog-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-support-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Ambika Awanty
Sent: 19 December 2006 09:48
To: smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: Re: [Smartfrog-support] [Smartfrog-developer] How to
communicatebetween two differentsmartfrog daemons?
Hi Julio,
I need to work in the following way.
I need to execute some commands in other nodes in the
network and send back the output to the sfDaemon through which I have
deployed the component which will execute the commands. So how I can
achieve this?
Through the RunShellScripts I am able to run the commands,
but I am not getting how to send back the output.
Regards,
Ambika
________________________________
From: Guijarro, Julio
Sent: Monday, December 18, 2006 7:04 PM
To: Ambika Awanty; smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: RE: [Smartfrog-developer] How to communicate between
two differentsmartfrog daemons?
What do you need to do exactly? There are many different ways of
doing that. In general, any daemon can locate the other daemons and
components and then you can remotely invoke any remote method on any
component.
One way could be using the EventSend component, for example:
#include "org/smartfrog/components.sf"
#include "org/smartfrog/sfcore/workflow/components.sf"
#include
"org/smartfrog/examples/dynamicwebserver/gui/progresspanel/components.sf
"
//----------------------------------
// Simulate the entire workflow, generating the correct events
// then delaying termination to hold the display up for a while
//----------------------------------
myDelay extends DoNothing {
time 2000; //delay in msecs
}
SimulatedApacheInstallScript extends Sequence {
name "apache";
e1 extends EventSend {
sendTo:top LAZY PARENT;
event (name ++ ":1:4: Step 1");
}
-- extends myDelay;
e2 extends EventSend {
sendTo:top LAZY PARENT;
event (name ++ ":2:4: Step 2");
}
-- extends myDelay;
e3 extends EventSend {
sendTo:top LAZY PARENT;
event (name ++ ":3:4: Step 3");
}
-- extends myDelay;
e4 extends EventSend {
sendTo:top LAZY PARENT;
event (name ++ ":4:4: Step4. Final.");
}
-- extends myDelay;
e5 extends EventSend {
sendTo:top LAZY PARENT;
event (name ++ ":5:4: Apache installed");
}
delayTermination extends DoNothing {
time 2000;
}
}
sfConfig extends Compound {
//Special Events Printer
eventPrinter extends DisplayProgress {
terminationType "none";
nameDisplay "apache installation progress";
heightDisplay 200;
widthDisplay 520;
}
//Install process...
workflow extends SimulatedApacheInstallScript {
sendTo:printer LAZY eventPrinter;
}
}
There are also components for using Jabber for example.
Julio
________________________________
From: smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
[mailto:smartfrog-developer-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org] On Behalf Of
Ambika Awanty
Sent: 18 December 2006 07:23
To: smartfrog-developer-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org;
smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Subject: [Smartfrog-developer] How to communicate between two
differentsmartfrog daemons?
Hi All,
I need to create a application in which i need to send
messages between two daemons which are runiing in different nodes of
HUPX. So is there any direct way to communicate?
Thanks and Regards,
Ambika
Send free SMS to your Friends on Mobile from your Yahoo!
Messenger. Download Now! http://messenger.yahoo.com/download.php
Send free SMS to your Friends on Mobile from your Yahoo! Messenger.
Download Now! http://messenger.yahoo.com/download.php
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Smartfrog-support mailing list
Smartfrog-support-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/smartfrog-support