org.gcube.common.informationsystem.publisher.impl.registrations.handlers
Interface ISPublisherHandler

All Superinterfaces:
Runnable
All Known Implementing Classes:
BaseISPublisherHandler, CreateResourceHandler, RemoveResourceHandler, UpdateResourceHandler

public interface ISPublisherHandler
extends Runnable

Interface for all registration handlers

Author:
Manuele Simi (ISTI-CNR)

Method Summary
 void execute()
          Executes the handler
 Future<?> getFutureTask()
          Gets the Future task that is currently executing the handler (if any)
 String getResourceID()
          Gets the identifier of the resource managed by the handler
 void setFutureTask(Future<?> future)
          The Future task that is currently executing the handler (if any)
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

getResourceID

String getResourceID()
Gets the identifier of the resource managed by the handler

Returns:
the identifier

execute

void execute()
             throws Exception
Executes the handler

Throws:
Exception - if an error occurs during the execution of the handler

setFutureTask

void setFutureTask(Future<?> future)
The Future task that is currently executing the handler (if any)

Parameters:
future - the future task

getFutureTask

Future<?> getFutureTask()
Gets the Future task that is currently executing the handler (if any)

Returns:
the future task


Copyright © 2013. All Rights Reserved.