|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ServiceRegistry
A ServiceRegistry
implementation provides clients with the ability
to query the metadata and state of a service, to deploy and undeploy services, and
to toggle the state of a service from RUNNING to STOPPED.
Field Summary | |
---|---|
static java.lang.String |
DEFAULT_CATEGORY_ID
|
static java.lang.String |
SERVICE_ID
|
Method Summary | |
---|---|
void |
clearCache()
Clears any caching of services. |
ServiceConfiguration |
createAndDeploy(Component aComponent,
java.lang.String aServiceId,
int aMajorVersion,
int aMinorVersion,
java.lang.String aDescriptor,
java.util.Map aConfigValuesAsStrings)
Creates and deploys a new service, leaving it in a STOPPED state. |
ServiceConfiguration |
createAndDeploy(Component aComponent,
java.lang.String aCategoryId,
java.lang.String aServiceId,
int aMajorVersion,
int aMinorVersion,
java.lang.String aType,
java.lang.String aDescriptor,
java.util.Map aConfigValuesAsStrings)
Creates and deploys a new service configuration, leaving it in a STOPPED state. |
ServiceConfiguration |
createAndDeploy(CreateServiceConfigurationInfo aInfo,
java.util.Map aConfigValuesAsStrings)
Creates and deploys a new service configuration, leaving it in a STOPPED state. |
ServiceConfiguration |
createAndDeploy(CreateServiceConfigurationInfo aInfo,
java.util.Map aConfigValuesAsStrings,
boolean aOverrideEndpointCreation)
Creates and deploys a new service configuration, leaving it in a STOPPED state. |
ServiceCategory |
createCategory(CreateServiceCategoryInfo aInfo)
Creates a service category with the specified category information. |
ServiceConfiguration |
createConfiguration(CreateServiceConfigurationInfo aInfo)
Creates a service configuration with the specified configuration information values. |
Service |
createService(CreateServiceInfo aInfo)
Creates a new Service object
with the values specified in the CreateServiceInfo object. |
ServiceConfiguration |
deploy(ServiceConfiguration aConfig)
Transitions an Inactive service configuration into an Active, but STOPPED state. |
void |
forceRemovalOfConfiguration(ServiceConfiguration aConfig)
Forces the removal of the specified service configuration. |
ServiceConfiguration |
forceUndeploy(ServiceConfiguration aServiceConfig)
Forces the undeploy of a service (ignoring exceptions for callback methods), transitioning it to an Inactive state. |
java.util.Map |
getClientLibAsMap(java.lang.String aServiceId,
int aMajorVersion,
int aMinorVersion)
This method returns a java.util.Map of classes and resources needed by clients to interact with
this service. |
ServiceConfiguration |
getCompatibleServiceConfiguration(java.lang.String aServiceName,
int aMajorVersion,
int aMinorVersion)
Retrieves a service with the specified service identifier that is compatible with the specified version. |
ServiceConfiguration |
getHeadActiveConfiguration(java.lang.String aServiceName)
Retrieves a service with the specified service identifier. |
ServiceConfiguration |
getHeadServiceConfiguration(java.lang.String aServiceName)
Deprecated. see getHeadActiveConfiguration |
Service |
getService(java.lang.String aServiceId)
Retrieves the specified service. |
java.util.List |
getServiceCategories()
Retrieves all of the service categories in the container. |
java.util.List |
getServiceCategories(com.adobe.idp.dsc.filter.PagingFilter aFilter)
Retrieves all the service configurations within the container with the specified paging criteria. |
ServiceCategory |
getServiceCategory(java.lang.String aId)
Retrieves the specified service category. |
ServiceConfiguration |
getServiceConfiguration(java.lang.String aServiceName,
int aMajorVersion,
int aMinorVersion)
Retrieves a single service configuration with the specified service identifier and version information. |
java.util.List |
getServiceConfigurations()
Retrieves a list of all the services within the container. |
java.util.List |
getServiceConfigurations(Component aComponent)
Retrieves a list of all the service configurations within the container that are deployed against the specified component. |
com.adobe.idp.dsc.filter.FilterResult |
getServiceConfigurations(com.adobe.idp.dsc.filter.PagingFilter aFilter)
Retrieves a list of all the service configurations, within the container, having the specified paging criteria. |
java.util.List |
getServiceConfigurations(Service aService)
Retrieves a list of all the service configurations within the container that are created for the specified service. |
java.util.List |
getServiceConfigurationsForSpecificationId(java.lang.String aSpecificationId)
Retrieves a list of all the service configurations within the container that implement the specification identifier. |
java.util.List |
getServices()
Retrieves all the services. |
java.util.List |
getServices(ServiceCategory aCategory)
Retrieves the services belonging to the specified category. |
ServiceConfiguration |
lock(ServiceConfiguration aConfig)
Locks a service configuration so that it can only be modified by the "LockedByUser" . |
ServiceCategory |
modifyCategory(ModifyServiceCategoryInfo aInfo)
Modifies a service category by applying the specified properties. |
ServiceConfiguration |
modifyConfiguration(ModifyServiceConfigurationInfo aInfo)
Modifies the specified service configuration with the properties that have been set in the ModifyServiceConfigurationInfo object. |
Service |
modifyService(ModifyServiceInfo aInfo)
Modifies the specified Service object with
the values specified in the ModifyServiceInfo object. |
void |
removeCategory(ServiceCategory aCat)
Removes the specified service category. |
void |
removeConfiguration(ServiceConfiguration aConfig)
Removes the specified service configuration. |
void |
removeService(Service aService)
Removes the specified service. |
ServiceConfiguration |
start(ServiceConfiguration aService)
Starts the specified document service, transitioning the state of the service from STOPPED to RUNNING. |
ServiceConfiguration |
stop(ServiceConfiguration aService)
Stops the specified document service, tansitioning the state of the service from RUNNING to STOPPED. |
ServiceConfiguration |
undeploy(ServiceConfiguration aServiceConfig)
Undeploys a service, transitioning it to an Inactive state. |
ServiceConfiguration |
unlock(ServiceConfiguration aConfig)
Releases the lock held by the "LockedByUser" . |
Field Detail |
---|
static final java.lang.String SERVICE_ID
static final java.lang.String DEFAULT_CATEGORY_ID
Method Detail |
---|
Service createService(CreateServiceInfo aInfo) throws RegistryException
Service
object
with the values specified in the CreateServiceInfo
object.
aInfo
- Values to be applied to the new Service
object.
Service
object containing the specified information.
RegistryException
Service getService(java.lang.String aServiceId) throws RegistryException
aServiceId
- The service identifier.
RegistryException
Service modifyService(ModifyServiceInfo aInfo) throws RegistryException
Service
object with
the values specified in the ModifyServiceInfo
object.
aInfo
- Property values to be applied to the specified Service
object.
RegistryException
void removeService(Service aService) throws RegistryException
aService
- The service to remove.
RegistryException
java.util.List getServices(ServiceCategory aCategory)
aCategory
- The service category.
java.util.List getServices()
ServiceCategory createCategory(CreateServiceCategoryInfo aInfo) throws RegistryException
aInfo
- The category information.
RegistryException
ServiceCategory modifyCategory(ModifyServiceCategoryInfo aInfo) throws RegistryException
aInfo
- Values to be applied to the service category.
RegistryException
void removeCategory(ServiceCategory aCat) throws RegistryException
aCat
- The service category to be removed.
RegistryException
ServiceCategory getServiceCategory(java.lang.String aId) throws RegistryException
aId
- The category identifier.
RegistryException
java.util.List getServiceCategories()
java.util.List getServiceCategories(com.adobe.idp.dsc.filter.PagingFilter aFilter)
aFilter
- The paging criteria.
ServiceConfiguration createConfiguration(CreateServiceConfigurationInfo aInfo) throws RegistryException
aInfo
- The configuration information values.
RegistryException
void removeConfiguration(ServiceConfiguration aConfig) throws RegistryException
aConfig
- The service configuration to be removed.
RegistryException
void forceRemovalOfConfiguration(ServiceConfiguration aConfig) throws RegistryException
aConfig
- The service configuration to be removed.
RegistryException
java.util.List getServiceConfigurations()
com.adobe.idp.dsc.filter.FilterResult getServiceConfigurations(com.adobe.idp.dsc.filter.PagingFilter aFilter)
aFilter
- The paging criteria.
java.util.List getServiceConfigurations(Component aComponent)
aComponent
- The component for which to list its related services.
java.util.List getServiceConfigurations(Service aService)
aService
- The component for which to list its related services.
java.util.List getServiceConfigurationsForSpecificationId(java.lang.String aSpecificationId)
aSpecificationId
- The specification identifier.
ServiceConfiguration getHeadServiceConfiguration(java.lang.String aServiceName) throws RegistryException
aServiceName
- The name of the service.
RegistryException
ServiceConfiguration getHeadActiveConfiguration(java.lang.String aServiceName) throws RegistryException
aServiceName
- The name of the service to be returned.
RegistryException
ServiceConfiguration getCompatibleServiceConfiguration(java.lang.String aServiceName, int aMajorVersion, int aMinorVersion) throws RegistryException
aServiceName
- The name of the service.aMajorVersion
- The major version.aMinorVersion
- The minor version.
ServiceNotFoundException
RegistryException
ServiceConfiguration getServiceConfiguration(java.lang.String aServiceName, int aMajorVersion, int aMinorVersion) throws RegistryException
aServiceName
- The name of the service.aMajorVersion
- The major version.aMinorVersion
- The minor version.
ServiceConfigurationNotFoundException
RegistryException
ServiceConfiguration start(ServiceConfiguration aService) throws RegistryException
aService
- The service to be started.
RegistryException
ServiceConfiguration stop(ServiceConfiguration aService) throws RegistryException
aService
- The service to be stopped.
RegistryException
ServiceConfiguration createAndDeploy(Component aComponent, java.lang.String aServiceId, int aMajorVersion, int aMinorVersion, java.lang.String aDescriptor, java.util.Map aConfigValuesAsStrings) throws RegistryException
aComponent
- The component against which the service is being deployed.aServiceId
- The identifier of the service that clients will use to look up and invoke.aMajorVersion
- The major version number of the service.aMinorVersion
- The minor version number of the service.aDescriptor
- The physical descriptor to be processed by the component.
In the case of a POJO this is expected to be the service element; however, in
the case of an orchestrated service this would be the process template.aConfigValuesAsStrings
- Configuration parameters, gathered through the deployment tool, that
will be stored in the service registry. These values are expected to be the serialized output
of a Property Editor.
RegistryException
ServiceConfiguration createAndDeploy(Component aComponent, java.lang.String aCategoryId, java.lang.String aServiceId, int aMajorVersion, int aMinorVersion, java.lang.String aType, java.lang.String aDescriptor, java.util.Map aConfigValuesAsStrings) throws RegistryException
aComponent
- The component against which the service is being deployed.aCategoryId
- The identifier of the category under which the service will be deployed.aServiceId
- The identifier of the service that clients will use to look up and invoke.aMajorVersion
- The major version number of the service.aMinorVersion
- The minor version number of the service.aType
- The type of the service configuration.aDescriptor
- The physical descriptor to be processed by the Component.
In the case of a POJO this is expected to be the service element; however, in
the case of an orchestrated service this would be the process template.aConfigValuesAsStrings
- Configuration parameters, gathered through the deployment tool, that
will be stored in the service registry. These values are expected to be the serialized output
of a Property Editor.
RegistryException
ServiceConfiguration createAndDeploy(CreateServiceConfigurationInfo aInfo, java.util.Map aConfigValuesAsStrings) throws RegistryException
aInfo
- An object containing the values used to create and deploy a service configuration.aConfigValuesAsStrings
- Configuration parameters, gathered through the deployment tool, which
will be stored in the Service Registry. These values are expected to be the serialized output
of a Property Editor.
RegistryException
ServiceConfiguration createAndDeploy(CreateServiceConfigurationInfo aInfo, java.util.Map aConfigValuesAsStrings, boolean aOverrideEndpointCreation) throws RegistryException
aInfo
- An object containing the values used to create and deploy a service configuration.aConfigValuesAsStrings
- Configuration parameters, gathered through the deployment tool, which
will be stored in the Service Registry. These values are expected to be the serialized output
of a Property Editor.aOverrideEndpointCreation
- specify whether to override the creation of default endpoints, by default endpoints
are always created, passing true will override this creation
RegistryException
ServiceConfiguration modifyConfiguration(ModifyServiceConfigurationInfo aInfo) throws RegistryException
ModifyServiceConfigurationInfo
object.
aInfo
- Contains property values to be set in the specified service configuration.
RegistryException
ServiceConfiguration undeploy(ServiceConfiguration aServiceConfig) throws RegistryException
aServiceConfig
- The service to be undeployed.
RegistryException
ServiceConfiguration forceUndeploy(ServiceConfiguration aServiceConfig) throws RegistryException
aServiceConfig
- The service to be undeployed.
RegistryException
void clearCache()
java.util.Map getClientLibAsMap(java.lang.String aServiceId, int aMajorVersion, int aMinorVersion) throws RegistryException
java.util.Map
of classes and resources needed by clients to interact with
this service. The classes and resources returned are determined by the
export specifications in the related component's component.xml.
aServiceId
- The service identifier.aMajorVersion
- The major version.aMinorVersion
- The minor version.
java.util.Map
of classes and resources needed by clients to interact with
this service.
RegistryException
ServiceConfiguration lock(ServiceConfiguration aConfig) throws RegistryException
"LockedByUser"
.
aConfig
- The service configuration to be locked.
RegistryException
ServiceConfiguration unlock(ServiceConfiguration aConfig) throws RegistryException
"LockedByUser"
.
aConfig
- The service configuration to be unlocked.
RegistryException
ServiceConfiguration deploy(ServiceConfiguration aConfig) throws RegistryException
aConfig
- The service configuration to be transitioned.
RegistryException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |