org.gcube.common.core.contexts
Class GCUBEPortTypeContext.PTConsumer

java.lang.Object
  extended by org.gcube.common.core.contexts.service.Consumer
      extended by org.gcube.common.core.contexts.GCUBEPortTypeContext.PTConsumer
All Implemented Interfaces:
GCUBEConsumer<GCUBEServiceContext.RILifetimeTopic,GCUBEServiceContext>
Enclosing class:
GCUBEPortTypeContext

protected class GCUBEPortTypeContext.PTConsumer
extends Consumer

A Consumer for port-type registration to RI scope removal events.

Author:
Fabio Simeoni (University of Strathclyde)

Field Summary
 
Fields inherited from class org.gcube.common.core.contexts.service.Consumer
consumerLogger
 
Method Summary
protected  void onRIFailed(GCUBEServiceContext.RILifetimeEvent event)
          Failure event callback.
protected  void onRIInitialised(GCUBEServiceContext.RILifetimeEvent event)
          Initialisation event callback.
protected  void onRIReady(GCUBEServiceContext.RILifetimeEvent event)
          Ready event callback.
protected  void onRIStateChange(GCUBEServiceContext.RILifetimeEvent event)
          State change event callback.
protected  void onRIUpdated(GCUBEServiceContext.RILifetimeEvent event)
          Update event callback.
 
Methods inherited from class org.gcube.common.core.contexts.service.Consumer
getTopics, onEvent, onGHNShutdown, onRIDeployed, setLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

onRIInitialised

protected void onRIInitialised(GCUBEServiceContext.RILifetimeEvent event)
                        throws Exception
Initialisation event callback.

Overrides:
onRIInitialised in class Consumer
Parameters:
event - the event.
Throws:
Exception - if the callback could not complete successfully.

onRIReady

protected void onRIReady(GCUBEServiceContext.RILifetimeEvent event)
                  throws Exception
Ready event callback.

Overrides:
onRIReady in class Consumer
Parameters:
event - the event.
Throws:
Exception - if the callback could not complete successfully.

onRIStateChange

protected void onRIStateChange(GCUBEServiceContext.RILifetimeEvent event)
                        throws Exception
State change event callback.

Overrides:
onRIStateChange in class Consumer
Parameters:
event - the event.
Throws:
Exception - if the callback could not complete successfully.

onRIUpdated

protected void onRIUpdated(GCUBEServiceContext.RILifetimeEvent event)
                    throws Exception
Update event callback.

Overrides:
onRIUpdated in class Consumer
Parameters:
event - the event.
Throws:
Exception - if the callback could not complete successfully.

onRIFailed

protected void onRIFailed(GCUBEServiceContext.RILifetimeEvent event)
                   throws Exception
Failure event callback.

Overrides:
onRIFailed in class Consumer
Parameters:
event - the event.
Throws:
Exception - if the callback could not complete successfully.


Copyright © 2012. All Rights Reserved.