org.gcube.data.tm.consumers
Class ActivationRecordConsumer

java.lang.Object
  extended by org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
      extended by org.gcube.data.tm.consumers.ActivationRecordConsumer
All Implemented Interfaces:
org.gcube.common.core.utils.events.GCUBEConsumer<org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationTopic,Object>

public class ActivationRecordConsumer
extends org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer

A ISNotifier.BaseNotificationConsumer of events that relate to activation records in a given scope.

Author:
Fabio Simeoni

Field Summary
 
Fields inherited from class org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
notifications
 
Constructor Summary
ActivationRecordConsumer(org.gcube.common.core.scope.GCUBEScope scope)
          Creates an instance for a given scope.
 
Method Summary
 void onNewActivationRecord(ActivationRecord record)
          Self-stage with the payload of a new activation record that was not broadcasted by this running instance.
 void onNotificationReceived(org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationEvent event)
          
 
Methods inherited from class org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
onEvent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActivationRecordConsumer

public ActivationRecordConsumer(org.gcube.common.core.scope.GCUBEScope scope)
Creates an instance for a given scope.

Parameters:
scope - the scope.
Method Detail

onNotificationReceived

public void onNotificationReceived(org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationEvent event)

Overrides:
onNotificationReceived in class org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer

onNewActivationRecord

public void onNewActivationRecord(ActivationRecord record)
Self-stage with the payload of a new activation record that was not broadcasted by this running instance.

Parameters:
record - the record.


Copyright © 2012. All Rights Reserved.