|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Registry
The interface of the NENOK knowledgebase registry service. It extends the Remote
interface
such that its objects are available for remote calls. Note, that all methods within this class must
throw a RemoteException
by the RMI standard.
From this interface, the knowledgebase service proxy is generated automatically. It is a so-called
dumb proxy - this means that no computation on client side is performed at all. Method calls are
transmitted to the server.
Method Summary | |
---|---|
boolean |
add(String knowledgebase,
Locator locator)
Adds a locator to the knowledgebase with the given name. |
boolean |
addAll(String knowledgebase,
Collection<Locator> locators)
Adds a collection of locators to the knowledgebasewith the given name. |
boolean |
addAll(String knowledgebase,
Locator[] locators)
Adds an array of locators to the knowledgebasewith the given name. |
boolean |
contains(String knowledgebase,
Locator locator)
Does the knowledgebase contain the given locator? |
boolean |
createKnowledgebase(String name)
Create a new knowledgebase with the given name. |
boolean |
deleteKnowledgebase(String name)
Deletes the knowledgebase with the given name. |
boolean |
exists(String knowledgebase)
Does a knowledgebase with this name exist? |
String |
getIP()
|
Knowledgebase |
getKnowledgebase(String name)
Looks for a knowledgebase with the given name. |
String[] |
getKnowledgebases()
|
boolean |
remove(String knowledgebase,
Locator locator)
Removes a locator from the knowledgebase with the given name. |
void |
reset()
Resets the knowledgebase registry. |
Method Detail |
---|
void reset() throws RemoteException
RemoteException
- Remote methods all throw remote exceptions.boolean createKnowledgebase(String name) throws RemoteException
name
- The name of the new knowledgebase.
false
if a knowledgebase with this name exists already.
RemoteException
- Remote methods all throw remote exceptions.boolean deleteKnowledgebase(String name) throws RemoteException
name
- The name of the knowledgebase to delete.
true
if a knowledgebase has been deleted.
RemoteException
- Remote methods all throw remote exceptions.Knowledgebase getKnowledgebase(String name) throws RemoteException
name
- The name of the knowledgebase to find.
null
.
RemoteException
- Remote methods all throw remote exceptions.String[] getKnowledgebases() throws RemoteException
RemoteException
- Remote methods all throw remote exceptions.boolean add(String knowledgebase, Locator locator) throws RemoteException
knowledgebase
- The name of the knowledgebase.locator
- The locator to be added to the knowledgebase.
false
if a knowledgebase with the given name does
not exist, true
, if the element has been added successfully
RemoteException
- Remote methods all throw remote exceptions.boolean addAll(String knowledgebase, Collection<Locator> locators) throws RemoteException
knowledgebase
- The name of the knowledgebase.locators
- The collection of locators to add.
false
if a knowledgebase with the given name does
not exist, true
, if the knowledgebase changed as a result of the call.
RemoteException
- Remote methods all throw remote exceptions.boolean addAll(String knowledgebase, Locator[] locators) throws RemoteException
knowledgebase
- The name of the knowledgebase.locators
- The array of locators to add.
false
if a knowledgebase with the given name does
not exist, true
, if the knowledgebase changed as a result of the call.
RemoteException
- Remote methods all throw remote exceptions.boolean remove(String knowledgebase, Locator locator) throws RemoteException
knowledgebase
- The name of the knowledgebase.locator
- The locator to remove.
true
, if the locator has been removed successfully.
RemoteException
- Remote methods all throw remote exceptions.boolean exists(String knowledgebase) throws RemoteException
knowledgebase
- The name of the knowledgebase.
true
, if a corresponding knowledgebase exist.
RemoteException
- Remote methods all throw remote exceptions.boolean contains(String knowledgebase, Locator locator) throws RemoteException
knowledgebase
- The name of the knowledgebase.locator
- The locator to find.
true
, if the knowledgebase contains the given locator.
RemoteException
- Remote methods all throw remote exceptions.String getIP() throws RemoteException
RemoteException
- Remote methods all throw remote exceptions.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |