|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindtree.techworks.insight.reporting.jobs.message.DefaultJobMessage
public class DefaultJobMessage
A simple implementation of JobMessage
. All Job
s
support this message type. An instance of this class would contain just a
list of String
messages.
JobMessage
,
Job
,
Serialized FormField Summary |
---|
Fields inherited from interface com.mindtree.techworks.insight.reporting.jobs.message.JobMessage |
---|
ACTION_FILTER, MODE_DAEMON, MODE_INTERACTIVE |
Constructor Summary | |
---|---|
DefaultJobMessage()
Creates a new instance of DefaultJobMessage . |
|
DefaultJobMessage(int action,
short mode)
Creates a new instance of DefaultJobMessage with the mode
and action provided. |
|
DefaultJobMessage(short mode)
Creates a new instance of DefaultJobMessage with the mode
provided. |
Method Summary | |
---|---|
void |
addMessage(java.lang.String message)
Adds a message to the DefaultJobMessage . |
int |
getAction()
Returns the action which caused the message. |
FilterCriteria |
getFilterCriteria()
Returns the criteria that was in use on the action while the message was generated. |
short |
getInsightMode()
Returns the mode in which Insight was running when the message was generated. |
java.lang.String |
getJobMessageType()
Returns the type of the message. |
java.lang.String |
getMessage(int index)
Returns the message at the specified index. |
int |
getMessageCount()
Returns the number of messages in the instance. |
java.util.Iterator |
iterateMessages()
Returns an Iterator for all the messages in the instance. |
void |
setFilterCriteria(FilterCriteria filterCriteria)
Sets the criteria which caused the message. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultJobMessage()
DefaultJobMessage
. Defaults the
action to ACTION_FILTER
and the mode to
MODE_INTERACTIVE
.
public DefaultJobMessage(short mode)
DefaultJobMessage
with the mode
provided. Defaults the action to ACTION_FILTER
.
mode
- The mode in which Insight is running.public DefaultJobMessage(int action, short mode)
DefaultJobMessage
with the mode
and action provided.
action
- The action which caused the message.mode
- The mode in which Insight is running.Method Detail |
---|
public java.lang.String getJobMessageType()
JobMessage
JobMessage
class.
getJobMessageType
in interface JobMessage
JobMessage.getJobMessageType()
public int getAction()
JobMessage
getAction
in interface JobMessage
JobMessage.getAction()
public FilterCriteria getFilterCriteria()
JobMessage
getFilterCriteria
in interface JobMessage
JobMessage.getFilterCriteria()
public short getInsightMode()
JobMessage
getInsightMode
in interface JobMessage
JobMessage.getInsightMode()
public void setFilterCriteria(FilterCriteria filterCriteria)
filterCriteria
- The criteria executed to get the message.public void addMessage(java.lang.String message)
DefaultJobMessage
.
message
- The message to be added.public java.util.Iterator iterateMessages()
Iterator
for all the messages in the instance.
public int getMessageCount()
public java.lang.String getMessage(int index)
index
- The index at which the message is required.
java.lang.ArrayIndexOutOfBoundsException
- If there is no message at the specified index.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |