@Service(value=ConnectorRegistry.class) public class ConnectorRegistryImpl extends Object implements ConnectorRegistry
| Constructor and Description |
|---|
ConnectorRegistryImpl() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
activate(org.osgi.service.component.ComponentContext cc) |
protected void |
deactivate() |
Collection<TopologyConnectorClientInformation> |
listOutgoingConnectors()
Lists all outgoing topology connectors
|
void |
pingOutgoingConnectors(boolean force)
ping all outgoing topology connectors
|
TopologyConnectorClientInformation |
registerOutgoingConnector(ClusterViewService clusterViewService,
URL connectorUrl)
Register an outgoing topology connector using the provided endpoint url
|
static ConnectorRegistry |
testConstructor(AnnouncementRegistry announcementRegistry,
BaseConfig config) |
boolean |
unregisterOutgoingConnector(String id)
Unregister an outgoing topology connector identified by the given (connector) id
|
public static ConnectorRegistry testConstructor(AnnouncementRegistry announcementRegistry, BaseConfig config)
@Activate protected void activate(org.osgi.service.component.ComponentContext cc)
@Deactivate protected void deactivate()
public TopologyConnectorClientInformation registerOutgoingConnector(ClusterViewService clusterViewService, URL connectorUrl)
ConnectorRegistryregisterOutgoingConnector in interface ConnectorRegistrypublic Collection<TopologyConnectorClientInformation> listOutgoingConnectors()
ConnectorRegistrylistOutgoingConnectors in interface ConnectorRegistrypublic boolean unregisterOutgoingConnector(String id)
ConnectorRegistryunregisterOutgoingConnector in interface ConnectorRegistrypublic void pingOutgoingConnectors(boolean force)
ConnectorRegistrypingOutgoingConnectors in interface ConnectorRegistryCopyright © 2017 The Apache Software Foundation. All rights reserved.