|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.common.core.utils.handlers.GCUBEHandler<T>
org.gcube.common.core.utils.handlers.GCUBEHandlerConnector<T,PREVIOUS,NEXT>
PREVIOUS - the type of component handler which immediately precedes the connector.NEXT - the type of component handler which immediately follows the connector.public abstract class GCUBEHandlerConnector<T,PREVIOUS extends GCUBEIHandler<? extends T>,NEXT extends GCUBEIHandler<? extends T>>
Abstract implementation of component handlers used to connect the output of those which immediately precede them with the input of those which immediately follow them.
| Field Summary | |
|---|---|
protected NEXT |
next
The component handler which follows the connector. |
protected PREVIOUS |
previous
The component handler which precedes the connector. |
| Fields inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler |
|---|
handled, logger, producer |
| Constructor Summary | |
|---|---|
GCUBEHandlerConnector()
|
|
| Method Summary | |
|---|---|
abstract void |
connect()
Invoked by { run(), defines the connections between the {previous and the {next component handlers. |
NEXT |
getNext()
Return the component handler which follows the connector. |
PREVIOUS |
getPrevious()
Return the component handler which precedes the connector. |
void |
run()
Executes the task implemented by the handler. |
| Methods inherited from class org.gcube.common.core.utils.handlers.GCUBEHandler |
|---|
clearBlackboard, getBlackboard, getHandled, getId, getLogger, getName, getScopeManager, getSecurityManager, getState, notify, setBlackboard, setHandled, setLogger, setName, setScopeManager, setSecurityManager, setState, subscribe, undo, unsubscribe |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected PREVIOUS extends GCUBEIHandler<? extends T> previous
protected NEXT extends GCUBEIHandler<? extends T> next
| Constructor Detail |
|---|
public GCUBEHandlerConnector()
| Method Detail |
|---|
public PREVIOUS getPrevious()
public NEXT getNext()
public final void run()
throws Exception
run in interface GCUBEIHandler<T>run in class GCUBEHandler<T>Exception - if the execution of the task does not complete normally.
public abstract void connect()
throws Exception
run(), defines the connections between the {previous and the {next component handlers.
Implement to define specific connections.
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||