Class MyServiceManagerAppInst
java.lang.Object
de.iip_ecosphere.platform.services.AbstractServiceManager<MyArtifactDescriptor,MyServiceDescriptor>
test.de.iip_ecosphere.platform.services.MyServiceManagerAppInst
- All Implemented Interfaces:
de.iip_ecosphere.platform.services.ServiceManager,de.iip_ecosphere.platform.services.ServiceOperations
class MyServiceManagerAppInst
extends de.iip_ecosphere.platform.services.AbstractServiceManager<MyArtifactDescriptor,MyServiceDescriptor>
A test service manager for multiple instances in an application. Does not support advanced operations, just
for basic functional tests.
- Author:
- Holger Eichelberger, SSE
-
Nested Class Summary
Nested classes/interfaces inherited from class de.iip_ecosphere.platform.services.AbstractServiceManager
de.iip_ecosphere.platform.services.AbstractServiceManager.TypedDataConnectionNested classes/interfaces inherited from interface de.iip_ecosphere.platform.services.ServiceOperations
de.iip_ecosphere.platform.services.ServiceOperations.StreamLogMode -
Field Summary
Fields inherited from interface de.iip_ecosphere.platform.services.ServiceManager
PROGRESS_COMPONENT_IDFields inherited from interface de.iip_ecosphere.platform.services.ServiceOperations
EXC_ALREADY_KNOWN, OPTION_ARGS, OPTION_ENSEMBLE, OPTION_MEMLIMITS, OPTION_PARAMS, OPTION_SERVERS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddArtifact(URI location) voidcloneArtifact(String artifactId, URI location) protected Predicate<de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor> protected MyServiceDescriptorinstantiateFromTemplate(MyServiceDescriptor template, String serviceId) voidstartService(String... serviceId) voidstartService(Map<String, String> options, String... serviceId) voidstopService(String... serviceId) voidupdateService(String serviceId, URI location) Methods inherited from class de.iip_ecosphere.platform.services.AbstractServiceManager
activateService, addArtifact, checkId, checkServiceInstances, clear, determineExternalConnections, determineFunctionalConnections, determineInternalConnections, getArtifact, getArtifactDescriptor, getArtifactIds, getArtifacts, getInputDataConnectors, getOutputDataConnectors, getParameters, getService, getServiceDescriptor, getServiceIds, getServiceInstanceCount, getServices, getServiceState, getStub, handleInstantiatedServices, isValidId, isValidIdBut, migrateService, passivateService, pruneServers, reconfigureService, removeArtifact, setServiceState, setState, sortByDependency, sortByDependency, switchToService, topLevelMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.iip_ecosphere.platform.services.ServiceOperations
streamLog
-
Constructor Details
-
MyServiceManagerAppInst
MyServiceManagerAppInst() throws ExecutionExceptionSets up the service manager.- Throws:
ExecutionException- if adding services/artifacts fails
-
-
Method Details
-
cloneArtifact
- Throws:
ExecutionException
-
addArtifact
- Throws:
ExecutionException
-
startService
- Throws:
ExecutionException
-
startService
- Throws:
ExecutionException
-
stopService
- Throws:
ExecutionException
-
updateService
- Throws:
ExecutionException
-
getAvailablePredicate
protected Predicate<de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor> getAvailablePredicate()- Specified by:
getAvailablePredicatein classde.iip_ecosphere.platform.services.AbstractServiceManager<MyArtifactDescriptor,MyServiceDescriptor>
-
instantiateFromTemplate
protected MyServiceDescriptor instantiateFromTemplate(MyServiceDescriptor template, String serviceId) - Specified by:
instantiateFromTemplatein classde.iip_ecosphere.platform.services.AbstractServiceManager<MyArtifactDescriptor,MyServiceDescriptor>
-