FileDocCategorySizeDatePackage
ComputeEngine.javaAPI DocExample867Tue Dec 12 18:59:58 GMT 2000engine

ComputeEngine

public class ComputeEngine extends UnicastRemoteObject implements Compute

Fields Summary
Constructors Summary
public ComputeEngine()

        super();
    
Methods Summary
public java.lang.ObjectexecuteTask(Task t)

        return t.execute();
    
public static voidmain(java.lang.String[] args)

        if (System.getSecurityManager() == null) {
            System.setSecurityManager(new RMISecurityManager());
        }
        String name = "//host/Compute";
        try {
            Compute engine = new ComputeEngine();
            Naming.rebind(name, engine);
            System.out.println("ComputeEngine bound");
        } catch (Exception e) {
            System.err.println("ComputeEngine exception: " + e.getMessage());
            e.printStackTrace();
        }