Package org.wildfly.prospero.api
Class ProvisioningProgressEvent
java.lang.Object
org.wildfly.prospero.api.ProvisioningProgressEvent
Represents provisioning progress. Emitted periodically during provisioning of servers.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionProvisioningProgressEvent(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
Modifier and TypeMethodDescriptionlongcount of completed items when the even is emitteddetails of currently processed item.type of stage event - seeProvisioningProgressEvent.EventTypedoublepercentage of completion at the time of emitting the eventgetStage()name of the current stagelonggetTotal()total count of items to complete in current stagebooleanif set, the current phase doesn't receive any updates and can be a relatively slow processtoString()
-
Constructor Details
-
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 Details
-
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
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
name of the current stage -
toString
-