Examples of AmxPref


Examples of com.sun.enterprise.config.serverbeans.AmxPref

    private ComplianceMonitor(final DomainRoot domainRoot) {
        mDomainRoot = domainRoot;

        mServer = (MBeanServer) domainRoot.extra().mbeanServerConnection();

        final AmxPref amxPrefs = InjectedValues.getInstance().getAMXPrefs();
        if (amxPrefs == null) {
            mValidationLevel = AmxPref.VALIDATION_LEVEL_FULL;
            mUnregisterNonCompliant = false;
            mLogInaccessibleAttributes = true;
        } else {
            mValidationLevel = amxPrefs.getValidationLevel();
            mUnregisterNonCompliant = Boolean.valueOf(amxPrefs.getUnregisterNonCompliant());
            mLogInaccessibleAttributes = Boolean.valueOf(amxPrefs.getLogInaccessibleAttributes());
        }

        mValidatorThread = new ValidatorThread(mServer, mValidationLevel, mUnregisterNonCompliant, mLogInaccessibleAttributes);

        mLogger.log(Level.INFO,"amx.AMXComplianceMonitor.level",new Object[] {mValidationLevel, mUnregisterNonCompliant,
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AmxPref

            final StandardMBean mbean = new StandardMBean(this, AMXStartupServiceMBean.class);
            mMBeanServer.registerMBean(mbean, OBJECT_NAME);

            mMBeanTracker = new MBeanTracker(AMXGlassfish.DEFAULT.amxJMXDomain());

            final AmxPref amxPref = InjectedValues.getInstance().getAMXPrefs();
            mMBeanTracker.setEmitMBeanStatus(amxPref == null ? false : Boolean.valueOf(amxPref.getEmitRegisrationStatus()));

            //final StandardMBean supportMBean = new StandardMBean(mMBeanTracker, MBeanTrackerMBean.class);
            mMBeanServer.registerMBean(mMBeanTracker, MBeanTrackerMBean.MBEAN_TRACKER_OBJECT_NAME);
        } catch (final Exception e) {
            ImplUtil.getLogger().log(Level.INFO, "Fatal error loading AMX", e);
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AmxPref

        return mMBeanServer;
    }

    /** might return null */
    public AmxPref getAMXPrefs() {
        final AmxPref prefs = mDomain.getAmxPref();
        if (prefs == null) {
            // create one?
        }
        return prefs;
    }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AmxPref

        mBootAMX = BootAMX.create(mHabitat, mMBeanServer);

        final List<JmxConnector> configuredConnectors = mAdminService.getJmxConnector();

        // AmxPref might not exist
        final AmxPref amxPref = mDomain.getAmxPref();
        final boolean autoStart = amxPref == null ? AmxPref.AUTO_START_DEFAULT : Boolean.valueOf(amxPref.getAutoStart());

        mConnectorsStarterThread = new JMXConnectorsStarterThread(mMBeanServer, configuredConnectors, mBootAMX, !autoStart);
        mConnectorsStarterThread.start();

        // start AMX *first* (if auto start) so that it's ready
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AmxPref

    private ComplianceMonitor(final DomainRoot domainRoot) {
        mDomainRoot = domainRoot;

        mServer = (MBeanServer) domainRoot.extra().mbeanServerConnection();

        final AmxPref amxPrefs = InjectedValues.getInstance().getAMXPrefs();
        if (amxPrefs == null) {
            mValidationLevel = AmxPref.VALIDATION_LEVEL_FULL;
            mUnregisterNonCompliant = false;
            mLogInaccessibleAttributes = true;
        } else {
            mValidationLevel = amxPrefs.getValidationLevel();
            mUnregisterNonCompliant = Boolean.valueOf(amxPrefs.getUnregisterNonCompliant());
            mLogInaccessibleAttributes = Boolean.valueOf(amxPrefs.getLogInaccessibleAttributes());
        }

        mValidatorThread = new ValidatorThread(mServer, mValidationLevel, mUnregisterNonCompliant, mLogInaccessibleAttributes);

        ImplUtil.getLogger().info("AMX ComplianceMonitor: ValidationLevel = " + mValidationLevel +
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.AmxPref

        mBootAMX = BootAMX.create(mHabitat, mMBeanServer);

        final List<JmxConnector> configuredConnectors = mAdminService.getJmxConnector();

        // AmxPref might not exist
        final AmxPref amxPref = mDomain.getAmxPref();
        final boolean autoStart = amxPref == null ? AmxPref.AUTO_START_DEFAULT : Boolean.valueOf(amxPref.getAutoStart());

        mConnectorsStarterThread = new JMXConnectorsStarterThread(mMBeanServer, configuredConnectors, mBootAMX, !autoStart);
        mConnectorsStarterThread.start();

        // start AMX *first* (if auto start) so that it's ready
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.