org.hibernate.jmx.spi.JmxService Java Examples

The following examples show how to use org.hibernate.jmx.spi.JmxService. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DisabledJMXInitiator.java    From quarkus with Apache License 2.0 5 votes vote down vote up
@Override
public JmxService initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
    if (ConfigurationHelper.getBoolean(AvailableSettings.JMX_ENABLED, configurationValues, false)) {
        Logger.getLogger(DisabledJMXInitiator.class)
                .warn("Enabling JMX is not allowed in Quarkus: forcefully disabled. Ignoring property:"
                        + AvailableSettings.JMX_ENABLED);
    }
    return DisabledJmxServiceImpl.INSTANCE;
}
 
Example #2
Source File: AbstractServiceRegistryImpl.java    From lams with GNU General Public License v2.0 5 votes vote down vote up
@Override
@SuppressWarnings({ "unchecked" })
public <R extends Service> void startService(ServiceBinding<R> serviceBinding) {
	if ( Startable.class.isInstance( serviceBinding.getService() ) ) {
		( (Startable) serviceBinding.getService() ).start();
	}

	if ( Manageable.class.isInstance( serviceBinding.getService() ) ) {
		getService( JmxService.class ).registerService(
				(Manageable) serviceBinding.getService(),
				serviceBinding.getServiceRole()
		);
	}
}
 
Example #3
Source File: DisabledJMXInitiator.java    From quarkus with Apache License 2.0 4 votes vote down vote up
@Override
public Class<JmxService> getServiceInitiated() {
    return JmxService.class;
}
 
Example #4
Source File: JmxServiceInitiator.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public Class<JmxService> getServiceInitiated() {
	return JmxService.class;
}
 
Example #5
Source File: JmxServiceInitiator.java    From lams with GNU General Public License v2.0 4 votes vote down vote up
@Override
public JmxService initiateService(Map configurationValues, ServiceRegistryImplementor registry) {
	return ConfigurationHelper.getBoolean( AvailableSettings.JMX_ENABLED, configurationValues, false )
			? new JmxServiceImpl( configurationValues )
			: DisabledJmxServiceImpl.INSTANCE;
}