|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectappl.parallel.services.HostnameDiscoveryService
public class HostnameDiscoveryService
Very simple Discovery Service that simply looks up hosts from Property
DiscoveryServices.hostname.hosts
of the XuluConfig
Refreshes the hostlist on every getResources()
, if
DiscoveryServices.hostname.refresh
is set to 1, it gets the ips from Property
DiscoveryService.hostname.hosts
in XuluConfig
Constructor Summary | |
---|---|
HostnameDiscoveryService()
|
Method Summary | |
---|---|
Vector<ComputingResourceContainer> |
getResources()
gets resources, but pings them first to see if they are alive. |
Vector<StarterContainer> |
getStarterContainers()
|
boolean |
isRunning()
|
void |
refresh()
tries to (re-)discover every resource in Property HostnameDiscoveryService.hosts
of XuluConfig . |
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 HostnameDiscoveryService()
Method Detail |
---|
public boolean isRunning()
isRunning
in interface Service
Service.isRunning()
public void startService()
Service
startService
in interface Service
Service.startService()
public void stopService()
stopService
in interface Service
public void refresh()
HostnameDiscoveryService.hosts
of XuluConfig
. After the time in ms specified in DiscoveryServices.timeout
public Vector<ComputingResourceContainer> getResources()
getResources
in interface DiscoveryService
DiscoveryService.getResources()
public Vector<StarterContainer> getStarterContainers()
XuluServerStarter
s
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |