private static class ServiceMgrAndDescriptorTest.MockServiceManager extends Object implements de.iip_ecosphere.platform.services.ServiceManager
| Modifier and Type | Field and Description |
|---|---|
private Map<String,de.iip_ecosphere.platform.services.spring.SpringCloudArtifactDescriptor> |
arts |
private Map<String,de.iip_ecosphere.platform.services.spring.SpringCloudServiceDescriptor> |
svc |
| Modifier | Constructor and Description |
|---|---|
private |
MockServiceManager(de.iip_ecosphere.platform.services.spring.SpringCloudArtifactDescriptor aDesc)
Creates a service manager instance for the given artifact descriptor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
activateService(String serviceId) |
String |
addArtifact(URI location) |
void |
cloneArtifact(String artifactId,
URI location) |
de.iip_ecosphere.platform.services.ArtifactDescriptor |
getArtifact(String artifactId) |
Set<String> |
getArtifactIds() |
Collection<? extends de.iip_ecosphere.platform.services.ArtifactDescriptor> |
getArtifacts() |
List<de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor> |
getInputDataConnectors(String serviceId) |
List<de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor> |
getOutputDataConnectors(String serviceId) |
List<de.iip_ecosphere.platform.services.TypedDataDescriptor> |
getParameters(String serviceId) |
de.iip_ecosphere.platform.services.ServiceDescriptor |
getService(String serviceId) |
Set<String> |
getServiceIds() |
Collection<? extends de.iip_ecosphere.platform.services.ServiceDescriptor> |
getServices() |
de.iip_ecosphere.platform.services.environment.ServiceState |
getServiceState(String serviceId) |
void |
migrateService(String serviceId,
String resourceId) |
void |
passivateService(String serviceId) |
void |
reconfigureService(String serviceId,
Map<String,String> values) |
void |
removeArtifact(String artifactId) |
void |
setServiceState(String serviceId,
de.iip_ecosphere.platform.services.environment.ServiceState state) |
void |
startService(String... serviceId) |
void |
stopService(String... serviceId) |
void |
switchToService(String serviceId,
String targetId) |
void |
updateService(String serviceId,
URI location) |
private Map<String,de.iip_ecosphere.platform.services.spring.SpringCloudArtifactDescriptor> arts
private MockServiceManager(de.iip_ecosphere.platform.services.spring.SpringCloudArtifactDescriptor aDesc)
aDesc - the artifact descriptor to analyzepublic void updateService(String serviceId, URI location) throws ExecutionException
updateService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void switchToService(String serviceId, String targetId) throws ExecutionException
switchToService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void stopService(String... serviceId) throws ExecutionException
stopService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void startService(String... serviceId) throws ExecutionException
startService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void setServiceState(String serviceId, de.iip_ecosphere.platform.services.environment.ServiceState state) throws ExecutionException
setServiceState in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void removeArtifact(String artifactId) throws ExecutionException
removeArtifact in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void reconfigureService(String serviceId, Map<String,String> values) throws ExecutionException
reconfigureService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void passivateService(String serviceId) throws ExecutionException
passivateService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void migrateService(String serviceId, String resourceId) throws ExecutionException
migrateService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic de.iip_ecosphere.platform.services.environment.ServiceState getServiceState(String serviceId)
getServiceState in interface de.iip_ecosphere.platform.services.ServiceOperationspublic String addArtifact(URI location) throws ExecutionException
addArtifact in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic void activateService(String serviceId) throws ExecutionException
activateService in interface de.iip_ecosphere.platform.services.ServiceOperationsExecutionExceptionpublic Collection<? extends de.iip_ecosphere.platform.services.ServiceDescriptor> getServices()
getServices in interface de.iip_ecosphere.platform.services.ServiceManagerpublic Set<String> getServiceIds()
getServiceIds in interface de.iip_ecosphere.platform.services.ServiceManagerpublic de.iip_ecosphere.platform.services.ServiceDescriptor getService(String serviceId)
getService in interface de.iip_ecosphere.platform.services.ServiceManagerpublic List<de.iip_ecosphere.platform.services.TypedDataDescriptor> getParameters(String serviceId)
getParameters in interface de.iip_ecosphere.platform.services.ServiceManagerpublic List<de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor> getOutputDataConnectors(String serviceId)
getOutputDataConnectors in interface de.iip_ecosphere.platform.services.ServiceManagerpublic List<de.iip_ecosphere.platform.services.TypedDataConnectorDescriptor> getInputDataConnectors(String serviceId)
getInputDataConnectors in interface de.iip_ecosphere.platform.services.ServiceManagerpublic Collection<? extends de.iip_ecosphere.platform.services.ArtifactDescriptor> getArtifacts()
getArtifacts in interface de.iip_ecosphere.platform.services.ServiceManagerpublic Set<String> getArtifactIds()
getArtifactIds in interface de.iip_ecosphere.platform.services.ServiceManagerpublic de.iip_ecosphere.platform.services.ArtifactDescriptor getArtifact(String artifactId)
getArtifact in interface de.iip_ecosphere.platform.services.ServiceManagerpublic void cloneArtifact(String artifactId, URI location) throws ExecutionException
cloneArtifact in interface de.iip_ecosphere.platform.services.ServiceManagerExecutionExceptionCopyright © 2022. All rights reserved.