|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjpl.mipl.mdms.web.domain.ChannelListener
public class ChannelListener
Purpose: Channel listener that listens specifically for server metric information and passes that information to the domain model
Copyright 2006, California Institute of Technology. ALL RIGHTS RESERVED. U.S. Government Sponsorship acknowledge. 2006.
============================================================================ Modification History : ---------------------- Date Who What ---------------------------------------------------------------------------- 08/11/2006 Nick Initial Release ============================================================================
| Constructor Summary | |
|---|---|
ChannelListener(DomainModel domainModel)
Constructor |
|
| Method Summary | |
|---|---|
protected boolean |
isConnectionOpcode(AgentOpcode opcode)
Examines opcode to determine if associated message is connection related |
protected void |
processMessage(String msg)
Processes string messages received from the channel |
void |
receive(Serializable msg)
This method gets called when a message is braodcasted on the Channel. |
void |
viewAccepted(String view)
Empty implementation |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ChannelListener(DomainModel domainModel)
domainModel - Instance of domain model that will be updated
with new metrics retrieved from incoming messages| Method Detail |
|---|
public void receive(Serializable msg)
receive in interface MessageListenermsg - the message placed on the channelMessageListener.receive(java.io.Serializable)protected void processMessage(String msg)
msg - String representation of messageprotected boolean isConnectionOpcode(AgentOpcode opcode)
opcode - Agent Opcode
public void viewAccepted(String view)
viewAccepted in interface MessageListenerview - the string representation of the view.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||