Interface ServiceManager
- All Superinterfaces:
ServiceOperations
- All Known Implementing Classes:
AbstractServiceManager
A service provider interface for managing services in the IIP-Ecosphere platform.
Service implementations shall be bound by code generation to a specific (stream) service computing approach, e.g.,
Spring Cloud Streams. The management of such services happens via this interface, which shall utilize the respective
management capabilites of the underlying service computing approach. The interface is rather simple as it shall
be usable through an AAS. The id of a service used here must not be identical to the name in
ServiceDescriptor.getName(), e.g., it may contain the version. Implementations shall call the notify methods
in ServicesAas.- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from interface de.iip_ecosphere.platform.services.ServiceOperations
ServiceOperations.StreamLogMode -
Field Summary
FieldsFields inherited from interface de.iip_ecosphere.platform.services.ServiceOperations
EXC_ALREADY_KNOWN, OPTION_ARGS, OPTION_ENSEMBLE, OPTION_MEMLIMITS, OPTION_PARAMS, OPTION_SERVERS -
Method Summary
Modifier and TypeMethodDescriptionvoidcloneArtifact(String artifactId, URI location) Clones the artifact.getArtifact(String artifactId) Returns an artifact descriptor.Returns the ids of all available artifacts.Collection<? extends ArtifactDescriptor> Returns the available (installed) artifacts.getInputDataConnectors(String serviceId) Returns all input connector information for the givenserviceId.getOutputDataConnectors(String serviceId) Returns all output connector information for the givenserviceId.getParameters(String serviceId) Returns all information about parameter for the givenserviceId.getService(String serviceId) Returns a service descriptor.Returns the ids of all available services.Collection<? extends ServiceDescriptor> Returns the available (installed) services in all artifacts.Methods inherited from interface de.iip_ecosphere.platform.services.ServiceOperations
activateService, addArtifact, getServiceInstanceCount, getServiceState, migrateService, passivateService, reconfigureService, removeArtifact, setServiceState, startService, startService, stopService, streamLog, switchToService, updateService
-
Field Details
-
PROGRESS_COMPONENT_ID
- See Also:
-
-
Method Details
-
cloneArtifact
Clones the artifact. As services belong to artifacts, it is not possible to migrate a single service (except for if the artifact consists of a single service). [adaptation]- Parameters:
artifactId- the id of the servicelocation- the target location, e.g., a device- Throws:
ExecutionException- if migration fails
-
getParameters
Returns all information about parameter for the givenserviceId. [adaptation]- Parameters:
serviceId- the serviceId of the service- Returns:
- the descriptors for all supported parameters
-
getInputDataConnectors
Returns all input connector information for the givenserviceId.- Parameters:
serviceId- the serviceId of the service- Returns:
- the descriptors for all input data connectors
-
getOutputDataConnectors
Returns all output connector information for the givenserviceId.- Parameters:
serviceId- the serviceId of the service- Returns:
- the descriptors for all output data connectors
-
getArtifactIds
Returns the ids of all available artifacts.- Returns:
- the ids
-
getServiceIds
Returns the ids of all available services.- Returns:
- the ids
-
getArtifacts
Collection<? extends ArtifactDescriptor> getArtifacts()Returns the available (installed) artifacts.- Returns:
- the services
-
getServices
Collection<? extends ServiceDescriptor> getServices()Returns the available (installed) services in all artifacts.- Returns:
- the services
-
getArtifact
Returns an artifact descriptor.- Parameters:
artifactId- the id of the service (may be null or invalid)- Returns:
- the related artifact descriptor or null if the artifact does not exist
-
getService
Returns a service descriptor.- Parameters:
serviceId- the id of the service (may be null or invalid)- Returns:
- the related service descriptor or null if the service does not exist
-