|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.monitoring.GCUBEMessage
public abstract class GCUBEMessage
This class models a base GCUBEMessage
| Nested Class Summary | |
|---|---|
static class |
GCUBEMessage.ResultType
Result types |
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
GCUBEMessage()
Constructor |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String DATE_FORMAT_NOW
protected String topic
protected String sourceGHN
protected String time
protected String scope
protected GCUBEMessage.ResultType result
| Constructor Detail |
|---|
public GCUBEMessage()
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||