Class BasePerCacheInboundInvocationHandler

    • Constructor Detail

      • BasePerCacheInboundInvocationHandler

        public BasePerCacheInboundInvocationHandler()
    • Method Detail

      • start

        public void start()
      • stop

        public void stop()
      • isStopped

        public boolean isStopped()
      • isCommandSentBeforeFirstTopology

        public final boolean isCommandSentBeforeFirstTopology​(int commandTopologyId)
      • getLog

        protected abstract Log getLog()
      • isTraceEnabled

        protected abstract boolean isTraceEnabled()
      • resetStatistics

        @ManagedOperation(description="Resets statistics gathered by this component",
                          displayName="Reset statistics")
        public void resetStatistics()
        Description copied from interface: JmxStatisticsExposer
        Resets an interceptor's cache statistics
        Specified by:
        resetStatistics in interface JmxStatisticsExposer
      • isStatisticsEnabled

        @ManagedAttribute(description="Enables or disables the gathering of statistics by this component",
                          displayName="Statistics enabled",
                          dataType=TRAIT,
                          writable=true)
        public boolean isStatisticsEnabled()
      • setStatisticsEnabled

        public void setStatisticsEnabled​(boolean enabled)
        Description copied from interface: JmxStatisticsExposer
        Enables an interceptor's cache statistics If true, the interceptor will capture statistics and make them available through the mbean.
        Specified by:
        setStatisticsEnabled in interface JmxStatisticsExposer
        Parameters:
        enabled - true if statistics should be captured
      • getXSiteRequestsReceived

        @ManagedAttribute(description="Returns the number of cross-site requests received by this node",
                          displayName="Cross-Site Requests Received")
        public long getXSiteRequestsReceived()
      • setFirstTopologyAsMember

        public void setFirstTopologyAsMember​(int firstTopologyAsMember)
        Specified by:
        setFirstTopologyAsMember in interface PerCacheInboundInvocationHandler
        Parameters:
        firstTopologyAsMember - The first topology in which the local node was a member. Any command with a lower topology id will be ignored.