public class TopologyConnectorClient extends Object implements TopologyConnectorClientInformation
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Disconnect this connector
|
URL |
getConnectorUrl()
the endpoint url where this connector is connecting to
|
String |
getId()
the unique id of this connector
|
long |
getLastPingSent()
the unix-millis when the last heartbeat was sent
|
String |
getLastRequestEncoding()
the Content-Encoding of the last request
|
String |
getLastResponseEncoding()
the Content-Encoding of the last response
|
int |
getNextPingDue()
the seconds until the next heartbeat is due
|
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
|
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()
TopologyConnectorClientInformation
getStatusCode
in interface TopologyConnectorClientInformation
public URL getConnectorUrl()
TopologyConnectorClientInformation
getConnectorUrl
in interface TopologyConnectorClientInformation
public boolean representsLoop()
TopologyConnectorClientInformation
representsLoop
in interface TopologyConnectorClientInformation
public boolean isConnected()
TopologyConnectorClientInformation
isConnected
in interface TopologyConnectorClientInformation
public String getStatusDetails()
TopologyConnectorClientInformation
getStatusDetails
in interface TopologyConnectorClientInformation
public long getLastPingSent()
TopologyConnectorClientInformation
getLastPingSent
in interface TopologyConnectorClientInformation
public int getNextPingDue()
TopologyConnectorClientInformation
getNextPingDue
in interface TopologyConnectorClientInformation
public boolean isAutoStopped()
TopologyConnectorClientInformation
isAutoStopped
in interface TopologyConnectorClientInformation
public String getLastRequestEncoding()
TopologyConnectorClientInformation
getLastRequestEncoding
in interface TopologyConnectorClientInformation
public String getLastResponseEncoding()
TopologyConnectorClientInformation
getLastResponseEncoding
in interface TopologyConnectorClientInformation
public String getRemoteSlingId()
TopologyConnectorClientInformation
getRemoteSlingId
in interface TopologyConnectorClientInformation
public String getId()
TopologyConnectorClientInformation
getId
in interface TopologyConnectorClientInformation
public void disconnect()
Copyright © 2017 The Apache Software Foundation. All rights reserved.