psdi.app.configure.virtual

Class ProcessMonitor

  • All Implemented Interfaces:
    java.rmi.Remote, MboConstants, MboRemote, NonPersistentMboRemote, MaxRemoteProxy
    Direct Known Subclasses:
    AdminMonitor, ODMERunMonitor


    public class ProcessMonitor
    extends NonPersistentMbo
    implements NonPersistentMboRemote
    The ProcessMonitor virtual object is used for populating dialogs where the status of a long-running process has to be displayed. For examples, see the Configur app, dialogs "configdb_*" and library dialogs "adminmode_*", and their related beans.

    This is a system level object.

    The attributes in this object are as follows.

    Attribute NameDescription
    CompletionStatusInteger field for status flags. The flag defaults to 0, and standard values are shown below. Specific processes are free to define their own flags, and are responsible for updating the flag, if it is being used somewhere. The attribute is provided on ProcessMonitor merely as a convenience; it is not generically updated.
    • PROCESS_RUNNING -- Process is running
    • PROCESS_SUCCESS -- Process completed successfully
    • PROCESS_ERROR -- Process completed with errors
    ConfirmYORN field for supplying a checkbox on the dialog.
    StatusClob field for displaying process status.
    • Field Detail

      • PROCESS_RUNNING

        public static int PROCESS_RUNNING
      • PROCESS_SUCCESS

        public static int PROCESS_SUCCESS
      • PROCESS_ERROR

        public static int PROCESS_ERROR
    • Constructor Detail

      • ProcessMonitor

        public ProcessMonitor(MboSet ms)
                       throws MXException,
                              java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
    • Method Detail

      • add

        public void add()
                 throws MXException,
                        java.rmi.RemoteException
        Description copied from class: Mbo
        This is called when a new Mbo is added to the Mboset collection. It is called AFTER user defaults have been set from the data dictionary. Programmer should usually override this to set some defaults. Default behavior is to do nothing.
        Specified by:
        add in interface MboRemote
        Overrides:
        add in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException