org.gcube.common.core.contexts.ghn
Class GHNConsumer

java.lang.Object
  extended by org.gcube.common.core.contexts.ghn.GHNConsumer
All Implemented Interfaces:
GCUBEConsumer<Events.GHNTopic,Object>

public class GHNConsumer
extends Object
implements GCUBEConsumer<Events.GHNTopic,Object>

Base implementation of a GCUBEConsumer of GHNEvents.

Author:
Fabio Simeoni (University of Strathclyde)

Constructor Summary
GHNConsumer()
           
 
Method Summary
<T1 extends Events.GHNTopic,P1>
void
onEvent(GCUBEEvent<T1,P1>... events)
          Receives RI lifetime events and dispatches them to topic-specific callbacks.
protected  void onGHNReady(Events.GHNLifeTimeEvent event)
          Ready event callback.
protected  void onGHNShutdown(Events.GHNLifeTimeEvent event)
          Shutdown event callback.
protected  void onGHNUpdated(Events.GHNLifeTimeEvent event)
          Update event callback.
protected  void onRIRegistration(Events.GHNRIRegistrationEvent event)
          RIRegistration event callback.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GHNConsumer

public GHNConsumer()
Method Detail

onEvent

public <T1 extends Events.GHNTopic,P1> void onEvent(GCUBEEvent<T1,P1>... events)
Receives RI lifetime events and dispatches them to topic-specific callbacks.

Specified by:
onEvent in interface GCUBEConsumer<Events.GHNTopic,Object>
Type Parameters:
T1 - the topic type.
P1 - the payload type.
Parameters:
events - the events.

onRIRegistration

protected void onRIRegistration(Events.GHNRIRegistrationEvent event)
RIRegistration event callback.

Parameters:
event - the event.

onGHNUpdated

protected void onGHNUpdated(Events.GHNLifeTimeEvent event)
Update event callback.

Parameters:
event - the event.

onGHNShutdown

protected void onGHNShutdown(Events.GHNLifeTimeEvent event)
Shutdown event callback.

Parameters:
event - the event.

onGHNReady

protected void onGHNReady(Events.GHNLifeTimeEvent event)
Ready event callback.

Parameters:
event - the event.


Copyright © 2012. All Rights Reserved.