All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.jppf.ui.options.xml.JobMaxNodesPanel.xml Maven / Gradle / Ivy

The newest version!
<?xml version="1.0" encoding="UTF-8"?>
<!--
	JPPF.
	 Copyright (C) 2005-2019 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.
-->

<!--
  XML descriptor for the dialog used to set the maximum number of nodes of a job,
  in the jobs data view of the admin console.
-->
<opt:main xmlns:opt="http://www.jppf.org/Options.xsd" name="JobMaxNodesPanel" type="page" i18n="org.jppf.ui.i18n.JobDataPage">
	<property name="label" value="Update number of threads and priority"/>
	<property name="layoutConstraints" value="flowy"/>
	<property name="componentConstraints" value=""/>

	<!-- ===================================================================== -->
	<!--              Threads number and priority panel                        -->
	<!-- ===================================================================== -->
	
	<child name="maxNodesFields" type="page">
		<property name="label" value=""/>
		<property name="layoutConstraints" value="fill, flowy"/>
		<property name="componentConstraints" value=""/>
		<property name="tooltip" value="Settings of the node's execution thread pool"/>

		<child name="job.nolimit.toggle" type="Boolean">
			<property name="label" value="Unlimited number of nodes"/>
			<property name="tooltip" value="Toggles between bounded and unlimited number of nodes the job can run on"/>
			<property name="value" value="true"/>
			<property name="persistent" value="true"/>
			<listener type="script">
				<script language="groovy"><![CDATA[
					def b = option.getValue().booleanValue();
					option.findFirstWithName("/job.max.nodes").setEnabled(!b);
				]]></script>
			</listener>
		</child>

		<child name="job.max.nodes" type="SpinnerNumber">
			<property name="label" value="Maximum number of nodes"/>
			<property name="tooltip" value="Maximum number of nodes a job can run on"/>
			<property name="value" value="1"/>
			<property name="minValue" value="1"/>
			<property name="maxValue" value="2147483647"/>
			<property name="persistent" value="true"/>
		</child>

	</child>

	<child name="job.max.nodes.buttons" type="page">
		<property name="layoutConstraints" value="fill"/>
		<property name="componentConstraints" value=""/>
		<property name="tooltip" value="Validate or cancel the update"/>

		<child name="job.max.nodes.OK" type="Button">
			<property name="label" value="OK"/>
			<property name="tooltip" value="Apply new settings by sending them to the server"/>
		</child>

		<child name="job.max.nodes.Cancel" type="Button">
			<property name="label" value="Cancel"/>
			<property name="tooltip" value="Close this dialog without applying any settings"/>
			<property name="componentConstraints" value="gap unrel"/>
		</child>

	</child>

</opt:main>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy