|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.objectweb.proactive.core.jini.ServiceLocatorHelper
The ServiceLocatorHelper
is a utility class, that takes
care of creating or discovering the
Lookup Service when using JINI.
Field Summary | |
protected boolean |
locatorChecked
|
protected static org.apache.log4j.Logger |
logger
|
protected static net.jini.core.discovery.LookupLocator |
lookup
|
protected static int |
MAX_RETRY
|
protected static long |
MAX_WAIT
|
protected static boolean |
multicastLocator
|
protected static net.jini.core.lookup.ServiceRegistrar |
registrar
|
protected boolean |
shouldCreateServiceLocator
settings of the service locator |
Constructor Summary | |
ServiceLocatorHelper()
|
Method Summary | |
protected static void |
delDirectory(java.io.File dir)
Delete recursively all files and directory |
void |
discarded(net.jini.discovery.DiscoveryEvent evt)
for multicast discover |
void |
discovered(net.jini.discovery.DiscoveryEvent evt)
for multicast discover |
void |
initializeServiceLocator()
Initialise the service locator for this host |
void |
setMulticastLocator(boolean v)
true if you want a multicast service Locator false if you want a unicast service Locator |
void |
setShouldCreateServiceLocator(boolean v)
|
boolean |
shouldCreateServiceLocator()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static org.apache.log4j.Logger logger
protected static int MAX_RETRY
protected static long MAX_WAIT
protected static net.jini.core.discovery.LookupLocator lookup
protected static net.jini.core.lookup.ServiceRegistrar registrar
protected boolean shouldCreateServiceLocator
protected boolean locatorChecked
protected static boolean multicastLocator
Constructor Detail |
public ServiceLocatorHelper()
Method Detail |
public boolean shouldCreateServiceLocator()
public void setShouldCreateServiceLocator(boolean v)
public void setMulticastLocator(boolean v)
public void initializeServiceLocator()
public void discovered(net.jini.discovery.DiscoveryEvent evt)
discovered
in interface net.jini.discovery.DiscoveryListener
public void discarded(net.jini.discovery.DiscoveryEvent evt)
discarded
in interface net.jini.discovery.DiscoveryListener
protected static void delDirectory(java.io.File dir)
dir
- The directory to clean
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |