server
Class Invoker
java.lang.Object
server.Invoker
public class Invoker
- extends java.lang.Object
This class implemented the invoker of the Command design pattern. An
invoker is an object that receives a command, establishes a connection with
a server through a DAO, and executed the actions of the command on the
server.
- Author:
- Fernando
|
Constructor Summary |
Invoker(java.lang.String newHost,
int newPort)
Constructor method. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Invoker
public Invoker(java.lang.String newHost,
int newPort)
- Constructor method.
- Parameters:
newHost - the host where a connection must be established.newPort - the port in the server host where connection must be made.
invoke
public final void invoke(DaoImpl d,
Command c)
- This method invokes a command over a DAO.
- Parameters:
d - the DAO that will interface communication with the server.c - the command that contains the actions that will be executed.