|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjadex.commons.service.BasicService
jadex.standalone.service.DirectoryFacilitatorService
public class DirectoryFacilitatorService
Directory facilitator implementation for standalone platform.
| Field Summary | |
|---|---|
protected IClockService |
clockservice
The cached clock service. |
protected IComponentManagementService |
cms
The cached component management service. |
protected IndexMap |
components
The registered components. |
protected IServiceProvider |
provider
The platform. |
| Fields inherited from class jadex.commons.service.BasicService |
|---|
idcnt, properties, shutdowned, sid, started, startfutures |
| Fields inherited from interface jadex.commons.service.IService |
|---|
EMPTY_SERVICES |
| Constructor Summary | |
|---|---|
DirectoryFacilitatorService(IServiceProvider provider)
Create a standalone df. |
|
DirectoryFacilitatorService(IServiceProvider provider,
Map properties)
Create a standalone df. |
|
| Method Summary | |
|---|---|
IDFComponentDescription |
createDFComponentDescription(IComponentIdentifier component,
IDFServiceDescription service)
Create a df component description. |
IDFComponentDescription |
createDFComponentDescription(IComponentIdentifier component,
IDFServiceDescription[] services,
String[] languages,
String[] ontologies,
String[] protocols,
Date leasetime)
Create a new df component description. |
IDFServiceDescription |
createDFServiceDescription(String name,
String type,
String ownership)
Create a df service description. |
IDFServiceDescription |
createDFServiceDescription(String name,
String type,
String ownership,
String[] languages,
String[] ontologies,
String[] protocols,
IProperty[] properties)
Create a df service description. |
ISearchConstraints |
createSearchConstraints(int maxresults,
int maxdepth)
Create a search constraints object. |
IFuture |
deregister(IDFComponentDescription cdesc)
Deregister a component description. |
protected boolean |
includes(Object[] a,
Object[] b)
Test if one array of objects is included in the other (without considering the order). |
protected boolean |
match(IDFComponentDescription desc,
IDFComponentDescription template)
Test if a component description matches a given template. |
protected boolean |
match(IDFServiceDescription desc,
IDFServiceDescription template)
Test if a service description matches a given template. |
IFuture |
modify(IDFComponentDescription cdesc)
Modify a component description. |
IFuture |
register(IDFComponentDescription cdesc)
Register a component description. |
IFuture |
search(IDFComponentDescription adesc,
ISearchConstraints con)
Search for components matching the given description. |
IFuture |
search(IDFComponentDescription adesc,
ISearchConstraints con,
boolean remote)
Search for components matching the given description. |
IFuture |
startService()
Start the service. |
| Methods inherited from class jadex.commons.service.BasicService |
|---|
createServiceIdentifier, generateServiceName, getPropertyMap, getServiceIdentifier, isValid, setPropertyMap, shutdownService, signalStarted |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface jadex.commons.service.IService |
|---|
getPropertyMap, getServiceIdentifier, signalStarted |
| Field Detail |
|---|
protected IServiceProvider provider
protected IComponentManagementService cms
protected IClockService clockservice
protected IndexMap components
| Constructor Detail |
|---|
public DirectoryFacilitatorService(IServiceProvider provider)
public DirectoryFacilitatorService(IServiceProvider provider,
Map properties)
| Method Detail |
|---|
public IFuture register(IDFComponentDescription cdesc)
register in interface IDFRuntimeException - when the component description is already registered.public IFuture deregister(IDFComponentDescription cdesc)
deregister in interface IDFRuntimeException - when the component is not registered.public IFuture modify(IDFComponentDescription cdesc)
modify in interface IDFRuntimeException - when the component is not registered.
public IFuture search(IDFComponentDescription adesc,
ISearchConstraints con)
search in interface IDF
public IFuture search(IDFComponentDescription adesc,
ISearchConstraints con,
boolean remote)
search in interface IDF
public IDFServiceDescription createDFServiceDescription(String name,
String type,
String ownership)
createDFServiceDescription in interface IDFname - The name.type - The type.ownership - The ownership.
public IDFServiceDescription createDFServiceDescription(String name,
String type,
String ownership,
String[] languages,
String[] ontologies,
String[] protocols,
IProperty[] properties)
createDFServiceDescription in interface IDFname - The name.type - The type.ownership - The ownership.languages - The languages.ontologies - The ontologies.protocols - The protocols.properties - The properties.
public IDFComponentDescription createDFComponentDescription(IComponentIdentifier component,
IDFServiceDescription service)
createDFComponentDescription in interface IDFcomponent - The component.service - The service.
public IDFComponentDescription createDFComponentDescription(IComponentIdentifier component,
IDFServiceDescription[] services,
String[] languages,
String[] ontologies,
String[] protocols,
Date leasetime)
createDFComponentDescription in interface IDFcomponent - The component id.services - The services.languages - The languages.ontologies - The ontologies.protocols - The protocols.
public ISearchConstraints createSearchConstraints(int maxresults,
int maxdepth)
createSearchConstraints in interface IDFmaxresults - The maximum number of results.maxdepth - The maximal search depth.
public IFuture startService()
startService in interface IInternalServicestartService in class BasicService
protected boolean match(IDFComponentDescription desc,
IDFComponentDescription template)
protected boolean match(IDFServiceDescription desc,
IDFServiceDescription template)
protected boolean includes(Object[] a,
Object[] b)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||