Class DaemonStatusServiceImpl

All Implemented Interfaces:
LockssConfigurableService, DaemonStatusService

@Service public class DaemonStatusServiceImpl extends BaseServiceImpl implements DaemonStatusService
The Daemon Status SOAP web service implementation.
  • Constructor Details

    • DaemonStatusServiceImpl

      public DaemonStatusServiceImpl()
  • Method Details

    • isDaemonReady

      public boolean isDaemonReady() throws org.lockss.ws.entities.LockssWebServicesFault
      Provides an indication of whether the daemon is ready.
      Specified by:
      isDaemonReady in interface DaemonStatusService
      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.LockssWebServicesFault
      Provides a list of the identifier/name pairs of the archival units in the system.
      Specified by:
      getAuIds in interface DaemonStatusService
      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:
      getAuStatus in interface DaemonStatusService
      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:
      queryPlugins in interface DaemonStatusService
      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:
      queryAus in interface DaemonStatusService
      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:
      queryPeers in interface DaemonStatusService
      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:
      queryVotes in interface DaemonStatusService
      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:
      queryRepositorySpaces in interface DaemonStatusService
      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:
      queryRepositories in interface DaemonStatusService
      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:
      queryCrawls in interface DaemonStatusService
      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:
      queryPolls in interface DaemonStatusService
      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.LockssWebServicesFault
      Provides the platform configuration.
      Specified by:
      getPlatformConfiguration in interface DaemonStatusService
      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:
      queryTdbPublishers in interface DaemonStatusService
      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:
      queryTdbTitles in interface DaemonStatusService
      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:
      queryTdbAus in interface DaemonStatusService
      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:
      getAuUrls in interface DaemonStatusService
      Parameters:
      auId - A String with the identifier of the archival unit.
      url - A String with the URL above which no results will be provided, or NULL if all the URLS are to be provided.
      Returns:
      a List<String> with the results.
      Throws:
      org.lockss.ws.entities.LockssWebServicesFault - if there are problems.