org.gcube.messaging.common.consumer
Class MessageChecker<MESSAGE extends GCUBEMessage>

java.lang.Object
  extended by org.gcube.messaging.common.consumer.MessageChecker<MESSAGE>
Type Parameters:
MESSAGE -
Direct Known Subclasses:
GHNMessageChecker, NodeAccountingMessageChecker, PortalAccountingMessageChecker, RIMessageChecker, SystemAccountingMessageChecker

public abstract class MessageChecker<MESSAGE extends GCUBEMessage>
extends java.lang.Object

Author:
Andrea Manzi(CERN)

Constructor Summary
MessageChecker(GCUBEScope scope)
          create a messageChecker for the given scope
 
Method Summary
abstract  void check(MESSAGE msg)
          Check the incoming message
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageChecker

public MessageChecker(GCUBEScope scope)
create a messageChecker for the given scope

Parameters:
scope - the scope
Method Detail

check

public abstract void check(MESSAGE msg)
                    throws java.lang.Exception
Check the incoming message

Parameters:
msg - the message
Throws:
java.lang.Exception - exception