@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)
ConnectorRegistry
registerOutgoingConnector
in interface ConnectorRegistry
public Collection<TopologyConnectorClientInformation> listOutgoingConnectors()
ConnectorRegistry
listOutgoingConnectors
in interface ConnectorRegistry
public boolean unregisterOutgoingConnector(String id)
ConnectorRegistry
unregisterOutgoingConnector
in interface ConnectorRegistry
public void pingOutgoingConnectors(boolean force)
ConnectorRegistry
pingOutgoingConnectors
in interface ConnectorRegistry
Copyright © 2017 The Apache Software Foundation. All rights reserved.