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 TypeMethodDescriptionvoid
Disconnect this connectorthe endpoint url where this connector is connecting togetId()
the unique id of this connectorlong
the unix-millis when the last heartbeat was sentthe Content-Encoding of the last requestthe Content-Encoding of the last responseint
the seconds until the next heartbeat is duethe sling id of the remote endint
return the http status code of the last post to the servlet, -1 if no post was ever doneprovides more details about connection failuresboolean
SLING-3316 : whether or not this connector was auto-stoppedboolean
whether or not this connector was able to successfully connectboolean
whether 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:TopologyConnectorClientInformation
return the http status code of the last post to the servlet, -1 if no post was ever done- Specified by:
getStatusCode
in interfaceTopologyConnectorClientInformation
-
getConnectorUrl
Description copied from interface:TopologyConnectorClientInformation
the endpoint url where this connector is connecting to- Specified by:
getConnectorUrl
in interfaceTopologyConnectorClientInformation
-
representsLoop
public boolean representsLoop()Description copied from interface:TopologyConnectorClientInformation
whether or not the counterpart of this connector has detected a loop in the topology connectors- Specified by:
representsLoop
in interfaceTopologyConnectorClientInformation
-
isConnected
public boolean isConnected()Description copied from interface:TopologyConnectorClientInformation
whether or not this connector was able to successfully connect- Specified by:
isConnected
in interfaceTopologyConnectorClientInformation
-
getStatusDetails
Description copied from interface:TopologyConnectorClientInformation
provides more details about connection failures- Specified by:
getStatusDetails
in interfaceTopologyConnectorClientInformation
-
getLastPingSent
public long getLastPingSent()Description copied from interface:TopologyConnectorClientInformation
the unix-millis when the last heartbeat was sent- Specified by:
getLastPingSent
in interfaceTopologyConnectorClientInformation
-
getNextPingDue
public int getNextPingDue()Description copied from interface:TopologyConnectorClientInformation
the seconds until the next heartbeat is due- Specified by:
getNextPingDue
in interfaceTopologyConnectorClientInformation
-
isAutoStopped
public boolean isAutoStopped()Description copied from interface:TopologyConnectorClientInformation
SLING-3316 : whether or not this connector was auto-stopped- Specified by:
isAutoStopped
in interfaceTopologyConnectorClientInformation
-
getLastRequestEncoding
Description copied from interface:TopologyConnectorClientInformation
the Content-Encoding of the last request- Specified by:
getLastRequestEncoding
in interfaceTopologyConnectorClientInformation
-
getLastResponseEncoding
Description copied from interface:TopologyConnectorClientInformation
the Content-Encoding of the last response- Specified by:
getLastResponseEncoding
in interfaceTopologyConnectorClientInformation
-
getRemoteSlingId
Description copied from interface:TopologyConnectorClientInformation
the sling id of the remote end- Specified by:
getRemoteSlingId
in interfaceTopologyConnectorClientInformation
-
getId
Description copied from interface:TopologyConnectorClientInformation
the unique id of this connector- Specified by:
getId
in interfaceTopologyConnectorClientInformation
-
disconnect
public void disconnect()Disconnect this connector
-