public synchronized void registerJmxIfRequired() {
        referenceCount++;
        if(isRegistered == false) {
            String domain = JmxUtils.getPackageName(this.getClass());
            this.jmxObjectName = JmxUtils.createObjectName(domain, this.name);
            JmxUtils.registerMbean(this, this.jmxObjectName);
            isRegistered = true;
        }
    }
public synchronized void registerJmxIfRequired ( ) { referenceCount ++ ; if ( isRegistered == false ) { String domain = JmxUtils . getPackageName ( this . getClass ( ) ) ; this . jmxObjectName = JmxUtils . createObjectName ( domain , this . name ) ; JmxUtils . registerMbean ( this , this . jmxObjectName ) ; isRegistered = true ; } }
Multiple {@link PipelineRoutedStore} share the same
{@link PipelineRoutedStats} object IF Mbean is not registered, the first
caller will register it. All callers increment the counter.