public class AddDocumentOperation<SKey extends Key> extends DocumentOperation<SKey>
Modifier and Type | Field and Description |
---|---|
long |
m_BytesSize
used for Statistics
|
static java.lang.String |
NAME
the name of the operation
|
key
m_OperationName
Modifier | Constructor and Description |
---|---|
|
AddDocumentOperation(SKey key) |
protected |
AddDocumentOperation(SKey key,
java.lang.String name) |
Modifier and Type | Method and Description |
---|---|
static void |
addEmptyDocument(PushAPI papi,
Document doc)
Add an ampty document, based on an existing document in error.
|
static void |
addEmptyDocument(PushAPI papi,
java.lang.String uri) |
void |
execute_code(GenericMultiThreadedConnector<SKey> connector) |
protected void |
onError(GenericMultiThreadedConnector<SKey> connector,
GenericMultiThreadedConnectorConfig config,
Document doc) |
execute
public static final java.lang.String NAME
public long m_BytesSize
public AddDocumentOperation(SKey key)
protected AddDocumentOperation(SKey key, java.lang.String name)
protected void onError(GenericMultiThreadedConnector<SKey> connector, GenericMultiThreadedConnectorConfig config, Document doc) throws PushAPIException
PushAPIException
public void execute_code(GenericMultiThreadedConnector<SKey> connector) throws java.lang.Exception
execute_code
in class Operation<SKey extends Key>
java.lang.Exception
public static void addEmptyDocument(PushAPI papi, Document doc) throws PushAPIException
papi
- The PushAPIdoc
- The document, possibly in error state.PushAPIException
- Upon error.public static void addEmptyDocument(PushAPI papi, java.lang.String uri) throws PushAPIException
PushAPIException
Copyright © 2013 Dassault Systèmes, All Rights Reserved.