
org.glassfish.grizzly.http.server.HttpServerMonitoringConfig Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2010, 2020 Oracle and/or its affiliates. All rights reserved.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0, which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the
* Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
* version 2 with the GNU Classpath Exception, which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
*/
package org.glassfish.grizzly.http.server;
import org.glassfish.grizzly.ConnectionProbe;
import org.glassfish.grizzly.TransportProbe;
import org.glassfish.grizzly.http.HttpProbe;
import org.glassfish.grizzly.http.server.filecache.FileCacheProbe;
import org.glassfish.grizzly.memory.MemoryProbe;
import org.glassfish.grizzly.monitoring.DefaultMonitoringConfig;
import org.glassfish.grizzly.monitoring.MonitoringConfig;
import org.glassfish.grizzly.threadpool.ThreadPoolProbe;
/**
* Grizzly web server monitoring config.
*
* @author Alexey Stashok
*/
public final class HttpServerMonitoringConfig {
private final DefaultMonitoringConfig memoryConfig = new DefaultMonitoringConfig<>(MemoryProbe.class);
private final DefaultMonitoringConfig transportConfig = new DefaultMonitoringConfig<>(TransportProbe.class);
private final DefaultMonitoringConfig connectionConfig = new DefaultMonitoringConfig<>(ConnectionProbe.class);
private final DefaultMonitoringConfig threadPoolConfig = new DefaultMonitoringConfig<>(ThreadPoolProbe.class);
private final DefaultMonitoringConfig fileCacheConfig = new DefaultMonitoringConfig<>(FileCacheProbe.class);
private final DefaultMonitoringConfig httpConfig = new DefaultMonitoringConfig<>(HttpProbe.class);
private final DefaultMonitoringConfig webServerConfig = new DefaultMonitoringConfig<>(HttpServerProbe.class);
/**
* Get the memory monitoring config.
*
* @return the memory monitoring config.
*/
public MonitoringConfig getMemoryConfig() {
return memoryConfig;
}
/**
* Get the connection monitoring config.
*
* @return the connection monitoring config.
*/
public MonitoringConfig getConnectionConfig() {
return connectionConfig;
}
/**
* Get the thread pool monitoring config.
*
* @return the thread pool monitoring config.
*/
public MonitoringConfig getThreadPoolConfig() {
return threadPoolConfig;
}
/**
* Get the transport monitoring config.
*
* @return the transport monitoring config.
*/
public MonitoringConfig getTransportConfig() {
return transportConfig;
}
/**
* Get the file cache monitoring config.
*
* @return the file cache monitoring config.
*/
public MonitoringConfig getFileCacheConfig() {
return fileCacheConfig;
}
/**
* Get the http monitoring config.
*
* @return the http monitoring config.
*/
public MonitoringConfig getHttpConfig() {
return httpConfig;
}
/**
* Get the web server monitoring config.
*
* @return the web server monitoring config.
*/
public MonitoringConfig getWebServerConfig() {
return webServerConfig;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy