|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnathan.middleware.Client
public class Client
Client is the client portion of the RMI application.
The client application uses stub objects to invoke
methods on remote objects. The application is used
to access a remote student list.
To run the client: Client [Service Name] [Regisrty IP] [Registry Port].
Service Name is the name of the remote object which is wished to be used.
Registry IP is the IP of the registry that is used to locate a
reference to a remote object.
Registry Port is the port number that the registry is listening on.
Constructor Summary | |
---|---|
Client()
Creates a new instance of the client object. |
|
Client(java.lang.String serviceName,
java.lang.String registryIP,
int registryPort)
Creates a new client object. |
Method Summary | |
---|---|
void |
addStudent()
addStudent add a student to remote list of students on the server. |
void |
deleteStudent()
Deletes a student from the server. |
void |
displayMenu()
Displays the menu of availiable options to the user. |
Student |
find()
Find returns a students from the server. |
void |
getGrade()
Gets the grades of a student on the server and displays them. |
StudentList |
getStub()
getStub is used to look up a reference to a stub when the application is using more than one remote object. |
void |
listAllStudents()
Lists all students that are on the server. |
void |
lookupReference()
lookupReference is used to allow the user to lookup a new remote object to use in the application. |
static void |
main(java.lang.String[] args)
Main entry point to the client application |
void |
runProgram()
Runs the application. |
void |
setGrade()
Sets the grade of a student on the server. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Client()
public Client(java.lang.String serviceName, java.lang.String registryIP, int registryPort)
serviceName
- The name of the serviceregistryIP
- The ip address of the registry.registryPort
- The port number of the registry.Method Detail |
---|
public StudentList getStub()
public void lookupReference()
public void displayMenu()
public void deleteStudent()
public void listAllStudents()
public Student find()
public void setGrade()
public void getGrade()
public void addStudent()
public void runProgram()
public static void main(java.lang.String[] args)
args
- The command line arguments supplied by the user.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |