public class DefaultPortableViewCompilerStatus extends Object implements PortableViewCompilerStatus
PortableViewCompilation
PortableViewCompilerStatus.Status
Modifier and Type | Method and Description |
---|---|
void |
addObserver(Observer o) |
void |
cancelRequest()
Request to the task that cancel.
|
void |
deleteObserver(Observer o) |
void |
deleteObservers() |
String |
getCode()
Gte the code of this TaskStatus.
|
int |
getCompleted()
Retorna el porcentaje de completitud de la tarea asociada
a este TaskStatus.
|
int |
getCurrentStep() |
String |
getCurrentStepKey() |
String |
getCurrentStepMessage() |
Throwable |
getException() |
String |
getFailMessage() |
File |
getGeneratedInstalationPortableViewFolder() |
File |
getGeneratedPortableViewFile() |
String |
getLabel()
Get a label that represent the status of the task
|
Date |
getLastModification()
Returns date of last modificaction of status.
|
TaskStatusManager |
getManager()
Return the TaskStatusManager associated to this TaskStatus.
|
int |
getProcessingPercent() |
PortableViewCompilation |
getResultCompilation() |
PortableViewCompilerStatus.Status |
getStatus() |
String |
getTitle()
Get the title associated to the task of this TaskStatus
|
int |
getTotalSteps() |
boolean |
isAborted()
Return true if the task has terminated with errors.
|
boolean |
isCancellable()
Return true if the task associated to this
TaskStatus can be canceled.
|
boolean |
isCancellationRequested()
Return true if has request to cancel to the task.
|
boolean |
isCancelled()
Return true if the task has cancelled by the
user or another task.
|
boolean |
isIndeterminate()
Return true if the completion of this task
can't calculate.
|
boolean |
isRunning()
Return true if the task is running.
|
void |
setCanceled() |
void |
setCurrentStep(int currentStep)
Set current step
|
void |
setCurrentStepKey(String key)
Set current step i18n key
|
void |
setCurrentStepMessage(String message)
Set current step message
|
void |
setError(String message,
Throwable exception)
Set status to
Status#finished_error |
void |
setFail(String message)
Set status to
Status#finished_fail |
void |
setFinished()
Set status to
Status#processing |
void |
setGeneratedFile(File file) |
void |
setGeneratedInstalationPortableViewFolder(File folder) |
void |
setPercent(int percent)
Set current process percent
|
void |
setPreparing()
Set status to
Status#preparing |
void |
setProcessing()
Set status to
Status#preparing |
void |
setResultCompilation(PortableViewCompilation compilation)
Set the final compilation instance version
|
void |
setTotalSteps(int totalSteps)
Set total steps
|
public PortableViewCompilerStatus.Status getStatus()
getStatus
in interface PortableViewCompilerStatus
public int getProcessingPercent()
public void setPercent(int percent)
percent
- public String getCurrentStepMessage()
getCurrentStepMessage
in interface PortableViewCompilerStatus
public void setCurrentStepMessage(String message)
message
- public int getCurrentStep()
getCurrentStep
in interface PortableViewCompilerStatus
public void setCurrentStep(int currentStep)
currentStep
- public int getTotalSteps()
getTotalSteps
in interface PortableViewCompilerStatus
public void setTotalSteps(int totalSteps)
totalSteps
- public PortableViewCompilation getResultCompilation()
getResultCompilation
in interface PortableViewCompilerStatus
public void setResultCompilation(PortableViewCompilation compilation)
compilation
- public void setPreparing()
Status#preparing
public void setProcessing()
Status#preparing
public void setFinished()
Status#processing
public File getGeneratedPortableViewFile()
getGeneratedPortableViewFile
in interface PortableViewCompilerStatus
public void setGeneratedFile(File file)
public void setFail(String message)
Status#finished_fail
message
- public String getFailMessage()
getFailMessage
in interface PortableViewCompilerStatus
public void setError(String message, Throwable exception)
Status#finished_error
message
- exception
- public Throwable getException()
getException
in interface PortableViewCompilerStatus
public String getCurrentStepKey()
getCurrentStepKey
in interface PortableViewCompilerStatus
public void setCurrentStepKey(String key)
name
- public void setGeneratedInstalationPortableViewFolder(File folder)
public File getGeneratedInstalationPortableViewFolder()
getGeneratedInstalationPortableViewFolder
in interface PortableViewCompilerStatus
public String getTitle()
TaskStatus
getTitle
in interface TaskStatus
public String getCode()
TaskStatus
getCode
in interface TaskStatus
public int getCompleted()
TaskStatus
getCompleted
in interface TaskStatus
public String getLabel()
TaskStatus
getLabel
in interface TaskStatus
public boolean isCancelled()
TaskStatus
isCancelled
in interface TaskStatus
public boolean isAborted()
TaskStatus
isAborted
in interface TaskStatus
public boolean isRunning()
TaskStatus
isRunning
in interface TaskStatus
public Date getLastModification()
TaskStatus
getLastModification
in interface TaskStatus
public TaskStatusManager getManager()
TaskStatus
getManager
in interface TaskStatus
public boolean isIndeterminate()
TaskStatus
isIndeterminate
in interface TaskStatus
public boolean isCancellable()
TaskStatus
isCancellable
in interface TaskStatus
public boolean isCancellationRequested()
CancellableTask
isCancellationRequested
in interface CancellableTask
public void cancelRequest()
CancellableTask
cancelRequest
in interface CancellableTask
public void addObserver(Observer o)
addObserver
in interface Observable
public void deleteObserver(Observer o)
deleteObserver
in interface Observable
public void deleteObservers()
deleteObservers
in interface Observable
public void setCanceled()