Brooklyn

brooklyn.event.feed.http
[Java] Class HttpPollValue

java.lang.Object
  brooklyn.event.feed.http.HttpPollValue

public class HttpPollValue

Constructor Summary
HttpPollValue(HttpResponse response)

@deprecated since 0.5.0 caller should supply start time for accurate measurement

HttpPollValue(HttpResponse response, long startTime)

HttpPollValue(int responseCode, java.util.Map headers, byte[] content)

@deprecated since 0.5.0 caller should supply start time for accurate measurement

HttpPollValue(int responseCode, java.util.Map headers, byte[] content, long startTime, long durationMillisOfFirstResponse, long durationMillisOfFullContent)

 
Method Summary
byte[] getContent()

java.util.Map getHeaderLists()

long getLatencyFirstResponse()

returns latency, in milliseconds, before response started coming in

long getLatencyFullContent()

returns latency, in milliseconds, if value was initialized with a start time

int getResponseCode()

long getStartTime()

returns the timestamp (millis since 1970) when this request was started

 
Methods inherited from class java.lang.Object
java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll()
 

Constructor Detail

HttpPollValue

@Deprecated
public HttpPollValue(HttpResponse response)
deprecated:
since 0.5.0 caller should supply start time for accurate measurement


HttpPollValue

public HttpPollValue(HttpResponse response, long startTime)


HttpPollValue

public HttpPollValue(int responseCode, java.util.Map headers, byte[] content)
deprecated:
since 0.5.0 caller should supply start time for accurate measurement


HttpPollValue

public HttpPollValue(int responseCode, java.util.Map headers, byte[] content, long startTime, long durationMillisOfFirstResponse, long durationMillisOfFullContent)


 
Method Detail

getContent

public byte[] getContent()


getHeaderLists

public java.util.Map getHeaderLists()


getLatencyFirstResponse

public long getLatencyFirstResponse()
returns latency, in milliseconds, before response started coming in


getLatencyFullContent

public long getLatencyFullContent()
returns latency, in milliseconds, if value was initialized with a start time


getResponseCode

public int getResponseCode()


getStartTime

public long getStartTime()
returns the timestamp (millis since 1970) when this request was started


 

Brooklyn Multi-Cloud Application Management Platform
brooklyncentral.github.com. Apache License. © 2012.