<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
<!DOCTYPE opstring SYSTEM "java://org/jini/rio/dtd/rio_opstring.dtd">

<opstring>
    <OperationalString Name="Grid">
        <Codebase>$[org.jini.rio.codeserver]</Codebase>
        <Groups>
			<Group>rio</Group>
		</Groups>

		<ServiceBean Name="Worker">

            <Interfaces>
                <Interface>tutorial.grid.Task</Interface>
				<Resources>
					<JAR>compute-grid/lib/grid-dl.jar</JAR>
                </Resources>
            </Interfaces>

            <ImplementationClass>tutorial.grid.TaskServer
                <Resources>
                    <JAR>compute-grid/lib/grid.jar</JAR>
                </Resources>
            </ImplementationClass>

            <Associations>
                <Association Name="JavaSpace"
                             Property="space"
                             Type="requires"
                             ClassName="net.jini.space.JavaSpace"
                             MatchOnName="no"/>
                
                <Association Name="Transaction Manager"
                             Property="transactionManager"
                             Type="requires"
                             ClassName="net.jini.core.transaction.server.TransactionManager"
                             MatchOnName="no"/>
            </Associations>

            <Configuration>
                <Component Name="org.jini.rio">
                    <Parameter Name="defaultExporter" Value="$org_jini_rio_defaultExporter"/>
                </Component>
                <Component Name="tutorial.grid">
                    <Parameter Name="timeout" Value="new java.lang.Long(60000)"/>
                </Component>
            </Configuration>

            <Logging>
                <Logger Name="tutorial.grid" Level="ALL">
                    <Handler ClassName="java.util.logging.ConsoleHandler" Level="ALL"/>
                </Logger>
            </Logging>

            <!--
            <ServiceLevelAgreements>
                <SLA ID="taux" Low="0" High="5">
                    <PolicyHandler type="scaling" max="5" lowerDampener="10000" upperDampener="200"/>
                </SLA>
                <SLA ID="tempsMoyen" High="2">
                    <PolicyHandler type="notify"/>
                </SLA>
                <SystemRequirements>
                    <Utilization ID="System" High=".7"/>
                    <Utilization ID="CPU" High=".8"/>
                    <Utilization ID="DiskSpace" High=".999"/>
                </SystemRequirements>
            </ServiceLevelAgreements>
            -->

            <Maintain>5</Maintain>
            <MaxPerMachine>10</MaxPerMachine>
            <Comment>Grid Worker</Comment>
        </ServiceBean>

    </OperationalString>
</opstring>
