
org.jppf.management.JPPFNodeAdminMBean Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jppf-common Show documentation
Show all versions of jppf-common Show documentation
JPPF, the open source grid computing solution
/*
* JPPF.
* Copyright (C) 2005-2015 JPPF Team.
* http://www.jppf.org
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.jppf.management;
import java.util.Map;
import org.jppf.classloader.DelegationModel;
/**
* Exposed interface of the JPPF node management bean.
* @author Laurent Cohen
*/
public interface JPPFNodeAdminMBean extends JPPFAdminMBean {
/**
* Name of the node's admin MBean.
*/
String MBEAN_NAME = "org.jppf:name=admin,type=node";
/**
* Get the latest state information from the node.
* @return a JPPFNodeState
information.
* @throws Exception if any error occurs.
*/
JPPFNodeState state() throws Exception;
/**
* Set the size of the node's thread pool.
* @param size the size as an int.
* @throws Exception if any error occurs.
*/
void updateThreadPoolSize(Integer size) throws Exception;
/**
* Update the priority of all execution threads.
* @param newPriority the new priority to set.
* @throws Exception if an error is raised when invoking the node mbean.
*/
void updateThreadsPriority(Integer newPriority) throws Exception;
/**
* Restart the node.
* This is equivalent to calling {@code restart(true)}.
* @throws Exception if any error occurs.
*/
void restart() throws Exception;
/**
* Restart the node.
* @param interruptIfRunning when {@code true}, then restart the node even if it is executing tasks,
* when {@code false}, then only restart the node when it is no longer executing.
* @throws Exception if any error occurs.
* @since 5.0
*/
void restart(Boolean interruptIfRunning) throws Exception;
/**
* Shutdown the node.
* @throws Exception if any error occurs.
*/
void shutdown() throws Exception;
/**
* Shutdown the node.
* @param interruptIfRunning when {@code true}, then shutdown the node even if it is executing tasks,
* when {@code false}, then only shutdown the node when it is no longer executing.
* @throws Exception if any error occurs.
* @since 5.0
*/
void shutdown(Boolean interruptIfRunning) throws Exception;
/**
* Reset the node's executed tasks counter to zero.
* @throws Exception if any error occurs.
*/
void resetTaskCounter() throws Exception;
/**
* Reset the node's executed tasks counter to the specified value.
* @param n the number to set the task counter to.
* @throws Exception if any error occurs.
*/
void setTaskCounter(Integer n) throws Exception;
/**
* Update the configuration properties of the node.
* @param config the set of properties to update.
* @param reconnect specifies whether the node should reconnect ot the driver after updating the properties.
* @throws Exception if any error occurs.
*/
void updateConfiguration(Map
© 2015 - 2025 Weber Informatics LLC | Privacy Policy