Package org.lockss.ws.hasher
Class HasherServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.ws.BaseServiceImpl
org.lockss.ws.hasher.HasherServiceImpl
- All Implemented Interfaces:
LockssConfigurableService,HasherService
The Hasher SOAP web service implementation.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
BaseSpringApiServiceImpl.MapMessageListener -
Field Summary
Fields inherited from class org.lockss.ws.BaseServiceImpl
connectionTimeout, DEFAULT_CONNECTION_TIMEOUT, DEFAULT_READ_TIMEOUT, DEFAULT_REPO_NAMESPACE, PARAM_CONNECTION_TIMEOUT, PARAM_READ_TIMEOUT, PARAM_REPO_NAMESPACE, PREFIX, readTimeout, repoNamespace, restTemplateFields inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
DEFAULT_CONFIG_WAIT_TIME, DEFAULT_READY_WAIT_TIME, JMS_BOTH, JMS_RECEIVE, JMS_SEND, jmsConsumer, jmsProducer, PARAM_CONFIG_WAIT_TIME, PARAM_READY_WAIT_TIME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionList<org.lockss.ws.entities.HasherWsAsynchronousResult>Provides the results of all the asynchronous hashing operations.org.lockss.ws.entities.HasherWsAsynchronousResultgetAsynchronousHashResult(String requestId) Provides the result of an asynchronous hashing operation.org.lockss.ws.entities.HasherWsResulthash(org.lockss.ws.entities.HasherWsParams wsParams) Performs the hashing of an AU or a URL.org.lockss.ws.entities.HasherWsAsynchronousResulthashAsynchronously(org.lockss.ws.entities.HasherWsParams wsParams) Performs asynchronously the hashing of an AU or a URL.org.lockss.ws.entities.HasherWsAsynchronousResultremoveAsynchronousHashRequest(String requestId) Removes from the system an asynchronous hashing operation, terminating it if it's still running.Methods inherited from class org.lockss.ws.BaseServiceImpl
callRestServiceEndpoint, callRestServiceUri, callRestServiceUri, getAuthHeaders, getConnectionTimeout, getMultipartResponse, getReadTimeout, getRequestorIpAddress, getRestLockssRepository, getServiceBinding, getServiceEndpoint, getSoapRequestAuthorizationHeader, getSoapRequestCredentials, separatedString, setConfigMethods inherited from class org.lockss.spring.base.BaseSpringApiServiceImpl
configMgrCreated, getClassName, getConfigWaitTime, getJMSManager, getPluginManager, getReadyWaitTime, getRunningLockssDaemon, getStateManager, getWaitTime, jmsSetUpDone, jsonResponse, receiveMessage, registerConfigCallback, setUpJms, setUpJms, setUpJms, stopJms, stringResponse, waitConfig, waitConfig, waitReady, waitReady
-
Constructor Details
-
HasherServiceImpl
public HasherServiceImpl()
-
-
Method Details
-
hash
public org.lockss.ws.entities.HasherWsResult hash(org.lockss.ws.entities.HasherWsParams wsParams) throws org.lockss.ws.entities.LockssWebServicesFault Performs the hashing of an AU or a URL.- Specified by:
hashin interfaceHasherService- Parameters:
wsParams- A HasherWsParams with the parameters of the hashing operation.- Returns:
- a HasherWsResult with the result of the hashing operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
hashAsynchronously
public org.lockss.ws.entities.HasherWsAsynchronousResult hashAsynchronously(org.lockss.ws.entities.HasherWsParams wsParams) throws org.lockss.ws.entities.LockssWebServicesFault Performs asynchronously the hashing of an AU or a URL.- Specified by:
hashAsynchronouslyin interfaceHasherService- Parameters:
wsParams- A HasherWsParams with the parameters of the hashing operation.- Returns:
- a HasherWsAsynchronousResult with the result of the hashing operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
getAsynchronousHashResult
public org.lockss.ws.entities.HasherWsAsynchronousResult getAsynchronousHashResult(String requestId) throws org.lockss.ws.entities.LockssWebServicesFault Provides the result of an asynchronous hashing operation.- Specified by:
getAsynchronousHashResultin interfaceHasherService- Parameters:
requestId- A String with the identifier of the requested asynchronous hashing operation.- Returns:
- a HasherWsAsynchronousResult with the result of the hashing operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
getAllAsynchronousHashResults
public List<org.lockss.ws.entities.HasherWsAsynchronousResult> getAllAsynchronousHashResults() throws org.lockss.ws.entities.LockssWebServicesFaultProvides the results of all the asynchronous hashing operations.- Specified by:
getAllAsynchronousHashResultsin interfaceHasherService- Returns:
- a
List<HasherWsAsynchronousResult>with the results of the hashing operations. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
removeAsynchronousHashRequest
public org.lockss.ws.entities.HasherWsAsynchronousResult removeAsynchronousHashRequest(String requestId) throws org.lockss.ws.entities.LockssWebServicesFault Removes from the system an asynchronous hashing operation, terminating it if it's still running.- Specified by:
removeAsynchronousHashRequestin interfaceHasherService- Parameters:
requestId- A String with the identifier of the requested asynchronous hashing operation.- Returns:
- a HasherWsAsynchronousResult with the result of the removal of the hashing operation.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-