Package com.netflix.eureka.resources
Class ApplicationsResource
- java.lang.Object
-
- com.netflix.eureka.resources.ApplicationsResource
-
@Path("/{version}/apps") @Produces({"application/xml","application/json"}) public class ApplicationsResource extends java.lang.ObjectA jersey resource that handles request related to allApplications.
-
-
Constructor Summary
Constructors Constructor Description ApplicationsResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationResourcegetApplicationResource(java.lang.String version, java.lang.String appId)Gets information about a particularApplication.jakarta.ws.rs.core.ResponsegetContainerDifferential(java.lang.String version, java.lang.String acceptHeader, java.lang.String acceptEncoding, java.lang.String eurekaAccept, jakarta.ws.rs.core.UriInfo uriInfo, java.lang.String regionsStr)Get information about all delta changes inApplications.jakarta.ws.rs.core.ResponsegetContainers(java.lang.String version, java.lang.String acceptHeader, java.lang.String acceptEncoding, java.lang.String eurekaAccept, jakarta.ws.rs.core.UriInfo uriInfo, java.lang.String regionsStr)Get information about allApplications.
-
-
-
Method Detail
-
getApplicationResource
@Path("{appId}") public ApplicationResource getApplicationResource(@PathParam("version") java.lang.String version, @PathParam("appId") java.lang.String appId)Gets information about a particularApplication.- Parameters:
version- the version of the request.appId- the unique application identifier (which is the name) of the application.- Returns:
- information about a particular application.
-
getContainers
@GET public jakarta.ws.rs.core.Response getContainers(@PathParam("version") java.lang.String version, @HeaderParam("Accept") java.lang.String acceptHeader, @HeaderParam("Accept-Encoding") java.lang.String acceptEncoding, @HeaderParam("X-Eureka-Accept") java.lang.String eurekaAccept, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Nullable @QueryParam("regions") java.lang.String regionsStr)Get information about allApplications.- Parameters:
version- the version of the request.acceptHeader- the accept header to indicate whether to serve JSON or XML data.acceptEncoding- the accept header to indicate whether to serve compressed or uncompressed data.eurekaAccept- an eureka accept extension, seeEurekaAccepturiInfo- theURIinformation of the request made.regionsStr- A comma separated list of remote regions from which the instances will also be returned. The applications returned from the remote region can be limited to the applications returned byEurekaServerConfig.getRemoteRegionAppWhitelist(String)- Returns:
- a response containing information about all
Applicationsfrom theAbstractInstanceRegistry.
-
getContainerDifferential
@Path("delta") @GET public jakarta.ws.rs.core.Response getContainerDifferential(@PathParam("version") java.lang.String version, @HeaderParam("Accept") java.lang.String acceptHeader, @HeaderParam("Accept-Encoding") java.lang.String acceptEncoding, @HeaderParam("X-Eureka-Accept") java.lang.String eurekaAccept, @Context jakarta.ws.rs.core.UriInfo uriInfo, @Nullable @QueryParam("regions") java.lang.String regionsStr)Get information about all delta changes inApplications.The delta changes represent the registry information change for a period as configured by
EurekaServerConfig.getRetentionTimeInMSInDeltaQueue(). The changes that can happen in a registry include Registrations,Cancels,Status Changes and Expirations. Normally the changes to the registry are infrequent and hence getting just the delta will be much more efficient than getting the complete registry.Since the delta information is cached over a period of time, the requests may return the same data multiple times within the window configured by
EurekaServerConfig.getRetentionTimeInMSInDeltaQueue().The clients are expected to handle this duplicate information.- Parameters:
version- the version of the request.acceptHeader- the accept header to indicate whether to serve JSON or XML data.acceptEncoding- the accept header to indicate whether to serve compressed or uncompressed data.eurekaAccept- an eureka accept extension, seeEurekaAccepturiInfo- theURIinformation of the request made.- Returns:
- response containing the delta information of the
AbstractInstanceRegistry.
-
-