nl.lxtreme.ols.tool.base
Class TaskExecutionServiceTracker

java.lang.Object
  extended by nl.lxtreme.ols.tool.base.TaskExecutionServiceTracker
All Implemented Interfaces:
nl.lxtreme.ols.api.task.TaskExecutionService

public class TaskExecutionServiceTracker
extends Object
implements nl.lxtreme.ols.api.task.TaskExecutionService

Provides a service tracker for TaskExecutionServices.


Constructor Summary
TaskExecutionServiceTracker(org.osgi.framework.BundleContext aContext)
          Creates a new TaskExecutionServiceTracker instance.
 
Method Summary
 void close()
          Closes this task execution service.
<RESULT_TYPE>
Future<RESULT_TYPE>
execute(nl.lxtreme.ols.api.task.Task<RESULT_TYPE> aTask)
          
 void open()
          Opens this task execution service for business.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TaskExecutionServiceTracker

public TaskExecutionServiceTracker(org.osgi.framework.BundleContext aContext)
Creates a new TaskExecutionServiceTracker instance.

Parameters:
aContext - the bundle context to use, cannot be null.
Method Detail

close

public void close()
Closes this task execution service.


execute

public <RESULT_TYPE> Future<RESULT_TYPE> execute(nl.lxtreme.ols.api.task.Task<RESULT_TYPE> aTask)

Specified by:
execute in interface nl.lxtreme.ols.api.task.TaskExecutionService

open

public void open()
Opens this task execution service for business.



Copyright © 2012 L'Xtreme IT consultancy. All Rights Reserved.