public class RemoteConnectorInfoManagerImpl extends Object implements ConnectorInfoManager, ConnectorEventPublisher, Runnable
Constructor and Description |
---|
RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info) |
RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info,
boolean loadConnectorInfo) |
Modifier and Type | Method and Description |
---|---|
void |
addConnectorEventHandler(ConnectorEventHandler hook)
Adds an observer to the set of observers for this object, provided that
it is not the same as some observer already in the set.
|
void |
deleteConnectorEventHandler(ConnectorEventHandler hook)
Deletes an observer from the set of observers of this object.
|
RemoteConnectorInfoManagerImpl |
derive(RemoteFrameworkConnectionInfo info)
Derives another RemoteConnectorInfoManagerImpl with a different
RemoteFrameworkConnectionInfo but with the same metadata.
|
ConnectorInfo |
findConnectorInfo(ConnectorKey key)
Returns the
ConnectorInfo that is associated with the
specified ConnectorKey . |
List<ConnectorInfo> |
getConnectorInfos()
Returns the list of
ConnectorInfo instances. |
List<ConnectorKey> |
getConnectorKeys() |
Map<String,Object> |
getServerInfo() |
void |
run() |
public RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info) throws RuntimeException
RuntimeException
public RemoteConnectorInfoManagerImpl(RemoteFrameworkConnectionInfo info, boolean loadConnectorInfo)
public RemoteConnectorInfoManagerImpl derive(RemoteFrameworkConnectionInfo info)
info
- public ConnectorInfo findConnectorInfo(ConnectorKey key)
ConnectorInfoManager
ConnectorInfo
that is associated with the
specified ConnectorKey
.findConnectorInfo
in interface ConnectorInfoManager
key
- The key of a connector.ConnectorInfo
or null
if none was
associated with the specified key.public List<ConnectorInfo> getConnectorInfos()
ConnectorInfoManager
ConnectorInfo
instances.getConnectorInfos
in interface ConnectorInfoManager
ConnectorInfo
instances.public void addConnectorEventHandler(ConnectorEventHandler hook)
addConnectorEventHandler
in interface ConnectorEventPublisher
hook
- an observer to be added.public void deleteConnectorEventHandler(ConnectorEventHandler hook)
null
to this method will have no effect.deleteConnectorEventHandler
in interface ConnectorEventPublisher
hook
- the observer to be deleted.public Map<String,Object> getServerInfo() throws RuntimeException
RuntimeException
public List<ConnectorKey> getConnectorKeys() throws RuntimeException
RuntimeException
Copyright © 2022. All rights reserved.