|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.objectweb.petals.tools.webadmin.bo.MessageExchange
public class MessageExchange
represents an exchange : a list of Message objects
Constructor Summary | |
---|---|
MessageExchange(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> exchange)
Creates a new MessageExchange with a list of Map |
|
MessageExchange(Message msg)
|
Method Summary | |
---|---|
void |
addmessage(Message msg)
|
java.util.List<Message> |
getByTime(long timestamp)
Get messages from the exchange with timestamp corresponding to the second of a given timestamp |
long |
getEndTime()
|
java.lang.String |
getExchangeId()
Returns the id of the Exchange. |
java.lang.String |
getMep()
|
java.util.Map<java.lang.String,Message> |
getMessages()
|
long |
getNbMsgByComponent(java.lang.String compoName)
Returns the number of messages in the exchange concerning a component |
long |
getStartTime()
|
java.lang.String |
getStatus()
|
boolean |
hasMsgForComponent(java.lang.String compoName)
Indicates if the MessageExchange has messages concerning a component |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MessageExchange(java.util.List<java.util.Map<java.lang.String,java.lang.Object>> exchange)
exchange
- a bulk list representation of an exchangepublic MessageExchange(Message msg)
Method Detail |
---|
public java.util.List<Message> getByTime(long timestamp)
timestamp
- timestamp of the second wanted
public java.lang.String getExchangeId()
public long getNbMsgByComponent(java.lang.String compoName)
compoName
- the name of the component
public boolean hasMsgForComponent(java.lang.String compoName)
compoName
- the component searched name
public long getEndTime()
public java.lang.String getMep()
public java.util.Map<java.lang.String,Message> getMessages()
public long getStartTime()
public java.lang.String getStatus()
public void addmessage(Message msg)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |