|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jason.core.ServicesManager
Created Wed Mar 27 10:46:33 2002
This is a toolkit for parsing and managing services. This services are added by the domain or by the user.
Domain
,
Service
,
ServiceContainer
,
ServicePropertyManager
Field Summary | |
static int |
SERVICE_HOST_SKILL_CRITERIA
Criteria for getting a set of service for host management |
static int |
SERVICE_NO_SKILL_CRITERIA
No criteria for a skill evaluation |
static int |
SERVICE_REQUEST_SKILL_CRITERIA
Criteria for getting a set of service for inner request management |
Method Summary | |
void |
addService(java.io.File location)
|
ServiceContainer |
addService(java.lang.String location)
This is called by the domain for adding one service in an xml document |
void |
addServiceContainer(ServiceContainer sc)
Add a service container. |
void |
addServices(java.lang.String location)
Deprecated. |
ServiceContainer |
buildServiceContainerFromFile(java.lang.String location)
This is a ServiceContainer builder for a file location |
Domain |
getDomain()
|
MessageHandler |
getMessageHandler()
|
ServiceContainerDataModel |
getModel()
|
java.lang.Object |
getPrivateObject()
|
Service[] |
getServiceForType(ServiceType type)
|
Service[] |
getServiceForType(ServiceType type,
int criteria)
This method will sort the services available for a type by degree of performance from the best performant service to the worst. |
Service[] |
getServices()
|
boolean |
isVerbose()
|
void |
removeServiceContainer(ServiceContainer sc)
Remove the service container. |
void |
setModel(ServiceContainerDataModel model)
Set a data model for ServiceContainer |
void |
setPropertyForServiceLocation(java.lang.String location,
java.lang.String property,
java.lang.String value)
Overrided a property from an existing service |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int SERVICE_NO_SKILL_CRITERIA
public static final int SERVICE_HOST_SKILL_CRITERIA
public static final int SERVICE_REQUEST_SKILL_CRITERIA
Method Detail |
public boolean isVerbose()
public MessageHandler getMessageHandler()
public Domain getDomain()
public java.lang.Object getPrivateObject()
public ServiceContainer addService(java.lang.String location) throws JasonException
location
- a service xml file for the service.dtd
JasonException
public ServiceContainer buildServiceContainerFromFile(java.lang.String location) throws JasonException
ServiceContainer
builder for a file location
JasonException
public void addService(java.io.File location) throws JasonException
JasonException
public void addServices(java.lang.String location) throws JasonException
location
- a services xml file for the services.dtd
JasonException
public void removeServiceContainer(ServiceContainer sc)
public void addServiceContainer(ServiceContainer sc)
public void setPropertyForServiceLocation(java.lang.String location, java.lang.String property, java.lang.String value) throws JasonException
location
- an xml file service locationproperty
- a property namevalue
- a property value
JasonException
- for invalid property overridingpublic Service[] getServices()
public Service[] getServiceForType(ServiceType type)
public Service[] getServiceForType(ServiceType type, int criteria)
type
- ServiceType to foundcriteria
- use SERVICE_HOST_SKILL_CRITERIA for a service working with clients (like HTTP)
or SERVICE_REQUEST_SKILL_CRITERIA for a service working with another services
public void setModel(ServiceContainerDataModel model)
ServiceContainer
public ServiceContainerDataModel getModel()
ServiceContainer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |