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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidactivate(org.osgi.framework.BundleContext context) protected voidLists all outgoing topology connectorsvoidpingOutgoingConnectors(boolean force) ping all outgoing topology connectorsregisterOutgoingConnector(ClusterViewService clusterViewService, URL connectorUrl) Register an outgoing topology connector using the provided endpoint urlstatic ConnectorRegistrytestConstructor(AnnouncementRegistry announcementRegistry, BaseConfig config) booleanUnregister 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:ConnectorRegistryRegister an outgoing topology connector using the provided endpoint url- Specified by:
registerOutgoingConnectorin interfaceConnectorRegistry
-
listOutgoingConnectors
Description copied from interface:ConnectorRegistryLists all outgoing topology connectors- Specified by:
listOutgoingConnectorsin interfaceConnectorRegistry
-
unregisterOutgoingConnector
Description copied from interface:ConnectorRegistryUnregister an outgoing topology connector identified by the given (connector) id- Specified by:
unregisterOutgoingConnectorin interfaceConnectorRegistry
-
pingOutgoingConnectors
public void pingOutgoingConnectors(boolean force) Description copied from interface:ConnectorRegistryping all outgoing topology connectors- Specified by:
pingOutgoingConnectorsin interfaceConnectorRegistry
-