Class AbstractCommandHandler<R extends org.jolokia.server.core.request.JolokiaRequest>

java.lang.Object
org.jolokia.service.jmx.handler.AbstractCommandHandler<R>
All Implemented Interfaces:
CommandHandler<R>
Direct Known Subclasses:
ExecHandler, ListHandler, NotificationHandler, ReadHandler, SearchHandler, WriteHandler

public abstract class AbstractCommandHandler<R extends org.jolokia.server.core.request.JolokiaRequest> extends Object implements CommandHandler<R>
A handler for dealing with a certain Jolokia command
Since:
Jun 12, 2009
Author:
roland
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    protected org.jolokia.server.core.service.api.JolokiaContext
     
    protected String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
    checkForModifiedSince(org.jolokia.server.core.util.jmx.MBeanServerAccess pServerManager, org.jolokia.server.core.request.JolokiaRequest pRequest)
    Check, whether the set of MBeans for any managed MBeanServer has been change since the timestamp provided in the given request
    protected abstract void
    Check whether there is a restriction on the type to apply.
    protected void
    Check whether a command of the given type is allowed
    void
    Lifecycle method called when agent goes down.
    protected Object
    doHandleAllServerRequest(org.jolokia.server.core.util.jmx.MBeanServerAccess serverManager, R request, Object pPreviousResult)
    Default implementation fo handling a request for multiple servers at once.
    protected abstract Object
    Abstract method to be subclassed by a concrete handler for performing the request.
    handleAllServerRequest(org.jolokia.server.core.util.jmx.MBeanServerAccess pServerManager, R pRequest, Object pPreviousResult)
    Override this if you want to have all servers at once for processing the request (like need for merging info as for a list command).
    boolean
    Override this if you want all servers as list in the argument, e.g.
    Handle a request for a single server and throw an InstanceNotFoundException if the request cannot be handle by the provided server.
    void
    init(org.jolokia.server.core.service.api.JolokiaContext pContext, String pProvider)
    Lifecycle method in order to initialize the handler
    protected boolean
    Checks whether an ObjectName should be removed (filtered out) from results of list or search operations.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.jolokia.service.jmx.api.CommandHandler

    getType
  • Field Details

    • context

      protected org.jolokia.server.core.service.api.JolokiaContext context
    • pProvider

      protected String pProvider
  • Constructor Details

    • AbstractCommandHandler

      public AbstractCommandHandler()
  • Method Details