allensoft.bug.server
Class DatabaseBugServer
java.lang.Object
|
+--java.rmi.server.RemoteObject
|
+--java.rmi.server.RemoteServer
|
+--java.rmi.server.UnicastRemoteObject
|
+--allensoft.bug.server.DatabaseBugServer
- All Implemented Interfaces:
- BugServer, java.rmi.Remote, java.io.Serializable
- public class DatabaseBugServer
- extends java.rmi.server.UnicastRemoteObject
- implements BugServer
A bug server which inserts bug reports into a database. The database can be
initialized using the InitDatabase class which will create the required tables.
- 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 |
getClass, notify, notifyAll, wait, wait, wait |
DatabaseBugServer
public DatabaseBugServer(java.sql.Connection connection)
throws java.rmi.RemoteException,
java.sql.SQLException
finalize
protected void finalize()
- Overrides:
finalize
in class java.lang.Object
processBugReport
public void processBugReport(BugReport bugReport)
throws java.rmi.RemoteException,
NestingException
- Description copied from interface:
BugServer
- Process the supplied bug report.
- Specified by:
processBugReport
in interface BugServer
insertCrashReport
protected void insertCrashReport(CrashReport crashReport)
throws java.sql.SQLException
insertBugReport
protected void insertBugReport(BugReport bugReport)
throws java.sql.SQLException
main
public static void main(java.lang.String[] args)
- Main entry point for the bug server. This will initialize a connection
to a database and create a new DatabaseBugServer for that connection and register
the object with the RMI registry.