public class Consumer extends Object implements GCUBEConsumer<GCUBEServiceContext.RILifetimeTopic,GCUBEServiceContext>
GCUBEConsumer of RI lifetime events.| Modifier and Type | Field and Description |
|---|---|
protected GCUBELog |
consumerLogger
Object logger.
|
| Constructor and Description |
|---|
Consumer() |
| Modifier and Type | Method and Description |
|---|---|
GCUBEServiceContext.RILifetimeTopic[] |
getTopics()
Returns the list of topics handled by the consumer.
|
<T1 extends GCUBEServiceContext.RILifetimeTopic,P1 extends GCUBEServiceContext> |
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.
|
protected GCUBELog consumerLogger
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.Copyright © 2015. All Rights Reserved.