blob: 3f555df0a0af969872ed1ff9f1b936306d465145 [file] [log] [blame]
/*=============================================================================#
# Copyright (c) 2009, 2018 Stephan Wahlbrink and others.
#
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# https://www.eclipse.org/legal/epl-2.0, or the Apache License, Version 2.0
# which is available at https://www.apache.org/licenses/LICENSE-2.0.
#
# SPDX-License-Identifier: EPL-2.0 OR Apache-2.0
#
# Contributors:
# Stephan Wahlbrink <sw@wahlbrink.eu> - initial API and implementation
#=============================================================================*/
package org.eclipse.statet.rj.servi.jmx;
import javax.management.OperationsException;
public interface PoolConfigMXBean {
@DisplayName("Max total nodes (count)")
int getMaxUsageCount();
void setMaxUsageCount(int count);
@DisplayName("Min idle nodes (count)")
long getMaxWaitTime();
void setMaxWaitTime(long milliseconds);
@DisplayName("Max idle nodes (count)")
long getMinIdleTime();
void setMinIdleTime(long milliseconds);
@DisplayName("Min node idle time (millisec)")
int getMaxIdleCount();
void setMaxIdleCount(int count);
@DisplayName("Max wait time (millisec)")
int getMinIdleCount();
void setMinIdleCount(int count);
@DisplayName("Max node reuse (count)")
int getMaxTotalCount();
void setMaxTotalCount(int count);
@DisplayName("Timeout when evicting node in use (millisec)")
long getEvictionTimeout();
void setEvictionTimeout(long milliseconds);
@DisplayName("Apply the current configuration")
void apply() throws OperationsException;
@DisplayName("Reset current changes / load actual configuration")
void loadActual() throws OperationsException;
@DisplayName("Load the default configuration")
void loadDefault() throws OperationsException;
@DisplayName("Load the saved configuration")
void loadSaved() throws OperationsException;
@DisplayName("Save the current configuration")
void save() throws OperationsException;
}