sbd
Class ComputeEngine
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
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
Fields inherited from class java.rmi.server.RemoteObject |
ref |
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 |
ComputeEngine
public ComputeEngine()
throws java.rmi.RemoteException
- creates a new CompueEngine
- Throws:
java.rmi.RemoteException
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