|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.porttypes.GCUBEPortType
public abstract class GCUBEPortType
Partial implementation for port-types of gCube Services. It ensures correct initialisation of the service and defines callbacks for lifetime events of Running Instances.
| Field Summary | |
|---|---|
protected boolean |
initialized
Marks the initialisation of the port-type. |
protected GCUBELog |
logger
Object logger. |
| Constructor Summary | |
|---|---|
GCUBEPortType()
|
|
| Method Summary | |
|---|---|
void |
destroy()
Invoked at container shutdown if the port-type has Application scope,
after processing each request if the port-type has Request scope, and
at the end of each session if the port-type has Session scope. |
protected abstract GCUBEServiceContext |
getServiceContext()
Returns the service context. |
void |
init(Object arg0)
Invoked at container startup if the port-type has Application scope,
before processing each request if the port-type has Request scope, and
at the beginning of each session if the port-type has Session scope. |
protected void |
onFailure()
Invoked when the Running Instance fails. |
protected void |
onInitialisation()
Invoked when the Running Instance has completed initialisation. |
protected void |
onReady()
Invoked when the Running Instance is ready to operate. |
protected void |
onStateChange()
Invoked upon a change to the RI's stateful resources, if any. |
protected void |
onUpdate()
Invoked when the Runnning Instance is updated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final GCUBELog logger
protected boolean initialized
| Constructor Detail |
|---|
public GCUBEPortType()
| Method Detail |
|---|
public final void init(Object arg0)
throws javax.xml.rpc.ServiceException
Application scope,
before processing each request if the port-type has Request scope, and
at the beginning of each session if the port-type has Session scope.
Triggers the initialisation of the service.
init in interface javax.xml.rpc.server.ServiceLifecyclejavax.xml.rpc.ServiceException - if the prto-type could not be initialisedprotected abstract GCUBEServiceContext getServiceContext()
public void destroy()
Application scope,
after processing each request if the port-type has Request scope, and
at the end of each session if the port-type has Session scope.
By default, it does nothing. If required, override to free system resources.
destroy in interface javax.xml.rpc.server.ServiceLifecycle
protected void onInitialisation()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.
protected void onReady()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.
protected void onFailure()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.
protected void onUpdate()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.
protected void onStateChange()
throws Exception
Exception - if the callback did not complete successfully and the service ought to fail as a result.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||