public class BatchInterrupted extends ExtensionPoint implements Extension, IBatchInterrupted
<batch:interrupted>
, which marks
the batch feed as having been aborted.ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
Constructor and Description |
---|
BatchInterrupted()
Creates an empty object.
|
BatchInterrupted(java.lang.String reason,
int totalCount,
int successCount,
int errorCount)
Creates and initializes a BatchInterrupted object.
|
BatchInterrupted(java.lang.Throwable cause,
int totalCount,
int successCount,
int errorCount)
Creates and initializes a BatchInterrupted object.
|
Modifier and Type | Method and Description |
---|---|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for batch:interrupted.
|
java.lang.String |
getContent()
Gets this tag content.
|
ContentType |
getContentType()
Describe the content of this tag.
|
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description.
|
int |
getErrorCount()
Gets the number of entries that were rejected.
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
Creates an XML ElementHandler that will initialize the object based
on a tag batch:interrupted parsed by the XML parser.
|
java.lang.String |
getReason()
Gets a short message describing what happened.
|
int |
getSkippedCount()
Gets the number of entries that were skipped.
|
int |
getSuccessCount()
Gets the number of entries that were processed successfully.
|
int |
getTotalCount()
Gets the total number of entries read.
|
void |
setContent(java.lang.String content)
Sets this tag content.
|
void |
setContentType(ContentType contentType)
Sets the content type for this tag.
|
addExtension, addRepeatingExtension, declareExtensions, generateCumulativeXmlBlob, getExtension, getExtensions, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit
disableStrictValidation, enableStrictValidation, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, setImmutable
public BatchInterrupted(java.lang.String reason, int totalCount, int successCount, int errorCount)
reason
- exception that caused batch processing to stoptotalCount
- number of entries parsed so far, note that
it is to be expected that totalCount >= successCount + errorCount
successCount
- number of entries processed successfully so farerrorCount
- number of entries rejected so farpublic BatchInterrupted()
getHandler(ExtensionProfile,String,String,Attributes)
.public BatchInterrupted(java.lang.Throwable cause, int totalCount, int successCount, int errorCount)
cause
- exception that caused batch processing to stoptotalCount
- number of entries parsed so far, note that
it is to be expected that totalCount >= successCount + errorCount
successCount
- number of entries processed successfully so farerrorCount
- number of entries rejected so farpublic static ExtensionDescription getDefaultDescription()
public java.lang.String getReason()
getReason
in interface IBatchInterrupted
public int getTotalCount()
getTotalCount
in interface IBatchInterrupted
public int getSuccessCount()
getSuccessCount
in interface IBatchInterrupted
public int getErrorCount()
getErrorCount
in interface IBatchInterrupted
public int getSkippedCount()
getSkippedCount
in interface IBatchInterrupted
public ContentType getContentType()
getContentType
in interface IBatchInterrupted
public void setContentType(ContentType contentType)
public java.lang.String getContent()
getContentType()
.getContent
in interface IBatchInterrupted
public void setContent(java.lang.String content)
contentType
.public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerextProfile
- extension profilejava.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs) throws ParseException
getHandler
in interface Extension
getHandler
in class ExtensionPoint
extProfile
- namespace
- localName
- attrs
- attributes of batch:interruptedParseException