Package org.javastro.ivoa.registry.admin
Class HarvestAdminResource
java.lang.Object
org.javastro.ivoa.registry.admin.HarvestAdminResource
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordSimple JSON result for harvest trigger endpoint. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponsecacheSource(String key) jakarta.ws.rs.core.ResponsecacheStatus(String key) jakarta.ws.rs.core.ResponsedisableSource(String key) jakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.Responsejakarta.ws.rs.core.ResponseresetSource(String key)
-
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
-
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 -
resetSource
@POST @Path("harvest/source/{key}/reset") @RolesAllowed("update") @Produces("text/plain") public jakarta.ws.rs.core.Response resetSource(@PathParam("key") String key)
-