Class ConnectorRegistryImpl
java.lang.Object
org.apache.sling.discovery.base.connectors.ping.ConnectorRegistryImpl
- All Implemented Interfaces:
ConnectorRegistry
Default implementation of the ConnectorRegistry which
keeps a list of outgoing connectors and is capable of
pinging them.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
activate
(org.osgi.framework.BundleContext context) protected void
Lists all outgoing topology connectorsvoid
pingOutgoingConnectors
(boolean force) ping all outgoing topology connectorsregisterOutgoingConnector
(ClusterViewService clusterViewService, URL connectorUrl) Register an outgoing topology connector using the provided endpoint urlstatic ConnectorRegistry
testConstructor
(AnnouncementRegistry announcementRegistry, BaseConfig config) boolean
Unregister an outgoing topology connector identified by the given (connector) id
-
Constructor Details
-
ConnectorRegistryImpl
public ConnectorRegistryImpl()
-
-
Method Details
-
testConstructor
public static ConnectorRegistry testConstructor(AnnouncementRegistry announcementRegistry, BaseConfig config) -
activate
protected void activate(org.osgi.framework.BundleContext context) -
deactivate
protected void deactivate() -
registerOutgoingConnector
public TopologyConnectorClientInformation registerOutgoingConnector(ClusterViewService clusterViewService, URL connectorUrl) Description copied from interface:ConnectorRegistry
Register an outgoing topology connector using the provided endpoint url- Specified by:
registerOutgoingConnector
in interfaceConnectorRegistry
-
listOutgoingConnectors
Description copied from interface:ConnectorRegistry
Lists all outgoing topology connectors- Specified by:
listOutgoingConnectors
in interfaceConnectorRegistry
-
unregisterOutgoingConnector
Description copied from interface:ConnectorRegistry
Unregister an outgoing topology connector identified by the given (connector) id- Specified by:
unregisterOutgoingConnector
in interfaceConnectorRegistry
-
pingOutgoingConnectors
public void pingOutgoingConnectors(boolean force) Description copied from interface:ConnectorRegistry
ping all outgoing topology connectors- Specified by:
pingOutgoingConnectors
in interfaceConnectorRegistry
-