public class JobDirectoryServerServiceImpl extends java.lang.Object implements JobDirectoryServerService
JobDirectoryServerService.| Constructor and Description |
|---|
JobDirectoryServerServiceImpl(org.springframework.core.io.ResourceLoader resourceLoader,
DataServices dataServices,
AgentFileStreamService agentFileStreamService,
ArchivedJobService archivedJobService,
io.micrometer.core.instrument.MeterRegistry meterRegistry,
AgentRoutingService agentRoutingService)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
serveResource(java.lang.String id,
java.net.URL baseUrl,
java.lang.String relativePath,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
Given the
request this API will write the resource to response if possible. |
public JobDirectoryServerServiceImpl(org.springframework.core.io.ResourceLoader resourceLoader,
DataServices dataServices,
AgentFileStreamService agentFileStreamService,
ArchivedJobService archivedJobService,
io.micrometer.core.instrument.MeterRegistry meterRegistry,
AgentRoutingService agentRoutingService)
resourceLoader - The application resource loader used to get references to resourcesdataServices - The DataServices instance to useagentFileStreamService - The service providing file manifest for active agent jobsarchivedJobService - The ArchivedJobService implementation to use to get archived
job datameterRegistry - The meter registry used to keep track of metricsagentRoutingService - The agent routing servicepublic void serveResource(java.lang.String id,
java.net.URL baseUrl,
java.lang.String relativePath,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response)
throws com.netflix.genie.common.exceptions.GenieException
request this API will write the resource to response if possible. If the resource
doesn't exist or an error is generated an appropriate HTTP error response will be written to response
instead.serveResource in interface JobDirectoryServerServiceid - The id of the job this request is forbaseUrl - The base URL used to generate all URLs for resourcesrelativePath - The relative path from the root of the job directory of the expected resourcerequest - The HTTP request containing all information about the requestresponse - The HTTP response where all results should be writtencom.netflix.genie.common.exceptions.GenieException - If there is an error serving the response