Package org.lockss.ws.status
Class DaemonStatusServiceImpl
java.lang.Object
org.lockss.spring.base.BaseSpringApiServiceImpl
org.lockss.ws.BaseServiceImpl
org.lockss.ws.status.DaemonStatusServiceImpl
- All Implemented Interfaces:
LockssConfigurableService,DaemonStatusService
@Service
public class DaemonStatusServiceImpl
extends BaseServiceImpl
implements DaemonStatusService
The Daemon Status 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 TypeMethodDescriptionCollection<org.lockss.ws.entities.IdNamePair>getAuIds()Provides a list of the identifier/name pairs of the archival units in the system.org.lockss.ws.entities.AuStatusgetAuStatus(String auId) Provides the status information of an archival unit in the system.Provides the URLs in an archival unit.org.lockss.ws.entities.PlatformConfigurationWsResultProvides the platform configuration.booleanProvides an indication of whether the daemon is ready.List<org.lockss.ws.entities.AuWsResult>Provides the selected properties of selected archival units in the system.List<org.lockss.ws.entities.CrawlWsResult>queryCrawls(String crawlQuery) Provides the selected properties of selected crawls in the system.List<org.lockss.ws.entities.PeerWsResult>queryPeers(String peerQuery) Provides the selected properties of selected peers in the system.List<org.lockss.ws.entities.PluginWsResult>queryPlugins(String pluginQuery) Provides the selected properties of selected plugins in the system.List<org.lockss.ws.entities.PollWsResult>queryPolls(String pollQuery) Provides the selected properties of selected polls in the system.List<org.lockss.ws.entities.RepositoryWsResult>queryRepositories(String repositoryQuery) Provides the selected properties of selected repositories in the system.List<org.lockss.ws.entities.RepositorySpaceWsResult>queryRepositorySpaces(String repositorySpaceQuery) Provides the selected properties of selected repository spaces in the system.List<org.lockss.ws.entities.TdbAuWsResult>queryTdbAus(String tdbAuQuery) Provides the selected properties of selected title database archival units.List<org.lockss.ws.entities.TdbPublisherWsResult>queryTdbPublishers(String tdbPublisherQuery) Provides the selected properties of selected title database publishers.List<org.lockss.ws.entities.TdbTitleWsResult>queryTdbTitles(String tdbTitleQuery) Provides the selected properties of selected title database titles.List<org.lockss.ws.entities.VoteWsResult>queryVotes(String voteQuery) Provides the selected properties of selected votes in the system.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
-
DaemonStatusServiceImpl
public DaemonStatusServiceImpl()
-
-
Method Details
-
isDaemonReady
public boolean isDaemonReady() throws org.lockss.ws.entities.LockssWebServicesFaultProvides an indication of whether the daemon is ready.- Specified by:
isDaemonReadyin interfaceDaemonStatusService- Returns:
- a boolean with the indication.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
getAuIds
public Collection<org.lockss.ws.entities.IdNamePair> getAuIds() throws org.lockss.ws.entities.LockssWebServicesFaultProvides a list of the identifier/name pairs of the archival units in the system.- Specified by:
getAuIdsin interfaceDaemonStatusService- Returns:
- a
List<IdNamePair>with the identifier/name pairs of the archival units in the system. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
getAuStatus
public org.lockss.ws.entities.AuStatus getAuStatus(String auId) throws org.lockss.ws.entities.LockssWebServicesFault Provides the status information of an archival unit in the system.- Specified by:
getAuStatusin interfaceDaemonStatusService- Parameters:
auId- A String with the identifier of the archival unit.- Returns:
- an AuStatus with the status information of the archival unit.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryPlugins
public List<org.lockss.ws.entities.PluginWsResult> queryPlugins(String pluginQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected plugins in the system.- Specified by:
queryPluginsin interfaceDaemonStatusService- Parameters:
pluginQuery- A String with the SQL-like query used to specify what properties to retrieve from which plugins.- Returns:
- a
List<PluginWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryAus
public List<org.lockss.ws.entities.AuWsResult> queryAus(String auQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected archival units in the system.- Specified by:
queryAusin interfaceDaemonStatusService- Parameters:
auQuery- A String with the SQL-like query used to specify what properties to retrieve from which archival units.- Returns:
- a
List<AuWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryPeers
public List<org.lockss.ws.entities.PeerWsResult> queryPeers(String peerQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected peers in the system.- Specified by:
queryPeersin interfaceDaemonStatusService- Parameters:
peerQuery- A String with the SQL-like query used to specify what properties to retrieve from which peers.- Returns:
- a
List<PeerWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryVotes
public List<org.lockss.ws.entities.VoteWsResult> queryVotes(String voteQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected votes in the system.- Specified by:
queryVotesin interfaceDaemonStatusService- Parameters:
voteQuery- A String with the SQL-like query used to specify what properties to retrieve from which votes.- Returns:
- a
List<VoteWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryRepositorySpaces
public List<org.lockss.ws.entities.RepositorySpaceWsResult> queryRepositorySpaces(String repositorySpaceQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected repository spaces in the system.- Specified by:
queryRepositorySpacesin interfaceDaemonStatusService- Parameters:
repositorySpaceQuery- A String with the SQL-like query used to specify what properties to retrieve from which repository spaces.- Returns:
- a
List<RepositorySpaceWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryRepositories
public List<org.lockss.ws.entities.RepositoryWsResult> queryRepositories(String repositoryQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected repositories in the system.- Specified by:
queryRepositoriesin interfaceDaemonStatusService- Parameters:
repositoryQuery- A String with the SQL-like query used to specify what properties to retrieve from which repositories.- Returns:
- a
List<RepositoryWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryCrawls
public List<org.lockss.ws.entities.CrawlWsResult> queryCrawls(String crawlQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected crawls in the system.- Specified by:
queryCrawlsin interfaceDaemonStatusService- Parameters:
crawlQuery- A String with the SQL-like query used to specify what properties to retrieve from which crawls.- Returns:
- a
List<CrawlWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryPolls
public List<org.lockss.ws.entities.PollWsResult> queryPolls(String pollQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected polls in the system.- Specified by:
queryPollsin interfaceDaemonStatusService- Parameters:
pollQuery- A String with the SQL-like query used to specify what properties to retrieve from which polls.- Returns:
- a
List<PollWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
getPlatformConfiguration
public org.lockss.ws.entities.PlatformConfigurationWsResult getPlatformConfiguration() throws org.lockss.ws.entities.LockssWebServicesFaultProvides the platform configuration.- Specified by:
getPlatformConfigurationin interfaceDaemonStatusService- Returns:
- a PlatformConfigurationWsResult with the platform configuration.
- Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryTdbPublishers
public List<org.lockss.ws.entities.TdbPublisherWsResult> queryTdbPublishers(String tdbPublisherQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected title database publishers.- Specified by:
queryTdbPublishersin interfaceDaemonStatusService- Parameters:
tdbPublisherQuery- A String with the SQL-like query used to specify what properties to retrieve from which title database publishers.- Returns:
- a
List<TdbPublisherWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryTdbTitles
public List<org.lockss.ws.entities.TdbTitleWsResult> queryTdbTitles(String tdbTitleQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected title database titles.- Specified by:
queryTdbTitlesin interfaceDaemonStatusService- Parameters:
tdbTitleQuery- A String with the SQL-like query used to specify what properties to retrieve from which title database titles.- Returns:
- a
List<TdbTitleWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
queryTdbAus
public List<org.lockss.ws.entities.TdbAuWsResult> queryTdbAus(String tdbAuQuery) throws org.lockss.ws.entities.LockssWebServicesFault Provides the selected properties of selected title database archival units.- Specified by:
queryTdbAusin interfaceDaemonStatusService- Parameters:
tdbAuQuery- A String with the SQL-like query used to specify what properties to retrieve from which title database archival units.- Returns:
- a
List<TdbAuWsResult>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-
getAuUrls
public List<String> getAuUrls(String auId, String url) throws org.lockss.ws.entities.LockssWebServicesFault Provides the URLs in an archival unit.- Specified by:
getAuUrlsin interfaceDaemonStatusService- Parameters:
auId- A String with the identifier of the archival unit.url- A String with the URL above which no results will be provided, orNULLif all the URLS are to be provided.- Returns:
- a
List<String>with the results. - Throws:
org.lockss.ws.entities.LockssWebServicesFault- if there are problems.
-