org.ceno.tracker.cli.internal
Class CachedCenoMessagesService

java.lang.Object
  extended by org.ceno.tracker.cli.internal.CachedCenoMessagesService
All Implemented Interfaces:
ICenoMessagesService, IMessagesObserver, IObserver<Messages>

public class CachedCenoMessagesService
extends java.lang.Object
implements ICenoMessagesService, IMessagesObserver

Since:
0.0.2
Author:
Andre Albert <andre.albert82@googlemail.com>

Constructor Summary
CachedCenoMessagesService()
           
 
Method Summary
 java.util.Collection<BroadcastMessage> findBroadcastMessages()
          
 java.util.Collection<MulticastMessage> findMulticastMessages(Resource r)
          
 java.util.Collection<UnicastMessage> findUnicastMessages(Developer d)
          
 java.util.Collection<MessageContext> getMessageContexts()
          
 void update(Messages states)
          Invoked as notify call
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CachedCenoMessagesService

public CachedCenoMessagesService()
Method Detail

update

public void update(Messages states)
Invoked as notify call

Specified by:
update in interface IObserver<Messages>

findBroadcastMessages

public java.util.Collection<BroadcastMessage> findBroadcastMessages()

Specified by:
findBroadcastMessages in interface ICenoMessagesService
Returns:
all general public chat messages

findMulticastMessages

public java.util.Collection<MulticastMessage> findMulticastMessages(Resource r)

Specified by:
findMulticastMessages in interface ICenoMessagesService
Parameters:
r - group of the multicast message
Returns:
all Message that refer to a certain resource

findUnicastMessages

public java.util.Collection<UnicastMessage> findUnicastMessages(Developer d)

Specified by:
findUnicastMessages in interface ICenoMessagesService
Returns:
all private Messages with a receiver matching the Developer param

getMessageContexts

public java.util.Collection<MessageContext> getMessageContexts()

Specified by:
getMessageContexts in interface ICenoMessagesService
Returns: