public class GWTPollResult extends Object implements Serializable, com.google.gwt.user.client.rpc.IsSerializable, Comparable<GWTPollResult>
GWTPollResult class.
Constructor and Description |
---|
GWTPollResult()
Constructor for GWTPollResult.
|
GWTPollResult(String status,
Date timestamp,
String reason,
Double responseTime)
Constructor for GWTPollResult.
|
Modifier and Type | Method and Description |
---|---|
static GWTPollResult |
available(int responseTime)
available
|
int |
compareTo(GWTPollResult that)
compareTo
|
static GWTPollResult |
down(String reason)
down
|
String |
getReason()
getReason
|
Double |
getResponseTime()
getResponseTime
|
String |
getStatus()
getStatus
|
Date |
getTimestamp()
getTimestamp
|
boolean |
isDown()
isDown
|
void |
setReason(String reason)
setReason
|
void |
setResponseTime(Double responseTime)
setResponseTime
|
void |
setStatus(String status)
setStatus
|
void |
setTimestamp(Date timestamp)
setTimestamp
|
String |
toString()
toString
|
public void setResponseTime(Double responseTime)
setResponseTime
responseTime
- a Double
object.public void setTimestamp(Date timestamp)
setTimestamp
timestamp
- a Date
object.public boolean isDown()
isDown
public static GWTPollResult available(int responseTime)
available
responseTime
- a int.GWTPollResult
object.public static GWTPollResult down(String reason)
down
reason
- a String
object.GWTPollResult
object.public String toString()
toString
public int compareTo(GWTPollResult that)
compareTo
compareTo
in interface Comparable<GWTPollResult>
that
- a GWTPollResult
object.Copyright © 2016. All rights reserved.