public class ServiceRegistryImpl extends Object implements ServiceRegistry
Constructor and Description |
---|
ServiceRegistryImpl() |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
getActivityConfigurationSchema(URI activityType)
Returns the JSON Schema for the configuration required by an activity.
|
Set<InputActivityPort> |
getActivityInputPorts(URI activityType,
com.fasterxml.jackson.databind.JsonNode configuration)
Returns the input ports that the activity type requires to be present in order to execute
with the specified configuration.
|
Set<OutputActivityPort> |
getActivityOutputPorts(URI activityType,
com.fasterxml.jackson.databind.JsonNode configuration)
Returns the output ports that the activity type requires to be present in order to execute
with the specified configuration.
|
Set<URI> |
getActivityTypes()
Returns the activity types in the registry.
|
void |
setActivityService(ActivityService activityService) |
public Set<URI> getActivityTypes()
ServiceRegistry
getActivityTypes
in interface ServiceRegistry
public com.fasterxml.jackson.databind.JsonNode getActivityConfigurationSchema(URI activityType) throws InvalidConfigurationException, ActivityTypeNotFoundException
ServiceRegistry
getActivityConfigurationSchema
in interface ServiceRegistry
activityType
- the activity typeActivityTypeNotFoundException
- if the activity type is not in the registryInvalidConfigurationException
public Set<InputActivityPort> getActivityInputPorts(URI activityType, com.fasterxml.jackson.databind.JsonNode configuration) throws InvalidConfigurationException, ActivityTypeNotFoundException
ServiceRegistry
If the activity does not require any input port for the configuration then an empty set is returned.
getActivityInputPorts
in interface ServiceRegistry
configuration
- the activity configurationActivityTypeNotFoundException
- if the activity type is not in the registryInvalidConfigurationException
public Set<OutputActivityPort> getActivityOutputPorts(URI activityType, com.fasterxml.jackson.databind.JsonNode configuration) throws InvalidConfigurationException, ActivityTypeNotFoundException
ServiceRegistry
If the activity type does not require any output ports for the configuration then an empty set is returned.
getActivityOutputPorts
in interface ServiceRegistry
configuration
- the activity configurationActivityTypeNotFoundException
- if the activity type is not in the registryInvalidConfigurationException
public void setActivityService(ActivityService activityService)
Copyright © 2015–2016 The Apache Software Foundation. All rights reserved.