public class TopologyConnectorClient extends java.lang.Object implements TopologyConnectorClientInformation
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnect this connector
|
java.net.URL |
getConnectorUrl()
the endpoint url where this connector is connecting to
|
java.lang.String |
getId()
the unique id of this connector
|
long |
getLastPingSent()
the unix-millis when the last heartbeat was sent
|
java.lang.String |
getLastRequestEncoding()
the Content-Encoding of the last request
|
java.lang.String |
getLastResponseEncoding()
the Content-Encoding of the last response
|
int |
getNextPingDue()
the seconds until the next heartbeat is due
|
java.lang.String |
getRemoteSlingId()
the sling id of the remote end
|
int |
getStatusCode()
return the http status code of the last post to the servlet, -1 if no post was ever done
|
java.lang.String |
getStatusDetails()
provides more details about connection failures
|
boolean |
isAutoStopped()
SLING-3316 : whether or not this connector was auto-stopped
|
boolean |
isConnected()
whether or not this connector was able to successfully connect
|
boolean |
representsLoop()
whether or not the counterpart of this connector has detected a loop in the topology connectors
|
public int getStatusCode()
TopologyConnectorClientInformationgetStatusCode in interface TopologyConnectorClientInformationpublic java.net.URL getConnectorUrl()
TopologyConnectorClientInformationgetConnectorUrl in interface TopologyConnectorClientInformationpublic boolean representsLoop()
TopologyConnectorClientInformationrepresentsLoop in interface TopologyConnectorClientInformationpublic boolean isConnected()
TopologyConnectorClientInformationisConnected in interface TopologyConnectorClientInformationpublic java.lang.String getStatusDetails()
TopologyConnectorClientInformationgetStatusDetails in interface TopologyConnectorClientInformationpublic long getLastPingSent()
TopologyConnectorClientInformationgetLastPingSent in interface TopologyConnectorClientInformationpublic int getNextPingDue()
TopologyConnectorClientInformationgetNextPingDue in interface TopologyConnectorClientInformationpublic boolean isAutoStopped()
TopologyConnectorClientInformationisAutoStopped in interface TopologyConnectorClientInformationpublic java.lang.String getLastRequestEncoding()
TopologyConnectorClientInformationgetLastRequestEncoding in interface TopologyConnectorClientInformationpublic java.lang.String getLastResponseEncoding()
TopologyConnectorClientInformationgetLastResponseEncoding in interface TopologyConnectorClientInformationpublic java.lang.String getRemoteSlingId()
TopologyConnectorClientInformationgetRemoteSlingId in interface TopologyConnectorClientInformationpublic java.lang.String getId()
TopologyConnectorClientInformationgetId in interface TopologyConnectorClientInformationpublic void disconnect()
Copyright © 2018 The Apache Software Foundation. All rights reserved.