|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Thread
com.buglabs.bug.program.UserAppManager
public class UserAppManager
This manager starts user applications. It's designed to be tolerant of applications that fail to start or have other serious problems. The state for each user application is stored in the Configuration Manager.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
static java.lang.String |
BUG_APP_SYSTEM_PROP_KEY
|
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
UserAppManager(BundleContext context,
LogService logService)
|
|
| Method Summary | |
|---|---|
void |
addApplication(java.lang.String filePath)
|
void |
clearState()
Clears any knowledge of existing user applications. |
Bundle[] |
getInstalledBundles()
Returns an array of bundles that have been installed since the last time getInstalledBundles() was run. |
protected void |
initialize()
Load the state of the manager from CM. |
void |
removeApplication(java.lang.String location)
Removes an application from the User App Storage location. |
void |
run()
|
void |
shutdown()
|
| 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, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String BUG_APP_SYSTEM_PROP_KEY
| Constructor Detail |
|---|
public UserAppManager(BundleContext context,
LogService logService)
throws java.io.IOException
java.io.IOException| Method Detail |
|---|
public void addApplication(java.lang.String filePath)
throws java.io.IOException
addApplication in interface IUserAppManagerjava.io.IOExceptionpublic void run()
run in interface IUserAppManagerrun in interface java.lang.Runnablerun in class java.lang.Thread
protected void initialize()
throws java.io.IOException
java.io.IOExceptionpublic void shutdown()
shutdown in interface IUserAppManagerpublic void clearState()
IUserAppManager
clearState in interface IUserAppManager
public void removeApplication(java.lang.String location)
throws java.io.IOException
IUserAppManager
removeApplication in interface IUserAppManagerjava.io.IOExceptionpublic Bundle[] getInstalledBundles()
IUserAppManagergetInstalledBundles() was run. Clears the list afterwards.
getInstalledBundles in interface IUserAppManager
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||