org.gcube.messaging.common.consumer
Class MessageChecker<MESSAGE extends org.gcube.common.core.monitoring.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 org.gcube.common.core.monitoring.GCUBEMessage>
extends Object

Author:
Andrea Manzi(CERN)

Field Summary
protected  org.gcube.common.core.scope.GCUBEScope scope
           
 
Constructor Summary
MessageChecker(org.gcube.common.core.scope.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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scope

protected org.gcube.common.core.scope.GCUBEScope scope
Constructor Detail

MessageChecker

public MessageChecker(org.gcube.common.core.scope.GCUBEScope scope)
create a messageChecker for the given scope

Parameters:
scope - the scope
Method Detail

check

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

Parameters:
msg - the message
Throws:
Exception - exception


Copyright © 2014. All Rights Reserved.