public class SimpleTrackedData extends Object implements TrackedData, ObjectData, ObjectIdData, FilterData
| Constructor and Description |
|---|
SimpleTrackedData(int id,
Object data) |
SimpleTrackedData(int id,
Object data,
Map<String,String> userDefProps) |
SimpleTrackedData(int id,
Object data,
Map<String,String> userDefProps,
Map<String,String> dynamicProps) |
SimpleTrackedData(int id,
Object data,
Map<String,String> userDefProps,
Map<String,String> dynamicProps,
MutableDynamicPropertyMap dynamicOpProps)
Creates a new instance of tracked data for testing
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
InputStream |
getData()
Returns a non-
null stream containing the document data passed into the connector shape. |
long |
getDataSize()
Returns the size of the stream containing the document data passed into the connector shape.
|
MutableDynamicPropertyMap |
getDynamicOperationProperties()
Returns dynamic operation properties for this tracked data (always non-
null). |
Map<String,String> |
getDynamicProperties()
Returns any dynamic connector properties for this tracked data (always non-
null). |
QueryFilter |
getFilter()
Returns a query filter describing the object to be retrieved.
|
Logger |
getLogger()
Returns a logger which should be used to log information specific to this tracked data.
|
String |
getObjectId()
Returns a non-
null object id. |
Object |
getTrackingId()
Returns a "tracking" id for this tracked data.
|
Object |
getUniqueId()
Returns a unique id for this tracked data.
|
Map<String,String> |
getUserDefinedProperties()
Returns any user-defined properties for this tracked data (always non-
null). |
int |
hashCode() |
String |
toString() |
public SimpleTrackedData(int id,
Object data)
public SimpleTrackedData(int id,
Object data,
Map<String,String> userDefProps,
Map<String,String> dynamicProps)
public SimpleTrackedData(int id,
Object data,
Map<String,String> userDefProps,
Map<String,String> dynamicProps,
MutableDynamicPropertyMap dynamicOpProps)
id - this tracked data's iddata - this tracked data's inputuserDefProps - User defined properties for this tracked datadynamicProps - Map of overrideable connection properties for this tracked datadynamicOpProps - Overrideable Operation properties for this tracked datapublic Object getUniqueId()
TrackedDataObject.toString(),
Object.hashCode(), and Object.equals(java.lang.Object) method implementations and may therefore be used for things
like log statements or Map keys during an operation execution, but may not otherwise be relied upon (the
implementations are free to change in future atom implementations).getUniqueId in interface TrackedDatapublic Object getTrackingId()
TrackedDatagetTrackingId in interface TrackedDatapublic Map<String,String> getUserDefinedProperties()
TrackedDatanull). User-defined properties may
be set dynamically for each tracked data during process execution.getUserDefinedProperties in interface TrackedDatapublic Map<String,String> getDynamicProperties()
TrackedDatanull). Dynamic connector
properties may be set dynamically for each tracked data during process execution.getDynamicProperties in interface TrackedDatapublic MutableDynamicPropertyMap getDynamicOperationProperties()
TrackedDatanull). This
DynamicPropertyMap contains String variants of all values from
BrowseContext.getOperationProperties() with any overridden values appliedgetDynamicOperationProperties in interface TrackedDatapublic Logger getLogger()
TrackedDatagetLogger in interface TrackedDatapublic QueryFilter getFilter()
FilterDatanull (generally in start
shapes), indicating that all objects of the relevant request type should be retrieved.getFilter in interface FilterDatapublic long getDataSize()
throws IOException
ObjectDatagetDataSize in interface ObjectDataIOExceptionpublic InputStream getData()
ObjectDatanull stream containing the document data passed into the connector shape. This stream MUST
be closed by the consumer. Since this stream contains the actual data, it can be very large and should NOT be
loaded directly into memory without putting any safeguards in place to limit the amount of memory that can be
consumed. This stream can be reset to the beginning if the data needs to be replayed.getData in interface ObjectDatapublic String getObjectId()
ObjectIdDatanull object id.getObjectId in interface ObjectIdData