|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.sling.discovery.impl.topology.connector.TopologyConnectorClient
public class TopologyConnectorClient
A topology connector client is used for sending (pinging) a remote topology connector servlet and exchanging announcements with it
Method Summary | |
---|---|
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 |
getLastHeartbeatSent()
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 |
getNextHeartbeatDue()
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
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 getLastHeartbeatSent()
TopologyConnectorClientInformation
getLastHeartbeatSent
in interface TopologyConnectorClientInformation
public int getNextHeartbeatDue()
TopologyConnectorClientInformation
getNextHeartbeatDue
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |