|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IServiceConfigAPI
A collection of methods to manipulate Service related configurations in a Domain. The basic entities are:
Service types and Service configurations are named uniquely across a domain.
A deploy service configuration is not an entity that can be manipulated directly, it just establishes the connection between the service configuration and the container. The same configuration can be deployed in multiple containers, e.g. to allow scaling-out of popular services.
Service types can not be created by the API, they can only be imported from artifacts created by the development tools.
Method Summary | |
---|---|
IServiceConfig |
createServiceConfig(java.lang.String name,
java.lang.String serviceTypeName)
Create a new XQ Service configuration. |
void |
deleteServiceConfig(java.lang.String name)
Delete the service named configuration |
void |
deleteServiceType(java.lang.String serviceTypeName)
Delete the named service type. |
java.lang.String |
exportService(java.lang.String name)
Export the specified Service configuration. |
java.lang.String |
exportServiceType(java.lang.String name)
Export the specified Service type. |
IServiceConfig |
getServiceConfig(java.lang.String name)
Retrieve the configuration details for a given XQ service configuration. |
IServiceTypeConfig |
getServiceType(java.lang.String name)
Given a service type name, retrieve an object representing its configuration |
IServiceConfig |
importService(java.lang.String configurationContent,
boolean overwrite)
Import the specified XQ service configuration into the DS |
void |
importServiceProperties(java.lang.String serviceName,
java.lang.String serviceProperties)
Import service properties into the DS. |
IServiceTypeConfig |
importServiceType(java.lang.String serviceTypeContent,
boolean overwrite)
import a new service type from an XML source. |
java.lang.String[] |
listContainersWithService(java.lang.String serviceName)
Find all (XQ) containers with a particular service configuration deployed |
java.lang.String[] |
listContainersWithServiceType(java.lang.String serviceTypeName)
Find all (XQ) containers with a service configuration deployed of the named service type. |
java.lang.String[] |
listServiceConfigOfType(java.lang.String serviceTypeName)
Find all the service configurations in the domain of the given service type, and return an array of their names. |
java.lang.String[] |
listServiceConfigs()
return the names of all configured services. |
java.lang.String[] |
listServiceTypes()
list all service types defined in the given domain |
void |
saveService(IServiceConfig service)
Persist changes made to the service into the DS. |
void |
saveServiceType(IServiceTypeConfig service)
Persist changes made to the service type into the DS. |
Method Detail |
---|
IServiceConfig getServiceConfig(java.lang.String name)
name
- -
the service configuration's name
IServiceConfig createServiceConfig(java.lang.String name, java.lang.String serviceTypeName)
name
- -
the new service confgiuration's nameserviceTypeName
- -
the service type for this service configuration.
void deleteServiceConfig(java.lang.String name)
name
- -
the configuration name to be deleted. No validation is performed - if instances of this service configuration are deployed
in containers, bad things will happen.IServiceConfig importService(java.lang.String configurationContent, boolean overwrite)
configurationContent
- -
the XML representation of an XQ service configuration. use utility classes to retrieve for external storage.java.lang.String exportService(java.lang.String name)
name
- -
the service configuration's name to be exported.
void saveService(IServiceConfig service)
service
- the service to be savedjava.lang.String[] listServiceConfigs()
IServiceTypeConfig getServiceType(java.lang.String name)
name
- -
the service type name
void deleteServiceType(java.lang.String serviceTypeName)
serviceTypeName
- IServiceTypeConfig importServiceType(java.lang.String serviceTypeContent, boolean overwrite)
serviceTypeContent
- -
a string containing the DS XML representation of a service typeoverwrite
- -
true to overwrite existing configuration with the same service type name
void importServiceProperties(java.lang.String serviceName, java.lang.String serviceProperties)
serviceName
- -
the service with which the properties are associated withserviceProperties
- -
the content of the service's properties filejava.lang.String exportServiceType(java.lang.String name)
name
- -
the service type's name to be exported.
void saveServiceType(IServiceTypeConfig service)
service
- java.lang.String[] listServiceTypes()
java.lang.String[] listServiceConfigOfType(java.lang.String serviceTypeName)
serviceTypeName
- -
the desired service type name.
java.lang.String[] listContainersWithService(java.lang.String serviceName)
serviceName
- -
the service configuration name
java.lang.String[] listContainersWithServiceType(java.lang.String serviceTypeName)
serviceTypeName
- -
the service type name
|
Sonic ESB API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |