|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.services.MulticastDiscoveryService
public class MulticastDiscoveryService
Responsible for discovery of RemoteResources on the network, especially but
not only XuluServers
. It listens for the following
messages:
"Hello Xulu from XuluServer" - sent by RemoteResources like
XuluServer
when starting
"Goodbye Xulu" - sent by RemoteResources like XuluServer
when
stopping
and sends:
"Hello Servers" - when started If multicasting does not work try to disable
your firewall or better configure it to allow multicast packages. Notice
also, that multicasting may not work in virtual machines like MS Virtual PC
2004.
XuluServer
Constructor Summary | |
---|---|
MulticastDiscoveryService()
Constructs a new service reading port and lease time from XuluConfig |
|
MulticastDiscoveryService(int port,
int lease)
Constructs a new service |
Method Summary | |
---|---|
Vector<ComputingResourceContainer> |
getResources()
|
boolean |
isRunning()
|
static void |
main(String[] args)
just for testing..edit as you like |
void |
startService()
Starts the service |
void |
stopService()
Stops the service |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MulticastDiscoveryService()
XuluConfig
public MulticastDiscoveryService(int port, int lease)
port
- port where the multicasting happenslease
- timeintervall (in ms) after whiMethod Detail |
---|
public void startService()
Service
startService
in interface Service
public Vector<ComputingResourceContainer> getResources()
getResources
in interface DiscoveryService
public void stopService()
Service
stopService
in interface Service
public boolean isRunning()
isRunning
in interface Service
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |