|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
de.unikassel.android.sdcframework.util.AbstractWorkerThread
de.unikassel.android.sdcframework.util.AbstractAsynchrounousSampleObserver
public abstract class AbstractAsynchrounousSampleObserver
Abstract base class for asynchronous working sample observer components,
which do depend on the service life cycle.
Main features:
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
Thread.State, Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
protected EventCollector<Sample> |
collector
The internal sample collector to store the observed events |
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
---|---|
AbstractAsynchrounousSampleObserver()
Constructor |
Method Summary | |
---|---|
protected void |
doCleanUp()
The clean up method executed on termination |
EventObserver<Sample> |
getObserver()
Getter for the sample observer |
void |
onCreate(Context applicationContext)
Creation method |
void |
onDestroy(Context applicationContext)
Destroy method |
void |
onPause(Context applicationContext)
Pause method |
void |
onResume(Context applicationContext)
Resume method |
Methods inherited from class de.unikassel.android.sdcframework.util.AbstractWorkerThread |
---|
doTerminate, doWork, hasTerminated, isLogging, isWorking, logMessage, run, setLogging, start, startWork, stopWork |
Methods inherited from class java.lang.Thread |
---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface de.unikassel.android.sdcframework.util.facade.WorkerThread |
---|
doTerminate, hasTerminated, isLogging, isWorking, setLogging, startWork, stopWork |
Field Detail |
---|
protected final EventCollector<Sample> collector
Constructor Detail |
---|
public AbstractAsynchrounousSampleObserver()
Method Detail |
---|
public EventObserver<Sample> getObserver()
DelegatingSampleObserver
getObserver
in interface DelegatingSampleObserver
protected void doCleanUp()
AbstractWorkerThread
doCleanUp
in class AbstractWorkerThread
public void onCreate(Context applicationContext)
LifeCycleObject
onCreate
in interface LifeCycleObject
applicationContext
- the application contextpublic void onResume(Context applicationContext)
LifeCycleObject
onResume
in interface LifeCycleObject
applicationContext
- the application contextpublic void onPause(Context applicationContext)
LifeCycleObject
onPause
in interface LifeCycleObject
applicationContext
- the application contextpublic void onDestroy(Context applicationContext)
LifeCycleObject
onDestroy
in interface LifeCycleObject
applicationContext
- the application context
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |