/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You 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.apache.ignite.spi.loadbalancing.roundrobin;
import org.apache.ignite.mxbean.MXBeanDescription;
import org.apache.ignite.spi.IgniteSpiManagementMBean;
/**
* Management bean for {@link RoundRobinLoadBalancingSpi} SPI.
*/
@MXBeanDescription("MBean that provides access to round robin load balancing SPI configuration.")
public interface RoundRobinLoadBalancingSpiMBean extends IgniteSpiManagementMBean {
/**
* Configuration parameter indicating whether a new round robin order should be
* created for every task. If {@code true} then load balancer is guaranteed
* to iterate through nodes sequentially for every task - so as long as number
* of jobs is less than or equal to the number of nodes, jobs are guaranteed to
* be assigned to unique nodes. If {@code false} then one round-robin order
* will be maintained for all tasks, so when tasks execute concurrently, it
* is possible for more than one job within task to be assigned to the same
* node.
* <p>
* Default is {@code true}.
*
* @return Configuration parameter indicating whether a new round robin order should
* be created for every task. Default is {@code true}.
*/
@MXBeanDescription("Configuration parameter indicating whether a new round robin order should be created for every task.")
public boolean isPerTask();
}