Package org.apache.solr.handler.admin
Class SystemInfoHandler
java.lang.Object
org.apache.solr.handler.RequestHandlerBase
org.apache.solr.handler.admin.SystemInfoHandler
- All Implemented Interfaces:
AutoCloseable,ApiSupport,SolrInfoBean,NestedRequestHandler,SolrMetricProducer,SolrRequestHandler,PermissionNameProvider
This handler returns system info
- Since:
- solr 1.2
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.solr.handler.RequestHandlerBase
RequestHandlerBase.HandlerMetricsNested classes/interfaces inherited from interface org.apache.solr.security.PermissionNameProvider
PermissionNameProvider.NameNested classes/interfaces inherited from interface org.apache.solr.core.SolrInfoBean
SolrInfoBean.Category, SolrInfoBean.Group -
Field Summary
Fields inherited from class org.apache.solr.handler.RequestHandlerBase
aggregateNodeLevelMetricsEnabled, appends, defaults, httpCaching, initArgs, invariants, metrics, publishCpuTime, REQUEST_CPU_TIMER_CONTEXT, solrMetricsContext, SOURCE_ATTRFields inherited from interface org.apache.solr.security.PermissionNameProvider
ANY, NULL, valuesFields inherited from interface org.apache.solr.metrics.SolrMetricProducer
CATEGORY_ATTR, HANDLER_ATTR, NAME_ATTR, OPERATION_ATTR, PLUGIN_NAME_ATTR, RESULT_ATTR, TYPE_ATTRFields inherited from interface org.apache.solr.request.SolrRequestHandler
TYPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends PlatformManagedObject>
voidforEachGetterValue(T obj, Class<? extends T> intf, BiConsumer<String, Object> consumer) Iterates over properties of the given MXBean and invokes the provided consumer with each property name and its current value.static <T extends PlatformManagedObject>
voidforEachGetterValue(T obj, String[] interfaces, BiConsumer<String, Object> consumer) Iterates over properties of the given MXBean and invokes the provided consumer with each property name and its current value.getApis()Returns any (non-JAX-RS annotated) APIs associated with this request handler.Category of this componentSimple one or two line descriptionstatic org.apache.solr.common.util.SimpleOrderedMap<Object> getJvmInfo(NodeConfig nodeConfig) Get JVM Info - including memory infogetPermissionName(AuthorizationContext request) org.apache.solr.common.util.SimpleOrderedMap<Object> Get Security Infostatic org.apache.solr.common.util.SimpleOrderedMap<Object> Get system infovoidWhether this request handler must be made available at the /v2/ pathMethods inherited from class org.apache.solr.handler.RequestHandlerBase
getInitArgs, getMetricsForThisRequest, getName, getPluginInfo, getRequestHandler, getSolrMetricsContext, getSolrParamsFromNamedList, getSubHandler, handleRequest, init, initializeMetrics, isInternalShardRequest, processErrorMetricsOnException, processReceivedException, setPluginInfoMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.solr.api.ApiSupport
getJerseyResources, registerV1Methods inherited from interface org.apache.solr.metrics.SolrMetricProducer
close
-
Constructor Details
-
SystemInfoHandler
public SystemInfoHandler() -
SystemInfoHandler
-
-
Method Details
-
forEachGetterValue
public static <T extends PlatformManagedObject> void forEachGetterValue(T obj, String[] interfaces, BiConsumer<String, Object> consumer) Iterates over properties of the given MXBean and invokes the provided consumer with each property name and its current value.- Type Parameters:
T- formal type- Parameters:
obj- an instance of MXBeaninterfaces- interfaces that it may implement. Each interface will be tried in turn, and only if it exists and if it contains unique properties then they will be added as metrics.consumer- consumer for each property name and value
-
forEachGetterValue
public static <T extends PlatformManagedObject> void forEachGetterValue(T obj, Class<? extends T> intf, BiConsumer<String, Object> consumer) Iterates over properties of the given MXBean and invokes the provided consumer with each property name and its current value.- Type Parameters:
T- formal type- Parameters:
obj- an instance of MXBeanintf- MXBean interface, one ofPlatformManagedObject-sconsumer- consumer for each property name and value
-
handleRequestBody
- Specified by:
handleRequestBodyin classRequestHandlerBase- Throws:
Exception
-
getSystemInfo
Get system info -
getJvmInfo
public static org.apache.solr.common.util.SimpleOrderedMap<Object> getJvmInfo(NodeConfig nodeConfig) Get JVM Info - including memory info -
getSecurityInfo
Get Security Info -
getDescription
Description copied from interface:SolrInfoBeanSimple one or two line description- Specified by:
getDescriptionin interfaceSolrInfoBean- Specified by:
getDescriptionin classRequestHandlerBase
-
getCategory
Description copied from interface:SolrInfoBeanCategory of this component- Specified by:
getCategoryin interfaceSolrInfoBean- Overrides:
getCategoryin classRequestHandlerBase
-
getApis
Description copied from interface:ApiSupportReturns any (non-JAX-RS annotated) APIs associated with this request handler.- Specified by:
getApisin interfaceApiSupport- Overrides:
getApisin classRequestHandlerBase- See Also:
-
registerV2
Description copied from interface:ApiSupportWhether this request handler must be made available at the /v2/ path -
getPermissionName
-