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()
TrackedData
Object.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 TrackedData
public Object getTrackingId()
TrackedData
getTrackingId
in interface TrackedData
public Map<String,String> getUserDefinedProperties()
TrackedData
null
). User-defined properties may
be set dynamically for each tracked data during process execution.getUserDefinedProperties
in interface TrackedData
public Map<String,String> getDynamicProperties()
TrackedData
null
). Dynamic connector
properties may be set dynamically for each tracked data during process execution.getDynamicProperties
in interface TrackedData
public MutableDynamicPropertyMap getDynamicOperationProperties()
TrackedData
null
). This
DynamicPropertyMap
contains String variants of all values from
BrowseContext.getOperationProperties()
with any overridden values appliedgetDynamicOperationProperties
in interface TrackedData
public Logger getLogger()
TrackedData
getLogger
in interface TrackedData
public QueryFilter getFilter()
FilterData
null
(generally in start
shapes), indicating that all objects of the relevant request type should be retrieved.getFilter
in interface FilterData
public long getDataSize() throws IOException
ObjectData
getDataSize
in interface ObjectData
IOException
public InputStream getData()
ObjectData
null
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 ObjectData
public String getObjectId()
ObjectIdData
null
object id.getObjectId
in interface ObjectIdData