public interface HttpServiceContext extends RuntimeContext, DatasetContext, ServiceDiscoverer, MessagingContext, PluginContext, SecureStore, Transactional, ArtifactManager, MetadataReader, MetadataWriter
HttpServiceHandler
. Currently contains methods to receive the
HttpServiceHandlerSpecification
and the runtime arguments passed by the user.Modifier and Type | Method and Description |
---|---|
PluginConfigurer |
createPluginConfigurer()
Deprecated.
use
createServicePluginConfigurer() instead |
PluginConfigurer |
createPluginConfigurer(String namespace)
Deprecated.
use
createServicePluginConfigurer(String) instead |
ServicePluginConfigurer |
createServicePluginConfigurer()
Create a
ServicePluginConfigurer that can be used to instantiate plugins at runtime that
were not registered at configure time. |
ServicePluginConfigurer |
createServicePluginConfigurer(String namespace)
Create a
ServicePluginConfigurer that can be used to instantiate plugins at runtime that
were not registered at configure time. |
int |
getInstanceCount() |
int |
getInstanceId() |
HttpServiceHandlerSpecification |
getSpecification() |
getAdmin, getApplicationSpecification, getClusterName, getDataTracer, getNamespace, getRunId, getRuntimeArguments
discardDataset, getDataset, getDataset, getDataset, getDataset, releaseDataset
getServiceURL, getServiceURL, getServiceURL, openConnection
getDirectMessagePublisher, getMessageFetcher, getMessagePublisher
getPluginProperties, getPluginProperties, loadPluginClass, newPluginInstance, newPluginInstance
get, list
execute, execute
createClassLoader, createClassLoader, listArtifacts, listArtifacts
getMetadata, getMetadata
addProperties, addTags, addTags, removeMetadata, removeProperties, removeProperties, removeTags, removeTags
HttpServiceHandlerSpecification getSpecification()
int getInstanceCount()
int getInstanceId()
@Deprecated PluginConfigurer createPluginConfigurer()
createServicePluginConfigurer()
insteadPluginConfigurer
that can be used to instantiate plugins at runtime that were not registered
at configure time. Plugins registered by the dynamic configurer live in their own scope and will not
conflict with any plugins that were registered by the service when it was configured. Plugins registered by
the returned configurer will also not be available through PluginContext.newPluginInstance(String)
or
PluginContext.newPluginInstance(String, MacroEvaluator)
. Plugins with system scope and plugins in the same namespace
as the running service will be visible.
The dynamic configurer is meant to be used to create plugins for the lifetime of a single service call and
then to be forgotten.@Deprecated PluginConfigurer createPluginConfigurer(String namespace)
createServicePluginConfigurer(String)
insteadPluginConfigurer
that can be used to instantiate plugins at runtime that were not registered
at configure time. Plugins registered by the dynamic configurer live in their own scope and will not
conflict with any plugins that were registered by the service when it was configured. Plugins registered by
the returned configurer will also not be available through PluginContext.newPluginInstance(String)
or
PluginContext.newPluginInstance(String, MacroEvaluator)
. Plugins with system scope and plugins in the specified
namespace will be visible.
The dynamic configurer is meant to be used to create plugins for the lifetime of a single service call and
then to be forgotten.namespace
- the namespace for user scoped pluginsServicePluginConfigurer createServicePluginConfigurer()
ServicePluginConfigurer
that can be used to instantiate plugins at runtime that
were not registered at configure time. Plugins registered by the dynamic configurer live in their own scope
and will not conflict with any plugins that were registered by the service when it was configured.
Plugins registered by the returned configurer will also not be available through
PluginContext.newPluginInstance(String)
or PluginContext.newPluginInstance(String, MacroEvaluator)
.
Plugins with system scope and plugins in the same namespace as the running service will be visible.
The dynamic configurer is meant to be used to create plugins for the lifetime of a single service call and
then to be forgotten.ServicePluginConfigurer createServicePluginConfigurer(String namespace)
ServicePluginConfigurer
that can be used to instantiate plugins at runtime that
were not registered at configure time. Plugins registered by the dynamic configurer live in their own scope
and will not conflict with any plugins that were registered by the service when it was configured.
Plugins registered by the returned configurer will also not be available through
PluginContext.newPluginInstance(String)
or PluginContext.newPluginInstance(String, MacroEvaluator)
.
Plugins with system scope and plugins in the same namespace as the running service will be visible.
The dynamic configurer is meant to be used to create plugins for the lifetime of a single service call and
then to be forgotten.namespace
- the namespace for user scoped pluginsCopyright © 2021 Cask Data, Inc. Licensed under the Apache License, Version 2.0.