| Package | Description |
|---|---|
| net.lecousin.framework.application |
Main classes to initialize this library: LCCore and Application.
|
| net.lecousin.framework.application.launcher |
Application launcher.
|
| net.lecousin.framework.application.libraries.artifacts |
Libraries management using group id, artifact id and version.
|
| net.lecousin.framework.concurrent.tasks.drives |
Tasks on files or directories.
|
| net.lecousin.framework.io |
New java Input/Output model adding more flexibility and asynchronous operations.
|
| net.lecousin.framework.io.util |
Utility classes for IO.
|
| net.lecousin.framework.progress |
Progression of asynchronous or background works.
|
| net.lecousin.framework.util |
Utility classes.
|
| Modifier and Type | Class and Description |
|---|---|
class |
SplashScreen
Splash screen that may be used while loading an application.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<Exception> |
ApplicationBootstrap.start(Application app,
WorkProgress progress)
Start the application, and return a synchronization point that will be unblocked when the application
is asked to shutdown.
|
| Modifier and Type | Method and Description |
|---|---|
AsyncSupplier<LoadedLibrary,LibraryManagementException> |
DynamicLibrariesManager.loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work) |
| Modifier and Type | Method and Description |
|---|---|
AsyncSupplier<LoadedLibrary,LibraryManagementException> |
ArtifactsLibrariesManager.loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work)
Load a new library.
|
| Modifier and Type | Field and Description |
|---|---|
protected WorkProgress |
DirectoryReader.progress |
| Modifier and Type | Method and Description |
|---|---|
static long |
RemoveDirectoryContentTask.deleteDirectory(File dir,
WorkProgress progress,
long work,
boolean calculateSize)
Remove a directory with all its content.
|
| Constructor and Description |
|---|
DirectoryReader(File dir,
byte priority,
DirectoryReader.Request request,
WorkProgress progress)
Constructor.
|
DirectoryReader(TaskManager taskManager,
File dir,
byte priority,
DirectoryReader.Request request,
WorkProgress progress)
Constructor.
|
RemoveDirectoryContentTask(File dir,
WorkProgress progress,
long work,
byte priority,
boolean calculateSize)
Constructor.
|
RemoveDirectoryTask(File dir,
WorkProgress progress,
long work,
String progressSubText,
byte priority,
boolean calculateSize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static AsyncSupplier<Long,IOException> |
IOUtil.copy(File src,
File dst,
byte priority,
long knownSize,
WorkProgress progress,
long work,
IAsync<?> startOn)
Copy a file.
|
static AsyncSupplier<Long,IOException> |
IOUtil.copy(IO.Readable input,
IO.Writable output,
long size,
boolean closeIOs,
WorkProgress progress,
long work)
Copy from a Readable to a Writable.
|
| Modifier and Type | Field and Description |
|---|---|
protected WorkProgress |
ReadableWithProgress.progress |
| Constructor and Description |
|---|
ReadableWithProgress(IO.Readable io,
long size,
WorkProgress progress,
long work)
Constructor.
|
| Modifier and Type | Class and Description |
|---|---|
class |
FakeWorkProgress
Implementation of WorkProgress without really increasing any progression.
|
class |
MultiTaskProgress
Implementation of WorkProgress, composed of sub-WorkProgress.
|
class |
SubWorkProgress
Implementation of WorkProgress for a sub-aork, that will transmit its progression to its parent.
|
class |
WorkProgressImpl
Default implementation of a WorkProgress.
|
| Modifier and Type | Field and Description |
|---|---|
protected WorkProgress |
WorkProgress.MultiTask.SubTask.Wrapper.progress |
| Modifier and Type | Method and Description |
|---|---|
WorkProgress |
MultiTaskProgress.createTaskProgress(long amount,
String text)
Create a sub-progress for the given amount of work (this amount is added to the total amount to be done).
|
WorkProgress |
WorkProgress.MultiTask.SubTask.getProgress()
Progress of this sub-task.
|
WorkProgress |
WorkProgress.MultiTask.SubTask.Wrapper.getProgress() |
WorkProgress |
SubWorkProgress.getProgress() |
| Modifier and Type | Method and Description |
|---|---|
WorkProgress.MultiTask.SubTask |
WorkProgress.MultiTask.addTask(WorkProgress task,
long amount)
Add the given sub-progress as a sub-task for the given amount of work (this amount is added to the total amount to be done).
|
WorkProgress.MultiTask.SubTask |
MultiTaskProgress.addTask(WorkProgress task,
long amount) |
static void |
WorkProgress.link(WorkProgress subTask,
WorkProgress progress,
long work)
Once the given sub-task is done, the given amount of work is added to the progress.
|
static void |
WorkProgress.linkTo(WorkProgress progress,
IAsync<?> sp)
Link this WorkProgress with the given synchronization point: once the synchronization point is unblocked,
one of the done, error or cancel method is called.
|
static void |
WorkProgress.linkTo(WorkProgress progress,
Task<?,?> task)
Link this WorkProgress with the given task: once the task is done,
one of the done, error or cancel method is called.
|
static void |
WorkProgressUtil.propagateToParent(WorkProgress subTask,
WorkProgress parentTask,
long amount)
Propagate the progression of a sub-task to a prent.
|
| Constructor and Description |
|---|
SubWorkProgress(WorkProgress parent,
long parentWork,
long amount)
Constructor.
|
SubWorkProgress(WorkProgress parent,
long parentWork,
long amount,
String text)
Constructor.
|
SubWorkProgress(WorkProgress parent,
long parentWork,
long amount,
String text,
String subText)
Constructor.
|
Wrapper(WorkProgress progress,
long amount)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
IAsync<IOException> |
DirectoryWalker.start(byte priority,
WorkProgress progress,
long work)
Start the directory analysis.
|
Copyright © 2019. All rights reserved.