org.fosstrak.capturingapp.util
Class CaptureAppWorker

java.lang.Object
  extended by org.fosstrak.capturingapp.util.CaptureAppWorker

public class CaptureAppWorker
extends java.lang.Object

tiny helper to execute a capture application and at the same time maintain a handle to it.

Author:
sawielan

Constructor Summary
CaptureAppWorker(java.lang.String identifier, CaptureApp cap)
          creates a new worker.
 
Method Summary
 CaptureApp getCaptureApp()
           
 java.lang.String getIdentifier()
           
 void start()
          start the execution of the worker.
 void stop()
          stop the execution of the worker.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CaptureAppWorker

public CaptureAppWorker(java.lang.String identifier,
                        CaptureApp cap)
creates a new worker.

Parameters:
identifier - an identifier for this worker/capture application.
cap - a handle to the executor service running the capture application.
Method Detail

start

public void start()
start the execution of the worker.


stop

public void stop()
stop the execution of the worker.


getCaptureApp

public CaptureApp getCaptureApp()
Returns:
a handle to the capture application.

getIdentifier

public final java.lang.String getIdentifier()
Returns:
the identifier for this worker.


Copyright © 2009. All Rights Reserved.