public abstract class GCUBEMessage extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
GCUBEMessage.ResultType
Result types
|
Modifier and Type | Field and Description |
---|---|
static String |
DATE_FORMAT_NOW |
protected GCUBEMessage.ResultType |
result
Result of the Monitoring message
|
protected String |
scope |
protected String |
sourceGHN |
protected String |
time |
protected String |
topic |
Constructor and Description |
---|
GCUBEMessage()
Constructor
|
Modifier and Type | Method and Description |
---|---|
GCUBEMessage.ResultType |
getResult()
get the Result of the Monitoring message
|
String |
getScope()
Get the message scope
|
String |
getSourceGHN()
Get the GHN name source of the message
|
String |
getTime()
Get the time the message has been created
|
String |
getTopic()
Get the message topic name
|
void |
setResult(GCUBEMessage.ResultType result)
Set the result of the monitoring message
|
void |
setScope(String scope)
Set the message scope
|
void |
setSourceGHN(String sourceGHN)
Set the GHNName source of the message
|
void |
setTime(String time)
Set the message creation time
|
void |
setTimeNow()
Set message creation time to the current time
|
void |
setTopic(String topic)
Set the message topic name
|
public static final String DATE_FORMAT_NOW
protected String topic
protected String sourceGHN
protected String time
protected String scope
protected GCUBEMessage.ResultType result
public String getTime()
public void setScope(String scope)
scope
- the message scope to setpublic String getScope()
public void setTime(String time)
time
- String representation of the timepublic GCUBEMessage.ResultType getResult()
public void setResult(GCUBEMessage.ResultType result)
result
- the resultpublic String getSourceGHN()
public void setSourceGHN(String sourceGHN)
sourceGHN
- the source GHNpublic String getTopic()
public void setTopic(String topic)
topic
- the topic namepublic void setTimeNow()
Copyright © 2015. All Rights Reserved.