public class DefaultPortableViewCompilerStatus extends java.lang.Object implements PortableViewCompilerStatus
PortableViewCompilationPortableViewCompilerStatus.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() |
java.lang.String |
getCode()
Gte the code of this TaskStatus.
|
int |
getCompleted()
Retorna el porcentaje de completitud de la tarea asociada
a este TaskStatus.
|
int |
getCurrentStep() |
java.lang.String |
getCurrentStepKey() |
java.lang.String |
getCurrentStepMessage() |
java.lang.Throwable |
getException() |
java.lang.String |
getFailMessage() |
java.io.File |
getGeneratedInstalationPortableViewFolder() |
java.io.File |
getGeneratedPortableViewFile() |
java.lang.String |
getLabel()
Get a label that represent the status of the task
|
java.util.Date |
getLastModification()
Returns date of last modificaction of status.
|
TaskStatusManager |
getManager()
Return the TaskStatusManager associated to this TaskStatus.
|
java.lang.String |
getMessage() |
int |
getProcessingPercent() |
java.lang.String |
getProgressLabel() |
PortableViewCompilation |
getResultCompilation() |
PortableViewCompilerStatus.Status |
getStatus() |
java.lang.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(java.lang.String key)
Set current step i18n key
|
void |
setCurrentStepMessage(java.lang.String message)
Set current step message
|
void |
setError(java.lang.String message,
java.lang.Throwable exception)
Set status to
Status#finished_error |
void |
setFail(java.lang.String message)
Set status to
Status#finished_fail |
void |
setFinished()
Set status to
Status#processing |
void |
setGeneratedFile(java.io.File file) |
void |
setGeneratedInstalationPortableViewFolder(java.io.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 PortableViewCompilerStatuspublic int getProcessingPercent()
public void setPercent(int percent)
percent - public java.lang.String getCurrentStepMessage()
getCurrentStepMessage in interface PortableViewCompilerStatuspublic void setCurrentStepMessage(java.lang.String message)
message - public int getCurrentStep()
getCurrentStep in interface PortableViewCompilerStatuspublic void setCurrentStep(int currentStep)
currentStep - public int getTotalSteps()
getTotalSteps in interface PortableViewCompilerStatuspublic void setTotalSteps(int totalSteps)
totalSteps - public PortableViewCompilation getResultCompilation()
getResultCompilation in interface PortableViewCompilerStatuspublic void setResultCompilation(PortableViewCompilation compilation)
compilation - public void setPreparing()
Status#preparingpublic void setProcessing()
Status#preparingpublic void setFinished()
Status#processingpublic java.io.File getGeneratedPortableViewFile()
getGeneratedPortableViewFile in interface PortableViewCompilerStatuspublic void setGeneratedFile(java.io.File file)
public void setFail(java.lang.String message)
Status#finished_failmessage - public java.lang.String getFailMessage()
getFailMessage in interface PortableViewCompilerStatuspublic void setError(java.lang.String message,
java.lang.Throwable exception)
Status#finished_errormessage - exception - public java.lang.Throwable getException()
getException in interface PortableViewCompilerStatuspublic java.lang.String getCurrentStepKey()
getCurrentStepKey in interface PortableViewCompilerStatuspublic void setCurrentStepKey(java.lang.String key)
name - public void setGeneratedInstalationPortableViewFolder(java.io.File folder)
public java.io.File getGeneratedInstalationPortableViewFolder()
getGeneratedInstalationPortableViewFolder in interface PortableViewCompilerStatuspublic java.lang.String getTitle()
TaskStatusgetTitle in interface TaskStatuspublic java.lang.String getCode()
TaskStatusgetCode in interface TaskStatuspublic int getCompleted()
TaskStatusgetCompleted in interface TaskStatuspublic java.lang.String getLabel()
TaskStatusgetLabel in interface TaskStatuspublic boolean isCancelled()
TaskStatusisCancelled in interface TaskStatuspublic boolean isAborted()
TaskStatusisAborted in interface TaskStatuspublic boolean isRunning()
TaskStatusisRunning in interface TaskStatuspublic java.util.Date getLastModification()
TaskStatusgetLastModification in interface TaskStatuspublic TaskStatusManager getManager()
TaskStatusgetManager in interface TaskStatuspublic boolean isIndeterminate()
TaskStatusisIndeterminate in interface TaskStatuspublic boolean isCancellable()
TaskStatusisCancellable in interface TaskStatuspublic boolean isCancellationRequested()
CancellableTaskisCancellationRequested in interface CancellableTaskpublic void cancelRequest()
CancellableTaskcancelRequest in interface CancellableTaskpublic void addObserver(Observer o)
addObserver in interface Observablepublic void deleteObserver(Observer o)
deleteObserver in interface Observablepublic void deleteObservers()
deleteObservers in interface Observablepublic void setCanceled()
public java.lang.String getMessage()
getMessage in interface TaskStatuspublic java.lang.String getProgressLabel()
getProgressLabel in interface TaskStatus