| Package | Description |
|---|---|
| net.lecousin.framework.application |
Main classes to initialize this library: LCCore and Application.
|
| net.lecousin.framework.application.libraries |
Library loading and management.
|
| 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.progress |
Progression of asynchronous or background works.
|
| Modifier and Type | Method and Description |
|---|---|
ISynchronizationPoint<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 |
|---|---|
AsyncWork<Library,Exception> |
LibrariesManager.loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work)
Load a new library.
|
AsyncWork<Library,Exception> |
DefaultLibrariesManager.loadNewLibrary(String groupId,
String artifactId,
VersionSpecification version,
boolean optional,
byte priority,
WorkProgress progress,
long work) |
| 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.
|
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 AsyncWork<Long,IOException> |
IOUtil.copy(File src,
File dst,
byte priority,
long knownSize,
WorkProgress progress,
long work,
ISynchronizationPoint<?> startOn)
Copy a file.
|
static AsyncWork<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 | 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 ArrayList<WorkProgress> |
MultiTaskProgress.tasks |
| 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).
|
| Modifier and Type | Method and Description |
|---|---|
List<? extends WorkProgress> |
WorkProgress.MultiTask.getTasks()
Return the sub-WorkProgress.
|
List<? extends WorkProgress> |
MultiTaskProgress.getTasks() |
| Modifier and Type | Method and Description |
|---|---|
void |
MultiTaskProgress.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).
|
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,
ISynchronizationPoint<?> 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.
|
Copyright © 2017. All rights reserved.