public class StandaloneLCCore extends Object implements LCCore.Environment
| Constructor and Description |
|---|
StandaloneLCCore()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Application app)
Add an application.
|
void |
closed(AsyncCloseable<?> c)
Signal a resource has been closed and do not need to be closed anymore.
|
void |
closed(Closeable c)
Signal a resource has been closed and do not need to be closed anymore.
|
Application |
getApplication()
Get the application associated with the calling thread.
|
LibrariesManager |
getSystemLibraries()
Return the libraries manager.
|
Logger |
getSystemLogger(String name)
Return a system logger, that may be used during initialization of the environment.
|
boolean |
isStopping()
Return true if the environment is stopping.
|
void |
setCPUThreads(int nbThreads)
Set the number of CPU threads to use by multi-threading system.
|
void |
setDrivesProvider(DrivesTaskManager.DrivesProvider provider)
Set the drives provider to use by multi-threading system.
|
static void |
setLogThreadingInterval(long interval) |
void |
setUnmanagedThreads(int nbThreads)
Set the number of threads to use by multi-threading system for unmanaged tasks.
|
void |
start()
Initialization.
|
void |
stop()
Stop the environment and close all applications.
|
void |
toClose(AsyncCloseable<?> c)
Add a resource to close when closing the environment, the resource must be application independent.
|
void |
toClose(Closeable c)
Add a resource to close when closing the environment, the resource must be application independent.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMemoryLogger, getThreadingLoggerpublic void add(Application app)
LCCore.Environmentadd in interface LCCore.Environmentpublic void setCPUThreads(int nbThreads)
public void setUnmanagedThreads(int nbThreads)
public void setDrivesProvider(DrivesTaskManager.DrivesProvider provider)
public static void setLogThreadingInterval(long interval)
public void start()
LCCore.Environmentstart in interface LCCore.Environmentpublic Application getApplication()
LCCore.EnvironmentgetApplication in interface LCCore.Environmentpublic Logger getSystemLogger(String name)
LCCore.EnvironmentgetSystemLogger in interface LCCore.Environmentpublic LibrariesManager getSystemLibraries()
LCCore.EnvironmentgetSystemLibraries in interface LCCore.Environmentpublic void toClose(Closeable c)
LCCore.EnvironmenttoClose in interface LCCore.Environmentpublic void toClose(AsyncCloseable<?> c)
LCCore.EnvironmenttoClose in interface LCCore.Environmentpublic void closed(Closeable c)
LCCore.Environmentclosed in interface LCCore.Environmentpublic void closed(AsyncCloseable<?> c)
LCCore.Environmentclosed in interface LCCore.Environmentpublic boolean isStopping()
LCCore.EnvironmentisStopping in interface LCCore.Environmentpublic void stop()
LCCore.Environmentstop in interface LCCore.EnvironmentCopyright © 2019. All rights reserved.