org.apache.sling.discovery.impl.topology.connector
Class ConnectorRegistryImpl

java.lang.Object
  extended by org.apache.sling.discovery.impl.topology.connector.ConnectorRegistryImpl
All Implemented Interfaces:
ConnectorRegistry

@Service(value=ConnectorRegistry.class)
public class ConnectorRegistryImpl
extends Object
implements ConnectorRegistry


Constructor Summary
ConnectorRegistryImpl()
           
 
Method Summary
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
 boolean unregisterOutgoingConnector(String id)
          Unregister an outgoing topology connector identified by the given (connector) id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConnectorRegistryImpl

public ConnectorRegistryImpl()
Method Detail

activate

@Activate
protected void activate(org.osgi.service.component.ComponentContext cc)

deactivate

@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 interface ConnectorRegistry

listOutgoingConnectors

public Collection<TopologyConnectorClientInformation> listOutgoingConnectors()
Description copied from interface: ConnectorRegistry
Lists all outgoing topology connectors

Specified by:
listOutgoingConnectors in interface ConnectorRegistry

unregisterOutgoingConnector

public boolean unregisterOutgoingConnector(String id)
Description copied from interface: ConnectorRegistry
Unregister an outgoing topology connector identified by the given (connector) id

Specified by:
unregisterOutgoingConnector in interface ConnectorRegistry

pingOutgoingConnectors

public void pingOutgoingConnectors(boolean force)
Description copied from interface: ConnectorRegistry
ping all outgoing topology connectors

Specified by:
pingOutgoingConnectors in interface ConnectorRegistry


Copyright © 2007–2014 The Apache Software Foundation. All rights reserved.