public class MetadataProviderServer extends Server
Server.start() and finally disposed through Server.close().
Further reuse of the same instance is not supported.| Constructor and Description |
|---|
MetadataProviderServer()
Creates an empty server still to be configured and started.
|
MetadataProviderServer(boolean initializeOnStart)
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.
|
java.lang.String |
getAdapterConfig()
Gets the pathname of an optional configuration file for the Remote
Metadata Adapter, to be passed to the init method.
The default value is null. |
java.util.Map<java.lang.String,java.lang.String> |
getAdapterParams()
Gets the Map object to be passed to the init method
of the Remote Metadata Adapter, to supply optional parameters.
The default value is an empty HashMap. |
void |
setAdapter(MetadataProvider adapter)
Sets the Remote Metadata Adapter instance to be run.
|
void |
setAdapterConfig(java.lang.String configFile)
Sets the pathname of an optional configuration file for the Remote
Metadata Adapter, to be passed to the init method.
The default value is null. |
void |
setAdapterParams(java.util.Map<java.lang.String,java.lang.String> params)
Sets a Map object to be passed to the init method
of the Remote Metadata Adapter, to supply optional parameters.
The default value is an empty HashMap. |
close, getExceptionHandler, getName, getNotifyStream, getReplyStream, getRequestStream, setExceptionHandler, setLoggerProvider, setName, setNotifyStream, setReplyStream, setRequestStream, startpublic MetadataProviderServer()
java.lang.IllegalArgumentException - in case something wrong is supplied
in system properties related with Metadata Adapter processing.public MetadataProviderServer(boolean initializeOnStart)
initializeOnStart - If true, the init method of the
Remote Adapter will be invoked immediately rather than upon
a Proxy Adapter request. The Proxy Adapter request will then just
receive a successful answer. This can shorten the connection phase,
which will start only after the return of init; on the other hand,
any initialization parameters supplied by the Proxy Adapter will
not be available.java.lang.IllegalArgumentException - in case something wrong is supplied
in system properties related with Metadata Adapter processing.public final void setAdapter(MetadataProvider adapter)
adapter - the Remote Metadata Adapter instance to be run.public final MetadataProvider getAdapter()
public final void setAdapterParams(java.util.Map<java.lang.String,java.lang.String> params)
params - the Map to be passed to the init method
of the Remote Metadata AdapterMetadataProvider.init(Map, String)public final java.util.Map<java.lang.String,java.lang.String> getAdapterParams()
MetadataProvider.init(Map, String)public final void setAdapterConfig(java.lang.String configFile)
configFile - the pathname of an optional configuration file for the Remote
Metadata Adapter.MetadataProvider.init(Map, String)public final java.lang.String getAdapterConfig()
MetadataProvider.init(Map, String)