|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
kaos.core.service.directory.RMIDomainDirectoryServiceImpl
public class RMIDomainDirectoryServiceImpl
$Revision: 1.1.1.1 $
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
RMIDomainDirectoryServiceImpl(RMIDomainDirectoryService rmiDirectory,
java.lang.String rmiBindingName)
|
|
| Method Summary | |
|---|---|
void |
addPolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to be added to the collection of policies of the entity associated with that policy. |
void |
addPolicy(Msg policy)
Add policy to the collection of policies of the entity associated with that policy. |
void |
changePolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to replace its current definition in the collection of policies of the entity associated with that policy. |
void |
changePolicy(Msg policy)
Change policy of the entity associated with that policy. |
void |
deregister(AgentDescription desc)
Remove the AgentDescription from the collection of domain entities registered in the directory. |
java.util.Map |
getDomainStructure()
Obtain a Map containing the structure of the domain. |
java.util.Vector |
getPolicies()
Obtain an Vector over all policies. |
java.util.Map |
getPoliciesByEntities()
Obtain a Map containing key-value pairs of entity ids to their policies. |
java.util.Vector |
getPoliciesForEntity(java.lang.String id)
Obtain an Vector over all policies associated with an entity whose id is specified. |
ServiceProperties |
getServiceProperties()
Obtain the properties of the service. |
void |
modify(AgentDescription desc)
Replace the AgentDescription in the collection of registered domain entities with the new AgentDescription. |
void |
register(AgentDescription desc)
Add the AgentDescription to the collection of domain entities registered in the directory. |
void |
removePolicies(java.util.Vector policies)
Each element of the Vector is a definition of a policy to be removed from the collection of policies of the entity associated with that policy. |
void |
removePolicy(Msg policy)
Remove policy from the collection of policies of the entity associated with that policy. |
AgentDescription[] |
search(AgentDescription desc)
Search the collection of AgentDescriptions for all matching descriptions. |
AgentDescription[] |
search(AgentDescription desc,
int maxResults)
Search the collection of AgentDescriptions for all matching descriptions. |
void |
setServiceProperties(ServiceProperties props)
Set the properties of the service. |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
|---|
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
|---|
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
|---|
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public RMIDomainDirectoryServiceImpl(RMIDomainDirectoryService rmiDirectory,
java.lang.String rmiBindingName)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public ServiceProperties getServiceProperties()
throws java.rmi.RemoteException,
ServiceException,
ServiceFailure
java.rmi.RemoteException
ServiceException
ServiceFailure
public void setServiceProperties(ServiceProperties props)
throws java.rmi.RemoteException,
ServiceException,
ServiceFailure
props - containing a set of the properties of the service.
java.rmi.RemoteException
ServiceException
ServiceFailure
public void deregister(AgentDescription desc)
throws java.rmi.RemoteException,
NotRegisteredException,
DirectoryFailure
deregister in interface RMIDomainDirectoryServicedesc - the AgentDescription to remove.
NotRegisteredException - if the AgentDescription is not
registered.
DirectoryFailure - if the directory service is
not available.
java.rmi.RemoteException - if communication-related exception occurs.
public void modify(AgentDescription desc)
throws java.rmi.RemoteException,
NotRegisteredException,
DirectoryFailure
modify in interface RMIDomainDirectoryServicedesc - the new AgentDescription to replace the old one.
NotRegisteredException - if the AgentDescription is not
registered.
DirectoryFailure - if the directory service is
not available.
java.rmi.RemoteException - if communication-related exception occurs.
public void register(AgentDescription desc)
throws java.rmi.RemoteException,
AlreadyRegisteredException,
DirectoryFailure
register in interface RMIDomainDirectoryServicedesc - the AgentDescription to add.
AlreadyRegisteredException - if the AgentDescription is already
registered.
DirectoryFailure - if the directory service is
not available.
java.rmi.RemoteException - if communication-related exception occurs
public AgentDescription[] search(AgentDescription desc)
throws java.rmi.RemoteException,
SearchException,
DirectoryFailure
search in interface RMIDomainDirectoryServicedesc - the AgentDescription to use for matching.
SearchException - if an exception occurs during searching.
DirectoryFailure - if the directory service is unavailable.
java.rmi.RemoteException - if communication-related exception occurs.
public AgentDescription[] search(AgentDescription desc,
int maxResults)
throws java.rmi.RemoteException,
SearchException,
DirectoryFailure
search in interface RMIDomainDirectoryServicedesc - the AgentDescription to use for matching.maxResults - the limit of returned results.
SearchException - if an exception occurs during searching.
DirectoryFailure - if the directory service is
not available.
java.rmi.RemoteException - if communication-related exception occurs.
public void addPolicy(Msg policy)
throws java.rmi.RemoteException
addPolicy in interface RMIDomainDirectoryServicepolicy - The Msg containing policy definition for a given entity.
java.rmi.RemoteException
public void addPolicies(java.util.Vector policies)
throws java.rmi.RemoteException
addPolicies in interface RMIDomainDirectoryServicepolicies - The Vector of policies to be added to policies of their corresponding entities.
java.rmi.RemoteException
public void removePolicy(Msg policy)
throws java.rmi.RemoteException
removePolicy in interface RMIDomainDirectoryServicepolicy - The Msg containing policy definition to be removed.
java.rmi.RemoteException
public void removePolicies(java.util.Vector policies)
throws java.rmi.RemoteException
removePolicies in interface RMIDomainDirectoryServicepolicies - The Vector of policies to be removed from policies of their corresponding entities.
java.rmi.RemoteException
public void changePolicy(Msg policy)
throws java.rmi.RemoteException
changePolicy in interface RMIDomainDirectoryServicepolicy - The Msg containing policy definition to be changed for a given entity.
java.rmi.RemoteException
public void changePolicies(java.util.Vector policies)
throws java.rmi.RemoteException
changePolicies in interface RMIDomainDirectoryServicepolicies - The Vector of policies to replace their current definitions.
java.rmi.RemoteException
public java.util.Vector getPolicies()
throws java.rmi.RemoteException
getPolicies in interface RMIDomainDirectoryServicejava.rmi.RemoteException
public java.util.Map getPoliciesByEntities()
throws java.rmi.RemoteException
getPoliciesByEntities in interface RMIDomainDirectoryServicejava.rmi.RemoteException
public java.util.Vector getPoliciesForEntity(java.lang.String id)
throws java.rmi.RemoteException
getPoliciesForEntity in interface RMIDomainDirectoryServiceid - The String containing the id of entity whose policies are being requested.
java.rmi.RemoteException
public java.util.Map getDomainStructure()
throws java.rmi.RemoteException
getDomainStructure in interface RMIDomainDirectoryServicejava.rmi.RemoteException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||