|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnenok.Services
public class Services
This utility class deals with Nenok services. It provides static methods to start, localize & terminate
Nenok Processor
s. Furthermore, localization of Registry
services is an important task of
this class, which is implemented as multicast localization. To assert best possible lookup times a static
JINI LookupCache is used.
Constructor Summary | |
---|---|
Services()
|
Method Summary | |
---|---|
static boolean |
destroyAllProcessors()
Destroy all processors that were started from this class. |
static boolean |
destroyProcessor(Processor proc)
Destroys a given processor. |
static boolean |
destroyProcessor(Uuid pid)
Destroys a given processor. |
static Processor |
findProcessor(Uuid pid,
String... urls)
Finds the processor with the given ID via unicast or multicast. |
static Registry |
findRegistry(String... urls)
Finds an arbitrary registry service via unicast or multicast. |
static Processor |
startProcessor(String... urls)
Starts a new remote processor instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Services()
Method Detail |
---|
public static Registry findRegistry(String... urls) throws MalformedURLException
urls
- URL of the lookup service for unicast localization.
null
, if localization failed.
MalformedURLException
- One of the argument URLs is not valid.public static Processor findProcessor(Uuid pid, String... urls) throws MalformedURLException
pid
- The processor identifier.urls
- URL of the lookup service for unicast localization.
null
, if locatozation failed.
MalformedURLException
- One of the argument URLs is not valid.public static Processor startProcessor(String... urls) throws UnknownHostException, MalformedURLException
urls
- URL of the lookup service for unicast localization.
UnknownHostException
- Exception thrown when the machine's host name cannot be localized.
MalformedURLException
- One of the argument URLs is not valid.public static boolean destroyProcessor(Uuid pid)
pid
- The identifier of the processor to destroy.
true
, if the processor has been destroyed successfully.public static boolean destroyProcessor(Processor proc)
proc
- The processor to destroy.
true
, if the processor has been destroyed successfully.public static boolean destroyAllProcessors()
true
, if all processors have been destroyed successfully.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |