Class PackageProgressTracker
- java.lang.Object
-
- com.composum.sling.core.pckgmgr.jcrpckg.util.PackageProgressTracker
-
- All Implemented Interfaces:
org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener
- Direct Known Subclasses:
PackageProgressTracker.HtmlStreamTracking
,PackageProgressTracker.JsonStreamTracking
,PackageProgressTracker.LogOnlyTracking
,PackageProgressTracker.TextWriterTracking
public abstract class PackageProgressTracker extends Object implements org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener
Helper methods for Package handling (VLT Package Manager)
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PackageProgressTracker.HtmlStreamTracking
static class
PackageProgressTracker.HtmlTracking
static class
PackageProgressTracker.Item
static class
PackageProgressTracker.JsonStreamTracking
static class
PackageProgressTracker.JsonTracking
static class
PackageProgressTracker.LogOnlyTracking
static class
PackageProgressTracker.TextWriterTracking
-
Field Summary
Fields Modifier and Type Field Description protected int
actionCount
protected int
errorCount
protected int
itemCount
static String
PLAIN_TEXT_SHORT_ACTION_SPACE
-
Constructor Summary
Constructors Constructor Description PackageProgressTracker()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
getErrorDetected()
void
onError(org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener.Mode mode, String path, Exception ex)
void
onMessage(org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener.Mode mode, String action, String path)
abstract void
writeEpilogue()
protected abstract void
writeItem(PackageProgressTracker.Item item)
abstract void
writePrologue()
-
-
-
Field Detail
-
PLAIN_TEXT_SHORT_ACTION_SPACE
public static final String PLAIN_TEXT_SHORT_ACTION_SPACE
- See Also:
- Constant Field Values
-
actionCount
protected int actionCount
-
itemCount
protected int itemCount
-
errorCount
protected int errorCount
-
-
Method Detail
-
getErrorDetected
public boolean getErrorDetected()
-
onMessage
public void onMessage(org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener.Mode mode, String action, String path)
- Specified by:
onMessage
in interfaceorg.apache.jackrabbit.vault.fs.api.ProgressTrackerListener
-
onError
public void onError(org.apache.jackrabbit.vault.fs.api.ProgressTrackerListener.Mode mode, String path, Exception ex)
- Specified by:
onError
in interfaceorg.apache.jackrabbit.vault.fs.api.ProgressTrackerListener
-
writeItem
protected abstract void writeItem(PackageProgressTracker.Item item) throws IOException
- Throws:
IOException
-
writePrologue
public abstract void writePrologue() throws IOException
- Throws:
IOException
-
writeEpilogue
public abstract void writeEpilogue() throws IOException
- Throws:
IOException
-
-