package edu.ucsb.cs.jicos.examples.standalone; 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 { // get a reference to a Hosting Service Provider HspAgent agent = new HspAgent( "test" ); Client2Hsp hsp = agent.getClient2Hsp(); // login Environment environment = new Environment( null, null ); hsp.login( environment ); // compute Task task = new HelloTask(); String value = (String) hsp.compute( task ); System.out.println( value ); // logout hsp.logout(); } }