org.gcube.datatransfer.common.messaging
Class MessageChecker<MESSAGE extends org.gcube.common.core.monitoring.GCUBEMessage>

java.lang.Object
  extended by org.gcube.datatransfer.common.messaging.MessageChecker<MESSAGE>
Type Parameters:
MESSAGE -

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
           
protected  String subscriberEndpoint
           
 
Constructor Summary
MessageChecker(org.gcube.common.core.scope.GCUBEScope scope, String subscriberEndpoint)
          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

subscriberEndpoint

protected String subscriberEndpoint
Constructor Detail

MessageChecker

public MessageChecker(org.gcube.common.core.scope.GCUBEScope scope,
                      String subscriberEndpoint)
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 © 2013. All Rights Reserved.