Class NodeConfiguratorImpl
- java.lang.Object
-
- org.opendaylight.openflowplugin.applications.frm.nodeconfigurator.NodeConfiguratorImpl
-
- All Implemented Interfaces:
AutoCloseable,NodeConfigurator
public class NodeConfiguratorImpl extends Object implements NodeConfigurator
-
-
Constructor Summary
Constructors Constructor Description NodeConfiguratorImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()<T> com.google.common.util.concurrent.ListenableFuture<T>enqueueJob(String key, Callable<com.google.common.util.concurrent.ListenableFuture<T>> mainWorker)Enqueues a job in nodeconfigurator.
-
-
-
Method Detail
-
enqueueJob
public <T> com.google.common.util.concurrent.ListenableFuture<T> enqueueJob(String key, Callable<com.google.common.util.concurrent.ListenableFuture<T>> mainWorker)
Description copied from interface:NodeConfiguratorEnqueues a job in nodeconfigurator.- Specified by:
enqueueJobin interfaceNodeConfigurator- Parameters:
key- The job's key. Jobs with the same key are run sequentially. Jobs with different keys are run in parallel.mainWorker- The task that runs for the job.- Returns:
- the result of the enqueued job.
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable
-
-