public abstract class DuplicateMetadataValueService extends ServiceImp
Abstract super-class of the two Service
s which handle duplicate message checking.
Modifier and Type | Field and Description |
---|---|
protected java.util.List<java.lang.String> |
previousValuesStore |
protected java.io.File |
store |
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
DuplicateMetadataValueService() |
Modifier and Type | Method and Description |
---|---|
protected void |
closeService() |
java.lang.String |
getMetadataKey()
Returns the metadata key whose value should be checked.
|
java.lang.String |
getStoreFileUrl()
Returns the persistent store for previously received values in the form of
a file URL.
|
protected void |
initService() |
protected void |
loadPreviouslyReceivedValues() |
void |
prepare()
Prepare for initialisation.
|
void |
setMetadataKey(java.lang.String s)
Sets the metadata key whose value should be checked.
|
void |
setStoreFileUrl(java.lang.String s)
Sets the persistent store for previously received values in the form of a
file URL.
|
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId, start, stop
protected transient java.util.List<java.lang.String> previousValuesStore
protected transient java.io.File store
protected void initService() throws CoreException
initService
in class ServiceImp
CoreException
protected void closeService()
closeService
in class ServiceImp
protected void loadPreviouslyReceivedValues() throws java.lang.Exception
java.lang.Exception
public java.lang.String getMetadataKey()
Returns the metadata key whose value should be checked.
public void setMetadataKey(java.lang.String s)
Sets the metadata key whose value should be checked. May not be null.
s
- the metadata key whose value should be checkedpublic java.lang.String getStoreFileUrl()
Returns the persistent store for previously received values in the form of
a file URL. E.g. file:////Users/adaptris/store.dat/
.
public void setStoreFileUrl(java.lang.String s)
Sets the persistent store for previously received values in the form of a
file URL. E.g. file:////Users/adaptris/store.dat
. May not
be null or empty.
s
- the persistent store for previously received values in the form of
a file URLpublic void prepare() throws CoreException
ComponentLifecycleExtension
CoreException