Class DuplicateMetadataValueService
java.lang.Object
com.adaptris.core.ServiceImp
com.adaptris.core.services.duplicate.DuplicateMetadataValueService
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
- Direct Known Subclasses:
CheckMetadataValueService
,StoreMetadataValueService
Abstract super-class of the two Service
s which handle duplicate message checking.
-
Field Summary
Fields inherited from class com.adaptris.core.ServiceImp
log
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Returns the metadata key whose value should be checked.Returns the persistent store for previously received values in the form of a file URL.protected void
protected void
void
prepare()
Prepare for initialisation.void
Sets the metadata key whose value should be checked.void
Sets the persistent store for previously received values in the form of a file URL.Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId, start, stop
-
Field Details
-
previousValuesStore
-
store
-
-
Constructor Details
-
DuplicateMetadataValueService
public DuplicateMetadataValueService()
-
-
Method Details
-
initService
- Specified by:
initService
in classServiceImp
- Throws:
CoreException
-
closeService
protected void closeService()- Specified by:
closeService
in classServiceImp
-
loadPreviouslyReceivedValues
- Throws:
Exception
-
getMetadataKey
Returns the metadata key whose value should be checked.
- Returns:
- metadataKey the metadata key whose value should be checked
-
setMetadataKey
Sets the metadata key whose value should be checked. May not be null.
- Parameters:
s
- the metadata key whose value should be checked
-
getStoreFileUrl
Returns the persistent store for previously received values in the form of a file URL. E.g.
file:////Users/adaptris/store.dat/
.- Returns:
- the persistent store for previously received values in the form of a file URL
-
setStoreFileUrl
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.- Parameters:
s
- the persistent store for previously received values in the form of a file URL
-
prepare
Description copied from interface:ComponentLifecycleExtension
Prepare for initialisation.- Throws:
CoreException
-