jpl.mipl.cassini.CDRS.qviewer.core.server
Class Application

java.lang.Object
  extended by jpl.mipl.cassini.CDRS.qviewer.core.server.Application
Direct Known Subclasses:
QViewerApp

public abstract class Application
extends Object

 This application class ensures that the application begins and exits
 properly. It's adapted from MSAS:jpl/msas/core/server/Application.java

 Copyright 2002, California Institute of Technology.
 ALL RIGHTS RESERVED.
 U.S. Government Sponsorship acknowledge.

 CASSINI DOWNLINK TELEMETRY PROCESSING.

 History :
 ---------

 Date        Who                 What
 -----------------------------------------------------------------------------
 04/17/2002  Cecilia Cheng       Created this file
 05/24/2002  Cecilia Cheng       Initial Release
 08/09/2002  Cecilia Cheng       D29.0.1
 08/20/2002  Cecilia Cheng       Use netbeans to add javadoc comments

==============================================================================
 

Version:
1.0
Author:
Cecilia Cheng x4-1452 Cecilia.Cheng@jpl.nasa.gov

Constructor Summary
Application()
           
 
Method Summary
static void addCleanUp(CleanUp process)
          Add the clean up process
abstract  void begin()
          This tells the client to start doing something, including initialization.
static void exit()
          Exit properly
static void exit(int code)
          Exit properly
static void exit(String message)
          Exit properly
static void exit(String message, int code)
          Exit properly
abstract  void finish()
          This routine is called to tell the client to cleanup from execution if needed (threads, servers, sockets, shells, etc.)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Application

public Application()
Method Detail

begin

public abstract void begin()
This tells the client to start doing something, including initialization. Returning from this procedure means you are 'exiting' the program


finish

public abstract void finish()
This routine is called to tell the client to cleanup from execution if needed (threads, servers, sockets, shells, etc.)


addCleanUp

public static void addCleanUp(CleanUp process)
Add the clean up process

Parameters:
process - the clean up process to be added

exit

public static void exit()
Exit properly


exit

public static void exit(int code)
Exit properly

Parameters:
code - the exit code

exit

public static void exit(String message)
Exit properly

Parameters:
message - the exit message

exit

public static void exit(String message,
                        int code)
Exit properly

Parameters:
message - the exit message
code - the exit code