org.gcube.vremanagement.resourcebroker.impl.support.notifications
Class GHNUpdateSubscriber

java.lang.Object
  extended by org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
      extended by org.gcube.vremanagement.resourcebroker.impl.support.notifications.GHNUpdateSubscriber
All Implemented Interfaces:
org.gcube.common.core.utils.events.GCUBEConsumer<org.gcube.common.core.informationsystem.notifier.ISNotifier.NotificationTopic,java.lang.Object>

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

Monitors changes applied to the GHNs. It is implemented through the subscription to events regarding GHN modifications. Starts once the GHNReservationHandler accesses to the list of GHN registered for a new scope. There is one handler for each scope of GHN.

Author:
Daniele Strollo (ISTI-CNR)

Field Summary
 
Fields inherited from class org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
notifications
 
Constructor Summary
GHNUpdateSubscriber(org.gcube.common.core.scope.GCUBEScope scope, long sleepDelay)
           
 
Method Summary
 org.gcube.common.core.scope.GCUBEScope getScope()
           
 
Methods inherited from class org.gcube.common.core.informationsystem.notifier.ISNotifier.BaseNotificationConsumer
onEvent
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHNUpdateSubscriber

public GHNUpdateSubscriber(org.gcube.common.core.scope.GCUBEScope scope,
                           long sleepDelay)
Method Detail

getScope

public final org.gcube.common.core.scope.GCUBEScope getScope()