public class MetadataProviderServer extends Server
Server.start()
and finally disposed through Server.close().
If any preliminary initialization on the supplied MetadataProvider
implementation object has to be performed, it should be done through
a custom, dedicated method before invoking Server.start().
Further reuse of the same instance is not supported. | Constructor and Description |
|---|
MetadataProviderServer()
Creates an empty server still to be configured and started.
|
| Modifier and Type | Method and Description |
|---|---|
MetadataProvider |
getAdapter()
Gets the configured Metadata Adapter that is running or will run.
|
String |
getAdapterConfig()
Gets the pathname of an optional configuration file for the Remote
Metadata Adapter, to be passed to the init method.
|
Map<String,String> |
getAdapterParams()
Gets the Map object to be passed to the init method
of the Remote Metadata Adapter, to supply optional parameters.
|
void |
setAdapter(MetadataProvider adapter)
Sets the Remote Metadata Adapter instance to be run.
|
void |
setAdapterConfig(String configFile)
Sets the pathname of an optional configuration file for the Remote
Metadata Adapter, to be passed to the init method.
|
void |
setAdapterParams(Map<String,String> params)
Sets a Map object to be passed to the init method
of the Remote Metadata Adapter, to supply optional parameters.
|
close, getExceptionHandler, getName, getNotifyStream, getRemotePassword, getRemoteUser, getReplyStream, getRequestStream, setExceptionHandler, setLoggerProvider, setName, setNotifyStream, setRemotePassword, setRemoteUser, setReplyStream, setRequestStream, startpublic MetadataProviderServer()
IllegalArgumentException - in case something wrong is supplied
in system properties related with Metadata Adapter processing.public final void setAdapter(@Nonnull MetadataProvider adapter)
adapter - the Remote Metadata Adapter instance to be run.@Nonnull public final MetadataProvider getAdapter()
public final void setAdapterParams(@Nonnull Map<String,String> params)
params - the Map to be passed to the init method
of the Remote Metadata AdapterMetadataProvider.init(Map, String)@Nonnull public final Map<String,String> getAdapterParams()
MetadataProvider.init(Map, String)public final void setAdapterConfig(@Nullable String configFile)
configFile - the pathname of an optional configuration file for the Remote
Metadata Adapter.MetadataProvider.init(Map, String)@Nullable public final String getAdapterConfig()
MetadataProvider.init(Map, String)Copyright © 2021. All rights reserved.