|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object kaos.core.service.directory.KAoSAgentDirectoryServiceProxy
public abstract class KAoSAgentDirectoryServiceProxy
Nested Class Summary | |
---|---|
protected static class |
KAoSAgentDirectoryServiceProxy.OperationWaiter
This class is used as a helper class to block Threads invoking the various Directory operations (register, deregister, modify, search). |
Field Summary | |
---|---|
protected java.lang.String |
_directoryName
|
protected static Logger |
_logger
|
protected Locator |
_myLocator
|
protected java.lang.String |
_nickName
|
protected static java.lang.String |
_NICKNAME_ROOT
|
protected Locator |
_remoteDirectoryLocator
|
protected MessageSender |
_sender
|
protected ServiceProperties |
_serviceProps
|
protected java.util.Hashtable |
_waiters
|
static java.lang.String |
USE_COORDINATOR
|
Constructor Summary | |
---|---|
KAoSAgentDirectoryServiceProxy()
|
|
KAoSAgentDirectoryServiceProxy(ServiceProperties serviceProps)
|
Method Summary | |
---|---|
protected abstract MessageTransportService |
acquireMessageTransportService()
|
protected abstract Locator |
acquireRemoteDirectoryLocator()
Return a Locator that will be used to communicate with the Domain Manager. |
void |
addEventListener(DirectoryEventListener listener)
NOT IMPLEMENTED I don't think a DirectoryEventListener will necessarily be serializable See the other method, addRemoteEventListener |
void |
addRemoteEventListener(Locator l)
|
java.lang.String |
analyzeWorkflow(java.lang.String owlsWorkflow)
Modify the given OWL-S workflow based on policies that apply the actions in workflow. |
java.lang.String |
analyzeWorkflow(java.net.URL owlsWorkflow)
Modify the given OWL-S workflow based on policies that apply the actions in workflow. |
java.util.Set |
askQuery(java.lang.String variableName,
java.lang.String multiplyVariablesQuery)
Get values of the selected variable satisfing the KIF query with possibly many variable. |
protected Locator |
bindToMessageTransportService(MessageTransportService mts)
Private methods. |
protected java.lang.String |
callWorkflowMethod(java.lang.String methodName,
java.util.Vector args)
Remote invocation of a KAoSDirectoryService method. |
void |
checkPermission(java.security.Permission perm,
java.lang.Object context)
The method check if the given action is permitted according to the current set of policies |
protected void |
checkRegisterResult(MethodCallResultMsg result,
AgentDescription desc)
|
void |
cleanupVM()
This is a call back from for the Runtime when the VM shutdown is in progress. |
AgentDescription |
createAgentDescription()
Create a default KAoSAgentDescription. |
protected MethodCallRequestMsg |
createMessageToSend(AgentDescription adesc,
java.lang.String requestedOperation,
int parameterValue)
Return an instance of the MethodCallRequestMsg specifying the requested Directory operation and the AgentDescription argument. |
void |
deregister(AgentDescription desc)
Wrap the de-registration request into a TransportMessage to be sent to the Domain Manager to perform the actual de-registration with the following semantics: Remove the AgentDescription from the collection of domain entities registered in the directory. |
boolean |
equals(java.lang.Object obj)
|
java.util.Set |
getActions(java.lang.String forActor)
Get descriptions of the Action classes the specified Actor class or instance can perfom based on its class. |
KAoSAgentDescription |
getAgentDescriptionForAgentID(java.lang.String agentID)
Search the directory containing agent descriptions for KAoSAgentDescription for the given agent ID. |
java.util.List |
getAllAgentsInDirectory()
Get the descriptions of all the agents in the directory. |
java.util.Vector |
getAllAgentsInDomain(java.lang.String domainName)
Get the descriptions of all the agents in the given domain |
java.util.List |
getAllGuardsInDirectory()
Get the guard descriptions of all the guards in the directory. |
java.util.Set |
getClassesOfActors(java.lang.String baseActorClass)
Get names of the Actors classes known to the ontology repository being a subclass of the specified base class. |
java.util.Set |
getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass)
Get names of Actor classes capable to perform a given action, without taking into consideration policy restrictions |
java.util.Set |
getClassesOfGroups(java.lang.String baseGroupClass)
Get names of the Group classes known to the ontology repository being a subclass of the specified base class. |
java.util.Set |
getClassesOfPlaces(java.lang.String basePlaceClass)
Get names of the Places classes known to the ontology repository being a subclass of the specified base class. |
java.util.Set |
getClassesOfTargets(java.lang.String baseTargetClass)
Get names of the targets (Actors or Entities) classes known to the ontology repository being a subclass of the specified base class. |
java.util.List |
getConstructedOntologyStructures()
A method to get ontological definitions of all concepts stored in directory |
DomainDescription |
getDomainDescription(java.lang.String domainName)
Get the description of a domain |
java.util.List |
getDomainDescriptionsForGuard(java.lang.String guardGUID)
Partial implementation of kaos.domain.management.DomainDirectoryService interface implementation - begin |
java.util.Vector |
getDomainNames()
Obtain a List of the names of all registered domains. |
java.util.Vector |
getGuardDescriptionsForEntity(java.lang.String entityID)
|
java.lang.String |
getID()
Return the unique identifier of this observer. |
java.util.Set |
getIndividualActors(java.lang.String baseActorClass)
Get names of the individual Actors known to the ontology repository being an instance of the specified base class. |
java.util.Set |
getIndividualGroups(java.lang.String baseGroupClass)
Get names of the individual Groups known to the ontology repository being an instance of the specified base class. |
java.util.Set |
getIndividualPlaces(java.lang.String basePlaceClass)
Get names of the individual Places known to the ontology repository being an instance of the specified base class. |
java.util.Set |
getIndividualTargets(java.lang.String targetClass)
kaos.ontology.management.KAoSOntologyQueryService interface implementation - begin |
java.util.Set |
getInstancesOf(java.lang.String conceptName)
kaos.ontology.management.OntologyRepositoryService interface implementation - begin |
java.util.Set |
getOntologyDefinitionForConcept(java.lang.String conceptName)
Curently it tries to match the concept name with the local name of the ontology definitions url |
java.util.List |
getPolicies()
|
Msg |
getPolicy(java.lang.String policyId)
kaos.policy.management.PolicyDirectory interface implementation - begin |
java.util.Vector |
getPropertiesApplicableTo(java.lang.String className)
Get properties applicable to the given class |
java.lang.String |
getRangeOnPropertyForClass(java.lang.String className,
java.lang.String propertyName)
Get the name of the class defining the range of the specified property for the given class. |
protected MethodCallResultMsg |
getResult(MethodCallRequestMsg msgOut)
|
protected MethodCallResultMsg |
getResult(MethodCallRequestMsg msgOut,
java.lang.String operationName)
Wrap the MethodCallRequestMsg into a TransportMessage message and send it to the Domain Manager. |
java.util.Vector |
getSchema(java.lang.String dataName)
to retrieve the schema for the given data type. |
ServiceProperties |
getServiceProperties()
javax.agent.service.Service interface implementation - begin |
java.util.Set |
getSubClassesOf(java.lang.String conceptName)
Get set of subclasses of the given class. |
java.util.Vector |
getSubdomains(java.lang.String domainName)
Obtain an Enumeration of the names of subdomains of a particular domain (returns immediate children only) |
java.util.Set |
getSubPropertiesOf(java.lang.String propertyName)
Get set of subproperties of the given property. |
java.util.Set |
getSuperClassesOf(java.lang.String className)
Get names of the superclasses of the given Action class. |
java.util.Set |
getSuperPropertiesOf(java.lang.String propertyName)
Get set of superproperties of the given property. |
java.util.Set |
getUltimateOntologyTypesOfIndividual(java.lang.String individualName)
Finds the ultimate Ontology type of the provided individual |
java.lang.String |
getUniqueValueForProperty(java.lang.String property,
java.lang.String subject)
Get a single value of the variable satisfing the KIF query: (property subject ?val). |
java.util.Set |
getValuesForProperty(java.lang.String property,
java.lang.String subject)
Get values of the variable satisfing the KIF query: (property subject ?val). |
int |
hashCode()
|
boolean |
initialize(java.lang.String domainManagerName)
Initialize variables and Message Transport Service infrastructure for sending/receiving messages. |
void |
instancesSetSynchronizationRequest(java.util.List myCurrentInstancesClassesURL,
java.util.List myCurrentInstancesSetsTimeStamps)
Send a list of the current classes for which instances set are stored in the Guard and associated with them timestamps in the second list. |
boolean |
isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp)
Check with DS if synchronization is needed by providing the timstamp of the last update. |
void |
loadOntology(SerializableOntModelImpl myDAMLModel,
java.lang.Boolean recursiveLoad)
Wrap the load ontology request into a TransportMessage to be sent to the Domain Manager to perform the loading of ontology with the following semantics: Adds ontology included in the provide objects into the ontology repository. |
void |
loadOntology(java.lang.String myURL,
java.lang.Boolean recursiveLoad)
Wrap the load ontology request into a TransportMessage to be sent to the Domain Manager to perform the loading of ontology with the following semantics: Adds ontology included in the provide objects into the ontology repository. |
void |
modify(AgentDescription desc)
Wrap the modify request into a Grid message to be sent to the Domain Manager to perform the actual modify with the following semantics: Replace the AgentDescription in the collection of registered domain entities with the new AgentDescription. |
void |
modifyEntityProperties(java.lang.String entityGUID,
java.util.List properties)
Modify properties of the entity identified by the given entityGUID. |
protected JasBean |
obtainEntityEnv()
Specify transport specific parameters that will be passed to the MessageTransportSystem. |
void |
policiesSynchronizationRequest(java.util.List myCurrentPoliciesIds,
java.util.List myCurrentPoliciesTimeStamps)
Send a list of the current policies ids and associated with them timestamps in the second list. |
protected void |
printDebugString(java.lang.String msg,
int loggerDisplayLevel)
A utility method to print a String. |
void |
receiveMessage(TransportMessage msg)
Receive a TransportMessage message from the MessageReceiver. |
void |
register(AgentDescription desc)
Wrap the registration request into a TransportMessage to be sent to the Domain Manager to perform the actual registration with the following semantics: Add the AgentDescription to the collection of domain entities registered in the directory. |
protected void |
registerForVMShutDown()
Register as the shutdown hook with the runtime system. |
void |
removeEventListener(DirectoryEventListener listener)
NOT IMPLEMENTED I don't think a DirectoryEventListener will necessarily be serializable See the other method, addRemoteEventListener |
void |
removePolicies(java.util.List policies)
|
void |
removePolicy(Msg policy)
|
void |
removeRemoteEventListener(Locator l)
|
protected void |
removeWaiter(java.lang.String id)
|
AgentDescription[] |
search(AgentDescription desc)
Wrap the search request into a TransportMessage message to be sent to the Domain Manager to perform the actual search with the following semantics: Search the collection of AgentDescriptions for all matching descriptions. |
AgentDescription[] |
search(AgentDescription desc,
int maxResults)
Wrap the search request into a TransportMessage message to be sent to the Domain Manager to perform the actual search with the following semantics: Search the collection of AgentDescriptions for all matching descriptions. |
void |
sendDirectoryEvent(DirectoryEvent event)
|
void |
setServiceProperties(ServiceProperties props)
|
void |
subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL,
java.util.List myCurrentSubclassesSetsTimeStamps)
Send a list of the current classes for which subclasses set are stored in the Guard and associated with them timestamps in the second list. |
void |
subpropertiesSetSynchronizationRequest(java.util.List myCurrentSubpropertiesPropertyURL,
java.util.List myCurrentSubpropertiesSetsTimeStamps)
Send a list of the current properties for which subproperties set are stored in the Guard and associated with them timestamps in the second list. |
void |
superclassesSetSynchronizationRequest(java.util.List myCurrentSuperclassesClassesURL,
java.util.List myCurrentSuperclassesSetsTimeStamps)
Send a list of the current classes for which superclasses set are stored in the Guard and associated with them timestamps in the second list. |
void |
superpropertiesSetSynchronizationRequest(java.util.List myCurrentSuperpropertiesPropertyURL,
java.util.List myCurrentSuperpropertiesSetsTimeStamps)
Send a list of the current properties for which superproperties set are stored in the Guard and associated with them timestamps in the second list. |
boolean |
testTrue(java.lang.String statement)
Test if the KIF statemant is true according to the ontologies in the ontology repository. |
void |
update(java.lang.String observableID,
java.lang.String updateType,
java.lang.Object updateCondition,
java.lang.Object update)
Receive an update from the KAoSObservable when the KAoSObservable has a change or event to report. |
void |
updatePolicies(java.util.List addedPolicies,
java.util.List changedPolicies,
java.util.List removedPolicies)
|
protected MethodCallResultMsg |
waitForReply(java.lang.String operationID,
java.lang.String operationName)
This method is called immediately after a Directory operation is requested and a message containing the MethodCallRequestMsg is sent to the DM. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String USE_COORDINATOR
protected static final java.lang.String _NICKNAME_ROOT
protected static Logger _logger
protected java.lang.String _directoryName
protected java.lang.String _nickName
protected MessageSender _sender
protected Locator _myLocator
protected Locator _remoteDirectoryLocator
protected java.util.Hashtable _waiters
protected ServiceProperties _serviceProps
Constructor Detail |
---|
public KAoSAgentDirectoryServiceProxy()
public KAoSAgentDirectoryServiceProxy(ServiceProperties serviceProps)
Method Detail |
---|
public ServiceProperties getServiceProperties()
public void setServiceProperties(ServiceProperties props)
public AgentDescription createAgentDescription()
public void register(AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
desc
- the AgentDescription to add.
AlreadyRegisteredException
- if the AgentDescription is already
registered.
DirectoryFailure
- if the directory service is
not available.public void deregister(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
desc
- the AgentDescription to remove.
NotRegisteredException
- if the AgentDescription is not
registered.
DirectoryFailure
- if the directory service is
not available.public void modify(AgentDescription desc) throws NotRegisteredException, DirectoryFailure
desc
- the new AgentDescription to replace the old one.
NotRegisteredException
- if the AgentDescription is not
registered.
DirectoryFailure
- if the directory service is
not available.public AgentDescription[] search(AgentDescription desc) throws SearchException, DirectoryFailure
desc
- the AgentDescription to use for matching.
SearchException
- if an exception occurs during searching.
DirectoryFailure
- if the directory service is unavailable.public AgentDescription[] search(AgentDescription desc, int maxResults) throws SearchException, DirectoryFailure
desc
- 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.public void modifyEntityProperties(java.lang.String entityGUID, java.util.List properties) throws DirectoryFailure, NotRegisteredException, ModificationException
entityGUID
- String containing the entity GUID.properties
- List of Properties to be modified. Each Property contains the name, value, value description,
modification type (add/remove/set, etc), modification result.
Refer to the Property and ModificationResult interfaces for detailed description.
DirectoryFailure
- if the connection to the DS cannot be established.
NotRegisteredException
- if the entity whose properties are to be modified
has not been registered in the DS.
ModificationException
- if one or more property update failed.public void receiveMessage(TransportMessage msg)
msg
- the TransportMessage containing DomainManager's reply to one of:
register/deregister/modify/search/removeExecEnv requests.public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public void checkPermission(java.security.Permission perm, java.lang.Object context) throws KAoSSecurityException, java.lang.NullPointerException, DirectoryFailure
perm
- Permission to be checked by the Guard in order to allow/disallow
an action.context
- An Object describing the context of the action.
KAoSSecurityException
- if the action is not allowed.
java.lang.NullPointerException
- if the Permission argument is null.
DirectoryFailure
public java.util.List getDomainDescriptionsForGuard(java.lang.String guardGUID)
public java.util.Vector getDomainNames()
public java.util.Vector getAllAgentsInDomain(java.lang.String domainName)
public java.util.List getAllAgentsInDirectory() throws DirectoryFailure
DirectoryFailure
public java.util.List getAllGuardsInDirectory() throws DirectoryFailure
DirectoryFailure
public java.util.Vector getGuardDescriptionsForEntity(java.lang.String entityID)
public DomainDescription getDomainDescription(java.lang.String domainName)
domainName
- the name of the domainpublic java.util.Vector getSubdomains(java.lang.String domainName)
public java.util.Set getInstancesOf(java.lang.String conceptName) throws UnknownConceptException, DirectoryFailure
getInstancesOf
in interface OntologyInterfaces
conceptName
- The name of the concept in the Jena format
UnknownConceptException
DirectoryFailure
public java.util.Set getSubClassesOf(java.lang.String conceptName) throws UnknownConceptException, DirectoryFailure
OntologyInterfaces
getSubClassesOf
in interface OntologyInterfaces
conceptName
- The name of the class in Jena format
UnknownConceptException
DirectoryFailure
public java.util.Set getSuperPropertiesOf(java.lang.String propertyName) throws UnknownConceptException, DirectoryFailure
getSuperPropertiesOf
in interface OntologyInterfaces
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
DirectoryFailure
public java.util.Set getSubPropertiesOf(java.lang.String propertyName) throws UnknownConceptException, DirectoryFailure
getSubPropertiesOf
in interface OntologyInterfaces
propertyName
- The name of the property in Jena format
java.lang.Exception
- if propertyName is unknow for the ontology repository
UnknownConceptException
DirectoryFailure
public java.lang.String getUniqueValueForProperty(java.lang.String property, java.lang.String subject) throws ReasoningException, DirectoryFailure
property
- the name of the property in the Jena formatsubject
- the name of the subject in the Jena format
ReasoningException
- if reasoning failed.
DirectoryFailure
public boolean testTrue(java.lang.String statement) throws QueryFailure, DirectoryFailure
testTrue
in interface OntologyInterfaces
statement
- the statement in KIF to be tested if true
QueryFailure
- if reasoning failed.
DirectoryFailure
public java.util.Set askQuery(java.lang.String variableName, java.lang.String multiplyVariablesQuery) throws DirectoryFailure, QueryFailure
variableName
- the name of the selected variablemultiplyVariablesQuery
- the query
DirectoryFailure
- if the connection to the DS cannot be established
QueryFailure
- if query failed.public java.util.Set getValuesForProperty(java.lang.String property, java.lang.String subject) throws DirectoryFailure, QueryFailure
property
- the name of the propertysubject
- the name of the subject
DirectoryFailure
- if the connection to the DS cannot be established
QueryFailure
- if query failedpublic java.util.Set getUltimateOntologyTypesOfIndividual(java.lang.String individualName) throws DirectoryFailure, UnknownConceptException
individualName
- the name of the individual
individualName
- if concept unknow or any problem with JTP approached
DirectoryFailure
UnknownConceptException
public java.util.Vector getPropertiesApplicableTo(java.lang.String className) throws UnknownConceptException, QueryFailure, DirectoryFailure
getPropertiesApplicableTo
in interface OntologyInterfaces
className
- the name of the class
QueryFailure
- if reasoning failed.
UnknownConceptException
DirectoryFailure
public java.lang.String getRangeOnPropertyForClass(java.lang.String className, java.lang.String propertyName) throws QueryFailure, UnknownConceptException, DirectoryFailure
getRangeOnPropertyForClass
in interface OntologyInterfaces
className
- the name of the classpropertyName
- the name of the property
java.lang.Exception
- if reasoning failed.
QueryFailure
UnknownConceptException
DirectoryFailure
public java.lang.String analyzeWorkflow(java.lang.String owlsWorkflow) throws DirectoryFailure, ReasoningException
owlsWorkflow
- - the OWL-S workflow to analyze/modify (xml text)
java.lang.Exception
DirectoryFailure
ReasoningException
public java.lang.String analyzeWorkflow(java.net.URL owlsWorkflow) throws DirectoryFailure, ReasoningException
owlsWorkflow
- - URL to an existing OWL-S workflow to analyze/modify
java.lang.Exception
DirectoryFailure
ReasoningException
protected java.lang.String callWorkflowMethod(java.lang.String methodName, java.util.Vector args) throws DirectoryFailure, ReasoningException
methodName
- args
-
DirectoryFailure
ReasoningException
public java.util.Set getOntologyDefinitionForConcept(java.lang.String conceptName) throws DirectoryFailure
getOntologyDefinitionForConcept
in interface OntologyInterfaces
conceptName
- The name of the namespace in the Jena format
DirectoryFailure
public java.util.List getConstructedOntologyStructures() throws DirectoryFailure
DirectoryFailure
public java.util.Vector getSchema(java.lang.String dataName) throws DirectoryFailure
getSchema
in interface OntologyInterfaces
dataName
- the name of the data type to be retrieved
DirectoryFailure
public java.util.Set getIndividualTargets(java.lang.String targetClass) throws UnknownConceptException, DirectoryFailure
getIndividualTargets
in interface KAoSOntologyQueryService
targetClass
- The name of the targets (Actor
or Entity) class which the return classes have to be a subclass of
UnknownConceptException
- if baseTargetClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getActions(java.lang.String forActor) throws UnknownConceptException, DirectoryFailure
getActions
in interface KAoSOntologyQueryService
forActor
- The name of the Actor class or instance
UnknownConceptException
- if forActor is unknown by the ontology repository
DirectoryFailure
public java.util.Set getClassesOfActorsCapableOfPerformingActions(java.lang.String actionClass) throws UnknownConceptException, DirectoryFailure
getClassesOfActorsCapableOfPerformingActions
in interface KAoSOntologyQueryService
actionClass
- The name of the Action class
UnknownConceptException
- if actionClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getSuperClassesOf(java.lang.String className) throws UnknownConceptException, DirectoryFailure
className
- The name of the Action class, whose superclasses are requested.
UnknownConceptException
- if className is unknown by the ontology repository.
DirectoryFailure
public java.util.Set getIndividualActors(java.lang.String baseActorClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getIndividualActors
in interface KAoSOntologyQueryService
baseActorClass
- The name of the Actor class which the return elements have to be an instance of
If the name is empty uses Actor as a base class
UnknownConceptException
- if baseActorClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfActors(java.lang.String baseActorClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getClassesOfActors
in interface KAoSOntologyQueryService
baseActorClass
- The name of the Actor class which the return classes have to be a subclass of
If the name is empty uses Actor as a base class
UnknownConceptException
- if baseActorClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getIndividualPlaces(java.lang.String basePlaceClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getIndividualPlaces
in interface KAoSOntologyQueryService
basePlaceClass
- The name of the Place class which the return elements have to be an instance of
If the name is empty uses Place as a base class
UnknownConceptException
- if basePlaceClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfPlaces(java.lang.String basePlaceClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getClassesOfPlaces
in interface KAoSOntologyQueryService
basePlaceClass
- The name of the Place class which the return classes have to be a subclass of
If the name is empty uses Place as a base class
UnknownConceptException
- if basePlaceClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getIndividualGroups(java.lang.String baseGroupClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getIndividualGroups
in interface KAoSOntologyQueryService
baseGroupClass
- The name of the Group class which the return elements have to be an instance of
If the name is empty uses Group as a base class
UnknownConceptException
- if baseGroupClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfGroups(java.lang.String baseGroupClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getClassesOfGroups
in interface KAoSOntologyQueryService
baseGroupClass
- The name of the Group class which the return elements have to be an instance of
If the name is empty uses Group as a base class
UnknownConceptException
- if baseGroupClass is unknow for the ontology repository
DirectoryFailure
public java.util.Set getClassesOfTargets(java.lang.String baseTargetClass) throws UnknownConceptException, DirectoryFailure
KAoSOntologyQueryService
getClassesOfTargets
in interface KAoSOntologyQueryService
baseTargetClass
- The name of the targets (Actor
or Entity) class which the return classes have to be a subclass of
UnknownConceptException
- if baseTargetClass is unknow for the ontology repository
DirectoryFailure
public void loadOntology(SerializableOntModelImpl myDAMLModel, java.lang.Boolean recursiveLoad) throws ReasoningException, java.io.IOException, DirectoryFailure
myDAMLModel
- The object of type com.hp.hpl.jena.daml.DAMLModel (actually SerializableOntModelImpl) containing the added ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology contained in myDAMLModel) should also be recursively loaded.
jtp.InconsistencyException
- when loading of the ontology failed.
ReasoningException
java.io.IOException
DirectoryFailure
public void loadOntology(java.lang.String myURL, java.lang.Boolean recursiveLoad) throws ReasoningException, java.io.IOException, DirectoryFailure
myURL
- The url to the ontologyrecursiveLoad
- Indicates if the imported ontologies (by the ontology depicted by myURL) should also be recursively loaded.
jtp.InconsistencyException
- when loading of the ontology failed.
ReasoningException
java.io.IOException
DirectoryFailure
public Msg getPolicy(java.lang.String policyId) throws java.lang.Exception
java.lang.Exception
public java.util.List getPolicies() throws java.lang.Exception
java.lang.Exception
public void removePolicies(java.util.List policies) throws java.lang.Exception
java.lang.Exception
public void removePolicy(Msg policy) throws java.lang.Exception
java.lang.Exception
public void updatePolicies(java.util.List addedPolicies, java.util.List changedPolicies, java.util.List removedPolicies) throws java.lang.Exception
java.lang.Exception
public void policiesSynchronizationRequest(java.util.List myCurrentPoliciesIds, java.util.List myCurrentPoliciesTimeStamps) throws DirectoryFailure
policiesSynchronizationRequest
in interface GuardSynchronization
myCurrentPoliciesIds
- The List of the current policies ids.myCurrentPoliciesTimeStamps
- The List of the current policies timestamps.
DirectoryFailure
public void instancesSetSynchronizationRequest(java.util.List myCurrentInstancesClassesURL, java.util.List myCurrentInstancesSetsTimeStamps) throws DirectoryFailure
instancesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentInstancesClassesURL
- The List of the current classes for which instances set are stored in the Guard identified by URLs.myCurrentInstancesSetsTimeStamps
- The List of the current intances set timestamps.
DirectoryFailure
public void subclassesSetSynchronizationRequest(java.util.List myCurrentSubclassesClassesURL, java.util.List myCurrentSubclassesSetsTimeStamps) throws DirectoryFailure
subclassesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSubclassesClassesURL
- The List of the current classes for which subclasses set are stored in the Guard identified by URLs.myCurrentSubclassesSetsTimeStamps
- The List of the current subclasses set timestamps.
DirectoryFailure
public void superclassesSetSynchronizationRequest(java.util.List myCurrentSuperclassesClassesURL, java.util.List myCurrentSuperclassesSetsTimeStamps) throws DirectoryFailure
superclassesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSuperclassesClassesURL
- The List of the current classes for which superclasses set are stored in the Guard identified by URLs.myCurrentSuperclassesSetsTimeStamps
- The List of the current superclasses set timestamps.
DirectoryFailure
public void subpropertiesSetSynchronizationRequest(java.util.List myCurrentSubpropertiesPropertyURL, java.util.List myCurrentSubpropertiesSetsTimeStamps) throws DirectoryFailure
subpropertiesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSubpropertiesPropertyURL
- The List of the current properties for which subproperties set are stored in the Guard identified by URLs.myCurrentSubpropertiesSetsTimeStamps
- The List of the current subproperties set timestamps.
DirectoryFailure
public void superpropertiesSetSynchronizationRequest(java.util.List myCurrentSuperpropertiesPropertyURL, java.util.List myCurrentSuperpropertiesSetsTimeStamps) throws DirectoryFailure
superpropertiesSetSynchronizationRequest
in interface GuardSynchronization
myCurrentSuperpropertiesPropertyURL
- The List of the current properties for which superproperties set are stored in the Guard identified by URLs.myCurrentSuperpropertiesSetsTimeStamps
- The List of the current superproperties set timestamps.
DirectoryFailure
public boolean isSynchronizationNeeded(java.lang.Long myLastUpdateTimeStamp) throws DirectoryFailure
isSynchronizationNeeded
in interface GuardSynchronization
myLastUpdateTimeStamp
- The timestamp of the last update
DirectoryFailure
public KAoSAgentDescription getAgentDescriptionForAgentID(java.lang.String agentID) throws SearchException, DirectoryFailure
agentID
- String containing the unique ID of the agent to search for.
SearchException
- if an exception is thrown during the search.
DirectoryFailure
- if the directory cannot be found/is not available.public void addEventListener(DirectoryEventListener listener) throws DirectoryFailure
addEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void removeEventListener(DirectoryEventListener listener) throws DirectoryFailure
removeEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void addRemoteEventListener(Locator l) throws DirectoryFailure
addRemoteEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void removeRemoteEventListener(Locator l) throws DirectoryFailure
removeRemoteEventListener
in interface DirectoryEventNotifier
DirectoryFailure
public void sendDirectoryEvent(DirectoryEvent event) throws DirectoryFailure
DirectoryFailure
public boolean initialize(java.lang.String domainManagerName)
domainManagerName
- the name of the DomainManager this Directory will be a proxy of.public void update(java.lang.String observableID, java.lang.String updateType, java.lang.Object updateCondition, java.lang.Object update) throws NotificationException
update
in interface KAoSObserver
observableID
- String identifying the KAoSObservable sending the update.updateType
- String indicating type of update.update
- Object containing the update.
NotificationException
public java.lang.String getID()
getID
in interface KAoSObserver
public void cleanupVM()
protected abstract Locator acquireRemoteDirectoryLocator()
protected abstract MessageTransportService acquireMessageTransportService()
protected JasBean obtainEntityEnv()
protected void registerForVMShutDown()
protected Locator bindToMessageTransportService(MessageTransportService mts) throws java.lang.Exception
java.lang.Exception
protected MethodCallRequestMsg createMessageToSend(AgentDescription adesc, java.lang.String requestedOperation, int parameterValue)
protected MethodCallResultMsg getResult(MethodCallRequestMsg msgOut) throws DirectoryFailure
DirectoryFailure
protected MethodCallResultMsg getResult(MethodCallRequestMsg msgOut, java.lang.String operationName) throws DirectoryFailure
DirectoryFailure
protected MethodCallResultMsg waitForReply(java.lang.String operationID, java.lang.String operationName) throws DirectoryFailure
DirectoryFailure
protected void checkRegisterResult(MethodCallResultMsg result, AgentDescription desc) throws AlreadyRegisteredException, DirectoryFailure
AlreadyRegisteredException
DirectoryFailure
protected void removeWaiter(java.lang.String id)
protected void printDebugString(java.lang.String msg, int loggerDisplayLevel)
msg
- The String to be printed.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |