psdi.server

Class SrvComm

  • java.lang.Object
    • java.rmi.server.RemoteObject
      • java.rmi.server.RemoteServer
        • java.rmi.server.UnicastRemoteObject
          • psdi.server.SrvComm
  • All Implemented Interfaces:
    java.io.Serializable, java.rmi.Remote, SrvCommRemote


    public class SrvComm
    extends java.rmi.server.UnicastRemoteObject
    implements SrvCommRemote
    A Command and Control interface for the MXServer.
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class java.rmi.server.RemoteObject

        ref
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String checkMemory() 
      void cmd(java.lang.String[] argv) 
      void disableService(java.lang.String module) 
      void enableService(java.lang.String module) 
      int getDBConnFree() 
      int getDBConnTotal() 
      int getDBConnUsed() 
      java.lang.String[] getFreeMemory()
      Returns a String array of JVM runtime free memory for this server
      java.util.Vector getGarbageCollectors()
      Returns the Managed Runtime Garbage Collector list for the current JVM
      java.lang.String[] getHeapUsage()
      Returns the Managed Runtime Memory Bean for the current JVM
      java.lang.String[] getMemory()
      Returns a String array of JVM runtime memory for this server
      int getRemoteUsersSize()
      Return the remoteUser Hashtable
      NOT RUNNING YET
      java.lang.management.RuntimeMXBean getRuntimeManagedBean()
      Returns the Managed Runtime Bean for the current JVM
      void logger(java.lang.String arg) 
      static void main(java.lang.String[] argv) 
      void mboCount(boolean on) 
      void mboCountOff() 
      void mboCountOn() 
      void printUsage() 
      java.util.Date reloadDBConnections() 
      java.util.Date restartRegistry() 
      void serviceOff(java.lang.String arg) 
      void serviceOn(java.lang.String arg) 
      void setLoggerLevel(java.lang.String nameValue) 
      void shutDown() 
      void shutDown(java.lang.String serviceType) 
      void stop() 
      • 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
    • Constructor Detail

      • SrvComm

        public SrvComm(MXServer mxServer)
                throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • SrvComm

        public SrvComm()
                throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • checkMemory

        public java.lang.String checkMemory()
                                     throws java.rmi.RemoteException
        Specified by:
        checkMemory in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • shutDown

        public void shutDown()
                      throws java.rmi.RemoteException
        Specified by:
        shutDown in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • shutDown

        public void shutDown(java.lang.String serviceType)
                      throws java.rmi.RemoteException
        Specified by:
        shutDown in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • reloadDBConnections

        public java.util.Date reloadDBConnections()
                                           throws java.rmi.RemoteException
        Specified by:
        reloadDBConnections in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • restartRegistry

        public java.util.Date restartRegistry()
                                       throws java.rmi.RemoteException
        Specified by:
        restartRegistry in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • enableService

        public void enableService(java.lang.String module)
                           throws java.rmi.RemoteException
        Specified by:
        enableService in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • disableService

        public void disableService(java.lang.String module)
                            throws java.rmi.RemoteException
        Specified by:
        disableService in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • setLoggerLevel

        public void setLoggerLevel(java.lang.String nameValue)
                            throws java.rmi.RemoteException
        Specified by:
        setLoggerLevel in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • mboCount

        public void mboCount(boolean on)
                      throws java.rmi.RemoteException
        Specified by:
        mboCount in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • getRemoteUsersSize

        public int getRemoteUsersSize()
                               throws java.rmi.RemoteException
        Return the remoteUser Hashtable
        NOT RUNNING YET
        Specified by:
        getRemoteUsersSize in interface SrvCommRemote
        Returns:
        null
        Throws:
        java.rmi.RemoteException
      • getDBConnTotal

        public int getDBConnTotal()
                           throws java.rmi.RemoteException
        Specified by:
        getDBConnTotal in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • getDBConnUsed

        public int getDBConnUsed()
                          throws java.rmi.RemoteException
        Specified by:
        getDBConnUsed in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • getDBConnFree

        public int getDBConnFree()
                          throws java.rmi.RemoteException
        Specified by:
        getDBConnFree in interface SrvCommRemote
        Throws:
        java.rmi.RemoteException
      • main

        public static void main(java.lang.String[] argv)
      • cmd

        public void cmd(java.lang.String[] argv)
      • stop

        public void stop()
                  throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • serviceOn

        public void serviceOn(java.lang.String arg)
                       throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • serviceOff

        public void serviceOff(java.lang.String arg)
                        throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • logger

        public void logger(java.lang.String arg)
                    throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • mboCountOn

        public void mboCountOn()
                        throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • mboCountOff

        public void mboCountOff()
                         throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
      • printUsage

        public void printUsage()
      • getMemory

        public java.lang.String[] getMemory()
                                     throws java.rmi.RemoteException
        Returns a String array of JVM runtime memory for this server
        Specified by:
        getMemory in interface SrvCommRemote
        Returns:
        String [ServerName, total_memory, free_memory, max_memory]
        Throws:
        java.rmi.RemoteException
      • getFreeMemory

        public java.lang.String[] getFreeMemory()
                                         throws java.rmi.RemoteException
        Returns a String array of JVM runtime free memory for this server
        Specified by:
        getFreeMemory in interface SrvCommRemote
        Returns:
        String [ServerName, total_memory, free_memory, max_memory]
        Throws:
        java.rmi.RemoteException
      • getRuntimeManagedBean

        public java.lang.management.RuntimeMXBean getRuntimeManagedBean()
                                                                 throws java.rmi.RemoteException
        Returns the Managed Runtime Bean for the current JVM
        Specified by:
        getRuntimeManagedBean in interface SrvCommRemote
        Returns:
        RuntimeMXBean
        Throws:
        java.rmi.RemoteException
      • getHeapUsage

        public java.lang.String[] getHeapUsage()
                                        throws java.rmi.RemoteException
        Returns the Managed Runtime Memory Bean for the current JVM
        Specified by:
        getHeapUsage in interface SrvCommRemote
        Returns:
        RuntimeMXBean
        Throws:
        java.rmi.RemoteException
      • getGarbageCollectors

        public java.util.Vector getGarbageCollectors()
                                              throws java.rmi.RemoteException
        Returns the Managed Runtime Garbage Collector list for the current JVM
        Specified by:
        getGarbageCollectors in interface SrvCommRemote
        Returns:
        RuntimeMXBean
        Throws:
        java.rmi.RemoteException