Class HarvestAdminResource

java.lang.Object
org.javastro.ivoa.registry.admin.HarvestAdminResource

@Path("harvesting") public class HarvestAdminResource extends Object
  • Constructor Details

    • HarvestAdminResource

      public HarvestAdminResource()
  • Method Details

    • harvest

      @POST @Path("harvest") @RolesAllowed("update") @Produces("application/json") public jakarta.ws.rs.core.Response harvest(String sourceKey, boolean immediate)
    • harvestStatus

      @GET @Path("harvest/status") @RolesAllowed("update") @Produces("application/json") public jakarta.ws.rs.core.Response harvestStatus()
    • harvestSources

      @GET @Path("harvest/sources") @RolesAllowed("update") @Produces("application/json") public jakarta.ws.rs.core.Response harvestSources()
    • addSource

      @POST @Path("harvest/sources") @RolesAllowed("update") public jakarta.ws.rs.core.Response addSource(@FormParam("ivoid") String ivoid, @FormParam("url") String url)
    • harvestRuns

      @GET @Path("harvest/runs") @RolesAllowed("update") @Produces("application/json") public jakarta.ws.rs.core.Response harvestRuns()
    • disableSource

      @POST @Path("harvest/source/{key}/disable") @RolesAllowed("update") @Produces("text/plain") public jakarta.ws.rs.core.Response disableSource(@PathParam("key") String key)
    • cacheSource

      @POST @Path("harvest/source/{key}/cache") @RolesAllowed("update") @Produces("text/plain") public jakarta.ws.rs.core.Response cacheSource(@PathParam("key") String key)
    • loadCache

      @POST @Path("harvest/source/{key}/cache/load") @RolesAllowed("update") @Produces("text/plain") public jakarta.ws.rs.core.Response loadCache(@PathParam("key") String key)
    • cacheStatus

      @GET @Path("harvest/source/{key}/cache") @RolesAllowed("update") @Produces("text/plain") public jakarta.ws.rs.core.Response cacheStatus(@PathParam("key") String key) throws ExecutionException, InterruptedException
      Throws:
      ExecutionException
      InterruptedException
    • resetSource

      @POST @Path("harvest/source/{key}/reset") @RolesAllowed("update") @Produces("text/plain") public jakarta.ws.rs.core.Response resetSource(@PathParam("key") String key)