package edu.ucsb.cs.jicos.examples.input; //import edu.ucsb.cs.jicos.examples.helloworld.*; import edu.ucsb.cs.jicos.services.*; import java.rmi.*; final class Application { public static void main ( String args[] ) throws Exception { String hspDomainName = args[ 0 ]; // get a remote reference to an HSP HspAgent agent = new HspAgent( hspDomainName ); Client2Hsp hsp = agent.getClient2Hsp(); // register with HSP String input = "Hi, world!"; Environment environment = new Environment( input, null ); hsp.login( environment ); // start computation Task task = new HelloTask(); String value = (String) hsp.compute( task ); System.out.println( value ); // unregister from HSP hsp.logout(); } }