sbd
Class ComputeEngine

java.lang.Object
  extended by java.rmi.server.RemoteObject
      extended by java.rmi.server.RemoteServer
          extended by java.rmi.server.UnicastRemoteObject
              extended by sbd.ComputeEngine
All Implemented Interfaces:
java.io.Serializable, java.rmi.Remote, Compute

public class ComputeEngine
extends java.rmi.server.UnicastRemoteObject
implements Compute

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.rmi.server.RemoteObject
ref
 
Constructor Summary
ComputeEngine()
          creates a new CompueEngine
 
Method Summary
 java.lang.String execute(baseCommand bc)
          executes a base command
 boolean hasPermisions(baseCommand bc)
          check if the baseCommand has permisions to be executed
static void main(java.lang.String[] args)
          launches a new sBD
 boolean verifyLogin(baseCommand bc)
          Verifies the baseCommand login
 
Methods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, unexportObject
 
Methods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLog
 
Methods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStub
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ComputeEngine

public ComputeEngine()
              throws java.rmi.RemoteException
creates a new CompueEngine

Throws:
java.rmi.RemoteException
Method Detail

verifyLogin

public boolean verifyLogin(baseCommand bc)
Description copied from interface: Compute
Verifies the baseCommand login

Specified by:
verifyLogin in interface Compute
Parameters:
bc - the base command
Returns:
true if the login has been verified

execute

public java.lang.String execute(baseCommand bc)
Description copied from interface: Compute
executes a base command

Specified by:
execute in interface Compute
Parameters:
bc - the base command
Returns:
the base command execution

hasPermisions

public boolean hasPermisions(baseCommand bc)
Description copied from interface: Compute
check if the baseCommand has permisions to be executed

Specified by:
hasPermisions in interface Compute
Parameters:
bc - the baseCommand
Returns:
true if the username has permisions to execute the command

main

public static void main(java.lang.String[] args)
launches a new sBD

Parameters:
args - not used