|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--arlut.csd.ganymede.iAdmin
RMI communications class for the admin console. Handles login and
update duties for GASHAdmin.
| Field Summary | |
private java.lang.String |
adminName
|
private java.lang.String |
adminPass
|
private arlut.csd.ganymede.adminSession |
aSession
|
(package private) static boolean |
debug
|
private arlut.csd.ganymede.GASHAdminFrame |
frame
|
private arlut.csd.JDialog.StringDialog |
permDialog
|
private arlut.csd.ganymede.Server |
server
|
(package private) java.util.Date |
serverStart
|
private java.util.Vector |
tasksKnown
|
private boolean |
tasksLoaded
|
| Fields inherited from class java.rmi.server.UnicastRemoteObject |
|
| Fields inherited from class java.rmi.server.RemoteServer |
|
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
iAdmin(arlut.csd.ganymede.Server server,
java.lang.String name,
java.lang.String pass)
|
|
| Method Summary | |
void |
changeAdmins(java.lang.String adminStatus)
This method is remotely called by the Ganymede server to update the number of admin consoles attached to the server. |
void |
changeState(java.lang.String state)
This method is remotely called by the Ganymede server to update the admin console's server state display. |
void |
changeStatus(java.lang.String status)
This method is remotely called by the Ganymede server to add to the admin console's log display. |
void |
changeTasks(java.util.Vector tasks)
This method is remotely called by the Ganymede server to update the admin console's task table. |
void |
changeUsers(java.util.Vector entries)
This method is remotely called by the Ganymede server to update the admin console's connected user table. |
(package private) void |
disableTask(java.lang.String taskName)
|
void |
disconnect()
|
(package private) void |
dumpDB()
|
(package private) void |
enableTask(java.lang.String taskName)
|
void |
forceBuild()
This method is called by admin console code to force a complete rebuild of all external builds. |
void |
forceDisconnect(java.lang.String reason)
Callback: The server can tell us to disconnect if the server is going down. |
private arlut.csd.JDialog.StringDialog |
getDialog()
|
java.lang.String |
getName()
This method is remotely called by the Ganymede server to obtain the username given when the admin console was started. |
java.lang.String |
getPassword()
This method is remotely called by the Ganymede server to obtain the password given when the admin console was started. |
arlut.csd.ganymede.ReturnVal |
handleReturnVal(arlut.csd.ganymede.ReturnVal retVal)
This method takes a ReturnVal object from the server and, if necessary, runs through a wizard interaction sequence, possibly displaying several dialogs before finally returning a final result code. |
(package private) void |
kill(java.lang.String username)
|
(package private) void |
killAll()
|
(package private) void |
pullSchema()
|
(package private) void |
refreshMe()
|
(package private) void |
runEmbeddedSweep()
|
(package private) void |
runEmbeddedTest()
|
(package private) void |
runInvidSweep()
|
(package private) void |
runInvidTest()
|
(package private) void |
runTaskNow(java.lang.String taskName)
|
void |
setFrame(arlut.csd.ganymede.GASHAdminFrame f)
|
void |
setLastDumpTime(java.util.Date date)
This method is remotely called by the Ganymede server to set the last dump date in the admin console. |
void |
setLocksHeld(int locks)
This method is remotely called by the Ganymede server to set the number of locks held in the admin console. |
void |
setMemoryState(long freeMemory,
long totalMemory)
This method is remotely called by the Ganymede server to update the memory statistics display in the admin console. |
void |
setObjectsCheckedOut(int objs)
This method is remotely called by the Ganymede server to set the number of objects checked out in the admin console. |
void |
setServerStart(java.util.Date date)
This method is remotely called by the Ganymede server to set the server start date in the admin console. |
void |
setTransactionsInJournal(int trans)
This method is remotely called by the Ganymede server to set the number of transactions in the server's journal in the admin console. |
(package private) boolean |
shutdown(boolean waitForUsers)
|
(package private) void |
stopTask(java.lang.String taskName)
|
| 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 |
| Field Detail |
static final boolean debug
private arlut.csd.ganymede.GASHAdminFrame frame
private arlut.csd.ganymede.Server server
private arlut.csd.ganymede.adminSession aSession
private java.lang.String adminName
private java.lang.String adminPass
private arlut.csd.JDialog.StringDialog permDialog
private boolean tasksLoaded
private java.util.Vector tasksKnown
java.util.Date serverStart
| Constructor Detail |
public iAdmin(arlut.csd.ganymede.Server server,
java.lang.String name,
java.lang.String pass)
throws java.rmi.RemoteException
| Method Detail |
private arlut.csd.JDialog.StringDialog getDialog()
public void setFrame(arlut.csd.ganymede.GASHAdminFrame f)
public java.lang.String getName()
This method is remotely called by the Ganymede server to obtain the username given when the admin console was started.
getName in interface Adminpublic java.lang.String getPassword()
This method is remotely called by the Ganymede server to obtain the password given when the admin console was started.
getPassword in interface Adminpublic void setServerStart(java.util.Date date)
This method is remotely called by the Ganymede server to set the server start date in the admin console.
setServerStart in interface Adminpublic void setLastDumpTime(java.util.Date date)
This method is remotely called by the Ganymede server to set the last dump date in the admin console.
setLastDumpTime in interface Adminpublic void setTransactionsInJournal(int trans)
This method is remotely called by the Ganymede server to set the number of transactions in the server's journal in the admin console.
setTransactionsInJournal in interface Adminpublic void setObjectsCheckedOut(int objs)
This method is remotely called by the Ganymede server to set the number of objects checked out in the admin console.
setObjectsCheckedOut in interface Adminpublic void setLocksHeld(int locks)
This method is remotely called by the Ganymede server to set the number of locks held in the admin console.
setLocksHeld in interface Admin
public void setMemoryState(long freeMemory,
long totalMemory)
This method is remotely called by the Ganymede server to update the memory statistics display in the admin console.
setMemoryState in interface Adminpublic void changeStatus(java.lang.String status)
This method is remotely called by the Ganymede server to add to the admin console's log display.
changeStatus in interface Adminstatus - A string to add to the console's log display, with the
trailing newline included.public void changeAdmins(java.lang.String adminStatus)
This method is remotely called by the Ganymede server to update the number of admin consoles attached to the server.
changeAdmins in interface Adminpublic void changeState(java.lang.String state)
This method is remotely called by the Ganymede server to update the admin console's server state display.
changeState in interface Adminpublic void changeUsers(java.util.Vector entries)
This method is remotely called by the Ganymede server to update the admin console's connected user table.
changeUsers in interface Adminentries - a Vector of AdminEntry
login description objects.public void changeTasks(java.util.Vector tasks)
This method is remotely called by the Ganymede server to update the admin console's task table.
changeTasks in interface Admintasks - a Vector of scheduleHandle
objects describing the tasks registered in the Ganymede server.
public void forceBuild()
throws java.rmi.RemoteException
This method is called by admin console code to force a complete rebuild of all external builds. This means that all databases will have their last modification timestamp cleared and all builder tasks will be scheduled for immediate execution.
java.rmi.RemoteException
public void disconnect()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic void forceDisconnect(java.lang.String reason)
forceDisconnect in interface Admin
void refreshMe()
throws java.rmi.RemoteException
java.rmi.RemoteException
void kill(java.lang.String username)
throws java.rmi.RemoteException
java.rmi.RemoteException
void runTaskNow(java.lang.String taskName)
throws java.rmi.RemoteException
java.rmi.RemoteException
void stopTask(java.lang.String taskName)
throws java.rmi.RemoteException
java.rmi.RemoteException
void disableTask(java.lang.String taskName)
throws java.rmi.RemoteException
java.rmi.RemoteException
void enableTask(java.lang.String taskName)
throws java.rmi.RemoteException
java.rmi.RemoteException
void killAll()
throws java.rmi.RemoteException
java.rmi.RemoteException
boolean shutdown(boolean waitForUsers)
throws java.rmi.RemoteException
java.rmi.RemoteException
void dumpDB()
throws java.rmi.RemoteException
java.rmi.RemoteException
void runInvidTest()
throws java.rmi.RemoteException
java.rmi.RemoteException
void runInvidSweep()
throws java.rmi.RemoteException
java.rmi.RemoteException
void runEmbeddedTest()
throws java.rmi.RemoteException
java.rmi.RemoteException
void runEmbeddedSweep()
throws java.rmi.RemoteException
java.rmi.RemoteException
void pullSchema()
throws java.rmi.RemoteException
java.rmi.RemoteExceptionpublic arlut.csd.ganymede.ReturnVal handleReturnVal(arlut.csd.ganymede.ReturnVal retVal)
This method takes a ReturnVal object from the server and, if necessary, runs through a wizard interaction sequence, possibly displaying several dialogs before finally returning a final result code.
Use the ReturnVal returned from this function after this function is called to determine the ultimate success or failure of any operation which returns ReturnVal, because a wizard sequence may determine the ultimate result.
This method should not be synchronized, since handleReturnVal may pop up modal (thread-blocking) dialogs, and if we we synchronize this, some Swing or AWT code seems to block on our synchronization when we do pop-up dialogs. It's not any of my code, so I assume that AWT tries to synchronize on the frame when parenting a new dialog.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||