Class NodeLoggingAPI
- java.lang.Object
-
- org.apache.solr.api.JerseyResource
-
- org.apache.solr.handler.admin.api.NodeLoggingAPI
-
@Path("/node/logging") public class NodeLoggingAPI extends JerseyResourceV2 APIs for getting or setting log levels on an individual node.These APIs ('/api/node/logging' and descendants) are analogous to the v1 /admin/info/logging.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNodeLoggingAPI.ListLevelsResponseResponse format for the 'GET /api/node/logging/levels' API.static classNodeLoggingAPI.LoggingResponseGeneric logging response that includes the name of the log watcher (e.g.static classNodeLoggingAPI.LogLevelChangeA user-requested modification in the level that a specified logger reports at.static classNodeLoggingAPI.LogLevelInfoRepresentation of a single logger and its current state.static classNodeLoggingAPI.LogMessageInfoMetadata about the log messages returned by the 'GET /api/node/logging/messages' APIstatic classNodeLoggingAPI.LogMessagesResponseResponse format for the 'GET /api/node/logging/messages' API.static classNodeLoggingAPI.SetThresholdRequestBodyThe request body for the 'PUT /api/node/logging/messages/threshold' API.
-
Field Summary
-
Fields inherited from class org.apache.solr.api.JerseyResource
containerRequestContext
-
-
Constructor Summary
Constructors Constructor Description NodeLoggingAPI(CoreContainer coreContainer)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeLoggingAPI.LogMessagesResponsefetchLocalLogMessages(Long boundingTimeMillis)NodeLoggingAPI.ListLevelsResponselistAllLoggersAndLevels()NodeLoggingAPI.LoggingResponsemodifyLocalLogLevel(List<NodeLoggingAPI.LogLevelChange> requestBody)NodeLoggingAPI.LoggingResponsesetMessageThreshold(NodeLoggingAPI.SetThresholdRequestBody requestBody)static voidwriteLogsForTesting()-
Methods inherited from class org.apache.solr.api.JerseyResource
ensureRequiredParameterProvided, ensureRequiredRequestBodyProvided, instantiateJerseyResponse, instantiateJerseyResponse
-
-
-
-
Constructor Detail
-
NodeLoggingAPI
@Inject public NodeLoggingAPI(CoreContainer coreContainer)
-
-
Method Detail
-
listAllLoggersAndLevels
@Path("/levels") @GET @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public NodeLoggingAPI.ListLevelsResponse listAllLoggersAndLevels()
-
modifyLocalLogLevel
@Path("/levels") @PUT @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public NodeLoggingAPI.LoggingResponse modifyLocalLogLevel(List<NodeLoggingAPI.LogLevelChange> requestBody)
-
fetchLocalLogMessages
@Path("/messages") @GET @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public NodeLoggingAPI.LogMessagesResponse fetchLocalLogMessages(@QueryParam("since") Long boundingTimeMillis)
-
setMessageThreshold
@Path("/messages/threshold") @PUT @Produces({"application/json","application/xml","application/vnd.apache.solr.javabin"}) public NodeLoggingAPI.LoggingResponse setMessageThreshold(NodeLoggingAPI.SetThresholdRequestBody requestBody)
-
writeLogsForTesting
public static void writeLogsForTesting()
-
-