Class WorkerReadinessResource
- java.lang.Object
-
- org.apache.pulsar.functions.worker.rest.WorkerReadinessResource
-
- All Implemented Interfaces:
java.util.function.Supplier<WorkerService>
@Path("/") public class WorkerReadinessResource extends java.lang.Object implements java.util.function.Supplier<WorkerService>
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_WORKER_SERVICEprotected javax.servlet.http.HttpServletRequesthttpRequestprotected javax.servlet.ServletContextservletContext
-
Constructor Summary
Constructors Constructor Description WorkerReadinessResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description WorkerServiceget()booleanisInitialized()
-
-
-
Field Detail
-
ATTRIBUTE_WORKER_SERVICE
public static final java.lang.String ATTRIBUTE_WORKER_SERVICE
- See Also:
- Constant Field Values
-
servletContext
@Context protected javax.servlet.ServletContext servletContext
-
httpRequest
@Context protected javax.servlet.http.HttpServletRequest httpRequest
-
-
Method Detail
-
get
public WorkerService get()
- Specified by:
getin interfacejava.util.function.Supplier<WorkerService>
-
isInitialized
@GET @Path("/initialized") public boolean isInitialized()
-
-