@Path(value="") public class ETLRestResource extends AbstractRestResource<ETLManager,GetETLManagerEvent>
AbstractETLgson, restObject| Constructor and Description |
|---|
ETLRestResource() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
abort()
Aborts an ongoing harvest.
|
javax.ws.rs.core.Response |
checkIfEtlIssOutdated()
Checks if the harvester should be triggered again.
|
javax.ws.rs.core.Response |
getAllETLInfos()
A HTTP GET request that returns a JSON representation of a all ETLs.
|
protected String |
getAllowedRequests()
This method returns a string that offers a description of viable HTTP requests.
|
javax.ws.rs.core.Response |
getAllVersions()
Displays the artifactIds and versions of all Maven libraries used in this service.
|
javax.ws.rs.core.Response |
getETLInfo(javax.ws.rs.core.UriInfo uriInfo)
A HTTP GET request that returns a JSON representation of a single ETL.
|
javax.ws.rs.core.Response |
getHealth()
Checks the health of the harvester.
|
javax.ws.rs.core.Response |
getLog(String dateString,
String levelString,
String classString)
Attempts to retrieve the log of the harvester service.
|
javax.ws.rs.core.Response |
getVersions()
Displays the artifactIds and versions of GeRDI Maven libraries used in this service.
|
javax.ws.rs.core.Response |
reset()
Attempts to completely reset the harvester service
|
javax.ws.rs.core.Response |
startHarvest(javax.ws.rs.core.MultivaluedMap<String,String> formParams)
Starts a harvest using the harvester that is registered in the
MainContext.
|
changeObject, getInfoText@GET
@Path(value="etl")
@Produces(value="application/json")
public javax.ws.rs.core.Response getETLInfo(@Context
javax.ws.rs.core.UriInfo uriInfo)
uriInfo - an object that can be used to retrieve the path and possible query parameters.@GET @Path(value="etls") @Produces(value="application/json") public javax.ws.rs.core.Response getAllETLInfos()
@POST @Produces(value="application/json") public javax.ws.rs.core.Response startHarvest(javax.ws.rs.core.MultivaluedMap<String,String> formParams)
formParams - optional parameters encompass "from" and "to" to set
the harvest range@GET @Path(value="outdated") @Produces(value="application/json") public javax.ws.rs.core.Response checkIfEtlIssOutdated()
@POST @Path(value="abort") @Produces(value="application/json") public javax.ws.rs.core.Response abort()
@POST @Path(value="reset") @Produces(value="application/json") public javax.ws.rs.core.Response reset()
@GET
@Path(value="log")
@Produces(value="text/plain")
public javax.ws.rs.core.Response getLog(@QueryParam(value="date")
String dateString,
@QueryParam(value="level")
String levelString,
@QueryParam(value="class")
String classString)
dateString - the log dates in YYYY-MM-DD format of the log messages as comma
separated string, or null if this filter should not be appliedlevelString - the log levels of the log messages as comma separated string,
or null if this filter should not be appliedclassString - the logger names of the log messages as comma separated string,
or null if this filter should not be applied@GET @Path(value="health") @Produces(value="application/json") public javax.ws.rs.core.Response getHealth()
@GET @Path(value="versions") @Produces(value="application/json") public javax.ws.rs.core.Response getVersions()
@GET @Path(value="versions-all") @Produces(value="application/json") public javax.ws.rs.core.Response getAllVersions()
protected String getAllowedRequests()
AbstractRestResourcegetAllowedRequests in class AbstractRestResource<ETLManager,GetETLManagerEvent>Copyright © 2017–2019. All rights reserved.