Package org.wildfly.prospero.api
Class ProvisioningProgressEvent
- java.lang.Object
-
- org.wildfly.prospero.api.ProvisioningProgressEvent
-
public class ProvisioningProgressEvent extends Object
Represents provisioning progress. Emitted periodically during provisioning of servers.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classProvisioningProgressEvent.EventType
-
Constructor Summary
Constructors Constructor Description ProvisioningProgressEvent(String stage, ProvisioningProgressEvent.EventType eventType, long completed, long total)ProvisioningProgressEvent(String stage, ProvisioningProgressEvent.EventType eventType, long completed, long total, String item, boolean slowPhase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetCompleted()count of completed items when the even is emittedStringgetCurrentItem()details of currently processed item.ProvisioningProgressEvent.EventTypegetEventType()type of stage event - seeProvisioningProgressEvent.EventTypedoublegetProgress()percentage of completion at the time of emitting the eventStringgetStage()name of the current stagelonggetTotal()total count of items to complete in current stagebooleanisSlowPhase()if set, the current phase doesn't receive any updates and can be a relatively slow processStringtoString()
-
-
-
Constructor Detail
-
ProvisioningProgressEvent
public ProvisioningProgressEvent(String stage, ProvisioningProgressEvent.EventType eventType, long completed, long total)
-
ProvisioningProgressEvent
public ProvisioningProgressEvent(String stage, ProvisioningProgressEvent.EventType eventType, long completed, long total, String item, boolean slowPhase)
-
-
Method Detail
-
getCurrentItem
public String getCurrentItem()
details of currently processed item.- Returns:
- description of item if available, null otherwise
-
isSlowPhase
public boolean isSlowPhase()
if set, the current phase doesn't receive any updates and can be a relatively slow process- Returns:
-
getProgress
public double getProgress()
percentage of completion at the time of emitting the event- Returns:
-
getEventType
public ProvisioningProgressEvent.EventType getEventType()
type of stage event - seeProvisioningProgressEvent.EventType
-
getCompleted
public long getCompleted()
count of completed items when the even is emitted
-
getTotal
public long getTotal()
total count of items to complete in current stage
-
getStage
public String getStage()
name of the current stage
-
-