public abstract class BaseISPublisherHandler extends Object implements ISPublisherHandler
ISPublisherHandler| Modifier and Type | Field and Description |
|---|---|
protected static org.gcube.common.core.utils.logging.GCUBELog |
logger |
| Constructor and Description |
|---|
BaseISPublisherHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute()
Executes the handler
|
Future<?> |
getFutureTask()
Gets the
Future task that is currently executing the handler (if any) |
abstract String |
getResourceID()
Gets the identifier of the resource managed by the handler
|
void |
run() |
void |
setFutureTask(Future<?> future)
The
Future task that is currently executing the handler (if any) |
protected abstract void |
submitRequest()
Submits the request for changing the resource
|
public void execute()
throws Exception
execute in interface ISPublisherHandlerException - if an error occurs during the execution of the handlerprotected abstract void submitRequest()
throws Exception
Exceptionpublic abstract String getResourceID()
getResourceID in interface ISPublisherHandlerpublic Future<?> getFutureTask()
Future task that is currently executing the handler (if any)getFutureTask in interface ISPublisherHandlerpublic void setFutureTask(Future<?> future)
Future task that is currently executing the handler (if any)setFutureTask in interface ISPublisherHandlerfuture - the future taskCopyright © 2017. All Rights Reserved.