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

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

        <Groups>
            <Group>rio</Group>
        </Groups>

		<ServiceBean Name="Echo">
			<Interfaces>
				<Interface>tutorial.Echo</Interface>
				<Resources>
					<JAR>rio-example/lib/rio-example-dl.jar</JAR>
                </Resources>
            </Interfaces>

            <!--
            <ImplementationClass>tutorial.RemoteEchoImpl
                <Resources>
                    <JAR>rio-example/lib/example2.jar</JAR>
                </Resources>
            </ImplementationClass>
            -->

            <ImplementationClass>tutorial.EchoJSB
                <Resources>
                    <JAR>rio-example/lib/rio-example.jar</JAR>
                </Resources>
            </ImplementationClass>

            <Logging>
                <Logger Name="tutorial" Level="ALL">
                    <Handler ClassName="java.util.logging.ConsoleHandler" Level="ALL"/>
                </Logger>
                <Logger Name="org.jini.rio.jsb" Level="ALL">
                    <Handler ClassName="java.util.logging.ConsoleHandler" Level="ALL"/>
                </Logger>
            </Logging>

            <ServiceLevelAgreements>
                <SLA ID="rate" Low="0" High="5">
                    <PolicyHandler type="scaling" max="5" lowerDampener="10000" upperDampener="200"/>
                </SLA>
                <SLA ID="throughtput" High="2">
                    <PolicyHandler type="notify"/>
                </SLA>
                <SystemRequirements>
                    <Utilization ID="System" High=".999"/>
                    <Utilization ID="CPU" High=".999"/>
                </SystemRequirements>                
            </ServiceLevelAgreements>

            <Maintain>1</Maintain>
            <MaxPerMachine>3</MaxPerMachine>
            <Comment>Echo Service</Comment>

        </ServiceBean>

    </OperationalString>
</opstring>
