Class TopologyConnectorClient
java.lang.Object
org.apache.sling.discovery.base.connectors.ping.TopologyConnectorClient
- All Implemented Interfaces:
TopologyConnectorClientInformation
A topology connector client is used for sending (pinging) a remote topology
connector servlet and exchanging announcements with it
-
Method Summary
Modifier and TypeMethodDescriptionvoidDisconnect this connectorthe endpoint url where this connector is connecting togetId()the unique id of this connectorlongthe unix-millis when the last heartbeat was sentthe Content-Encoding of the last requestthe Content-Encoding of the last responseintthe seconds until the next heartbeat is duethe sling id of the remote endintreturn the http status code of the last post to the servlet, -1 if no post was ever doneprovides more details about connection failuresbooleanSLING-3316 : whether or not this connector was auto-stoppedbooleanwhether or not this connector was able to successfully connectbooleanwhether or not the counterpart of this connector has detected a loop in the topology connectors
-
Method Details
-
getStatusCode
public int getStatusCode()Description copied from interface:TopologyConnectorClientInformationreturn the http status code of the last post to the servlet, -1 if no post was ever done- Specified by:
getStatusCodein interfaceTopologyConnectorClientInformation
-
getConnectorUrl
Description copied from interface:TopologyConnectorClientInformationthe endpoint url where this connector is connecting to- Specified by:
getConnectorUrlin interfaceTopologyConnectorClientInformation
-
representsLoop
public boolean representsLoop()Description copied from interface:TopologyConnectorClientInformationwhether or not the counterpart of this connector has detected a loop in the topology connectors- Specified by:
representsLoopin interfaceTopologyConnectorClientInformation
-
isConnected
public boolean isConnected()Description copied from interface:TopologyConnectorClientInformationwhether or not this connector was able to successfully connect- Specified by:
isConnectedin interfaceTopologyConnectorClientInformation
-
getStatusDetails
Description copied from interface:TopologyConnectorClientInformationprovides more details about connection failures- Specified by:
getStatusDetailsin interfaceTopologyConnectorClientInformation
-
getLastPingSent
public long getLastPingSent()Description copied from interface:TopologyConnectorClientInformationthe unix-millis when the last heartbeat was sent- Specified by:
getLastPingSentin interfaceTopologyConnectorClientInformation
-
getNextPingDue
public int getNextPingDue()Description copied from interface:TopologyConnectorClientInformationthe seconds until the next heartbeat is due- Specified by:
getNextPingDuein interfaceTopologyConnectorClientInformation
-
isAutoStopped
public boolean isAutoStopped()Description copied from interface:TopologyConnectorClientInformationSLING-3316 : whether or not this connector was auto-stopped- Specified by:
isAutoStoppedin interfaceTopologyConnectorClientInformation
-
getLastRequestEncoding
Description copied from interface:TopologyConnectorClientInformationthe Content-Encoding of the last request- Specified by:
getLastRequestEncodingin interfaceTopologyConnectorClientInformation
-
getLastResponseEncoding
Description copied from interface:TopologyConnectorClientInformationthe Content-Encoding of the last response- Specified by:
getLastResponseEncodingin interfaceTopologyConnectorClientInformation
-
getRemoteSlingId
Description copied from interface:TopologyConnectorClientInformationthe sling id of the remote end- Specified by:
getRemoteSlingIdin interfaceTopologyConnectorClientInformation
-
getId
Description copied from interface:TopologyConnectorClientInformationthe unique id of this connector- Specified by:
getIdin interfaceTopologyConnectorClientInformation
-
disconnect
public void disconnect()Disconnect this connector
-