WhiteBoard Using RMI
WSU CEG 7370 WhiteBoard Using Java RMI
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
WhiteBoard.WbAdmin Class Reference

Public Member Functions

 WbAdmin ()
 

Static Public Member Functions

static void main (String[] args)
 

Private Member Functions

void addClientReq ()
 
void queryReq ()
 
void serverCreate ()
 
void transferReq ()
 
void userInteract ()
 

Private Attributes

Vector vServers
 

Static Private Attributes

static final String menu
 

Detailed Description

Definition at line 9 of file WbAdmin.java.

Constructor & Destructor Documentation

WhiteBoard.WbAdmin.WbAdmin ( )

Definition at line 16 of file WbAdmin.java.

References WhiteBoard.WbAdmin.vServers.

Referenced by WhiteBoard.WbAdmin.main().

16  {
17  vServers = new Vector();
18  }

+ Here is the caller graph for this function:

Member Function Documentation

void WhiteBoard.WbAdmin.addClientReq ( )
private

Definition at line 25 of file WbAdmin.java.

Referenced by WhiteBoard.WbAdmin.userInteract().

25  {
26  String args = Invoke.promptAndGet("BoardName DisplayOn ServerURL");
27  Invoke.javaVM('C', args);
28  }

+ Here is the caller graph for this function:

static void WhiteBoard.WbAdmin.main ( String[]  args)
static

Definition at line 51 of file WbAdmin.java.

References WhiteBoard.WbAdmin.WbAdmin().

51  {
52  WbAdmin wa = new WbAdmin();
53  wa.userInteract();
54  }

+ Here is the call graph for this function:

void WhiteBoard.WbAdmin.queryReq ( )
private

Definition at line 34 of file WbAdmin.java.

Referenced by WhiteBoard.WbAdmin.userInteract().

34  {
35  // Query for inforamtion from each server. For you TODO
36  }

+ Here is the caller graph for this function:

void WhiteBoard.WbAdmin.serverCreate ( )
private

Definition at line 20 of file WbAdmin.java.

Referenced by WhiteBoard.WbAdmin.userInteract().

20  {
21  String args = Invoke.promptAndGet("ServerMachineName");
22  Invoke.javaVM('S', args);
23  }

+ Here is the caller graph for this function:

void WhiteBoard.WbAdmin.transferReq ( )
private

Definition at line 30 of file WbAdmin.java.

Referenced by WhiteBoard.WbAdmin.userInteract().

30  {
31  // Transfer a white board to a new server. For you TODO
32  }

+ Here is the caller graph for this function:

void WhiteBoard.WbAdmin.userInteract ( )
private

Definition at line 38 of file WbAdmin.java.

References WhiteBoard.WbAdmin.addClientReq(), WhiteBoard.WbAdmin.menu, WhiteBoard.WbAdmin.queryReq(), WhiteBoard.WbAdmin.serverCreate(), and WhiteBoard.WbAdmin.transferReq().

38  {
39  while (true) {
40  String choice = Invoke.promptAndGet(menu);
41  switch (choice.charAt(0)) {
42  case 's': serverCreate(); break;
43  case 'a': addClientReq(); break;
44  case 'q': queryReq(); break;
45  case 't': transferReq(); break;
46  case 'x': System.exit(0); break;
47  }
48  }
49  }
void addClientReq()
Definition: WbAdmin.java:25
void serverCreate()
Definition: WbAdmin.java:20
static final String menu
Definition: WbAdmin.java:13
void transferReq()
Definition: WbAdmin.java:30

+ Here is the call graph for this function:

Member Data Documentation

final String WhiteBoard.WbAdmin.menu
staticprivate
Initial value:
= "\nWbAdmin: create a " +
"[s]erver, [a]dd client, [q]uery, [t]ransfer, e[x]it"

Definition at line 13 of file WbAdmin.java.

Referenced by WhiteBoard.WbAdmin.userInteract().

Vector WhiteBoard.WbAdmin.vServers
private

Definition at line 11 of file WbAdmin.java.

Referenced by WhiteBoard.WbAdmin.WbAdmin().


The documentation for this class was generated from the following file:
Copyright © 2014 www.wright.edu/~pmateti;   thanks to doxygen