|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.contexts.service.Consumer
public class Consumer
Partial implemention of GCUBEConsumer of RI lifetime events.
| Field Summary | |
|---|---|
protected GCUBELog |
consumerLogger
Object logger. |
| Constructor Summary | |
|---|---|
Consumer()
|
|
| Method Summary | ||
|---|---|---|
GCUBEServiceContext.RILifetimeTopic[] |
getTopics()
Returns the list of topics handled by the consumer. |
|
|
onEvent(GCUBEEvent<T1,P1>... events)
Receives RI lifetime events and dispatches them to topic-specific callbacks. |
|
protected void |
onGHNShutdown(GCUBEServiceContext.RILifetimeEvent event)
gHN shutdown even. |
|
protected void |
onRIDeployed(GCUBEServiceContext.RILifetimeEvent event)
Deployment event callback. |
|
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. |
|
void |
setLogger(GCUBELog logger)
Sets the instance logger. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GCUBELog consumerLogger
| Constructor Detail |
|---|
public Consumer()
| Method Detail |
|---|
public void setLogger(GCUBELog logger)
logger - the logger;public <T1 extends GCUBEServiceContext.RILifetimeTopic,P1 extends GCUBEServiceContext> void onEvent(GCUBEEvent<T1,P1>... events)
onEvent in interface GCUBEConsumer<GCUBEServiceContext.RILifetimeTopic,GCUBEServiceContext>T1 - the topic type.P1 - the payload type.events - the events.public GCUBEServiceContext.RILifetimeTopic[] getTopics()
protected void onGHNShutdown(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
protected void onRIDeployed(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
protected void onRIInitialised(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
protected void onRIReady(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
protected void onRIFailed(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
protected void onRIUpdated(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
protected void onRIStateChange(GCUBEServiceContext.RILifetimeEvent event)
throws Exception
event - the event.
Exception - if the callback could not complete successfully.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||