public class BatchInterrupted extends ExtensionPoint implements Extension, IBatchInterrupted
<batch:interrupted>, which marks
the batch feed as having been aborted.ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandlerxmlBloblocalName, namespace| 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, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildrenconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validatepublic 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 + errorCountsuccessCount - 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 + errorCountsuccessCount - number of entries processed successfully so farerrorCount - number of entries rejected so farpublic static ExtensionDescription getDefaultDescription()
public java.lang.String getReason()
getReason in interface IBatchInterruptedpublic int getTotalCount()
getTotalCount in interface IBatchInterruptedpublic int getSuccessCount()
getSuccessCount in interface IBatchInterruptedpublic int getErrorCount()
getErrorCount in interface IBatchInterruptedpublic int getSkippedCount()
getSkippedCount in interface IBatchInterruptedpublic ContentType getContentType()
getContentType in interface IBatchInterruptedpublic void setContentType(ContentType contentType)
public java.lang.String getContent()
getContentType().getContent in interface IBatchInterruptedpublic void setContent(java.lang.String content)
contentType.public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
generate in interface Extensiongenerate in class AbstractExtensionw - XML writerextProfile - extension profilejava.io.IOExceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs) throws ParseException
getHandler in interface ExtensiongetHandler in class ExtensionPointextProfile - namespace - localName - attrs - attributes of batch:interruptedParseException