psdi.server

Class MaxVarService

    • Constructor Detail

      • MaxVarService

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

        public MaxVarService(java.lang.String url,
                             MXServer mxServer)
                      throws java.rmi.RemoteException
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • destroy

        public void destroy()
        Description copied from interface: Service
        Release system resources. The object should release all system resources. This will be called only once and is called to prepare the object for finalization.
        Specified by:
        destroy in interface Service
        Overrides:
        destroy in class AppService
        See Also:
        Service
      • getString

        public java.lang.String getString(java.lang.String key,
                                          java.lang.String orgSite)
                                   throws MXException
        Return the value for the MaxVar as a string
        Specified by:
        getString in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The value for the MaxVar
        Throws:
        MXException
      • getStringList

        public java.lang.String[] getStringList(java.lang.String key,
                                                java.lang.String orgSite)
                                         throws MXException,
                                                java.rmi.RemoteException
        Return the specified variable as a String[]. In the DB this is stored as a ',' separated list of values.
        Specified by:
        getStringList in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The values for the MaxVar
        Throws:
        MXException
        java.rmi.RemoteException
      • getInt

        public int getInt(java.lang.String key,
                          java.lang.String orgSite)
                   throws MXException
        Return the value for the MaxVar as an integer
        Specified by:
        getInt in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The value for the MaxVar
        Throws:
        MXException
      • getBoolean

        public boolean getBoolean(java.lang.String key,
                                  java.lang.String orgSite)
                           throws MXException
        Return the value for the MaxVar as a boolean
        Specified by:
        getBoolean in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The value for the MaxVar
        Throws:
        MXException
      • getDouble

        public double getDouble(java.lang.String key,
                                java.lang.String orgSite)
                         throws MXException
        Return the value for the MaxVar as a double
        Specified by:
        getDouble in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The value for the MaxVar
        Throws:
        MXException
      • getFloat

        public float getFloat(java.lang.String key,
                              java.lang.String orgSite)
                       throws MXException
        Return the value for the MaxVar as a float
        Specified by:
        getFloat in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The value for the MaxVar
        Throws:
        MXException
      • getLong

        public long getLong(java.lang.String key,
                            java.lang.String orgSite)
                     throws MXException
        Return the value for the MaxVar as a long
        Specified by:
        getLong in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        The value for the MaxVar
        Throws:
        MXException
      • isNull

        public boolean isNull(java.lang.String key,
                              java.lang.String orgSite)
                       throws MXException
        Return true if the row exists in maxvars but the varvalue is null.
        Specified by:
        isNull in interface MaxVarServiceRemote
        Parameters:
        key - The name of the MaxVar
        orgSite -
        Returns:
        boolean
        Throws:
        MXException
      • setURL

        public void setURL(java.lang.String url)
        Required by ServiceRemote.
        Specified by:
        setURL in interface Service
        Overrides:
        setURL in class AppService
      • getLoad

        public int getLoad()
        Required by ServiceRemote. May return the load of the whole MXServer.
        Overrides:
        getLoad in class AppService
      • restart

        public void restart()
                     throws java.rmi.RemoteException
        Flushes old values out of internal cache
        Specified by:
        restart in interface ServiceRemote
        Overrides:
        restart in class AppService
        Throws:
        java.rmi.RemoteException
      • getMaxVarType

        public java.lang.String getMaxVarType(java.lang.String key)
                                       throws java.rmi.RemoteException,
                                              MXException
        Returns the maxvartype for the varname
        Specified by:
        getMaxVarType in interface MaxVarServiceRemote
        Parameters:
        key -
        Returns:
        maxvartype
        Throws:
        MXException,RemoteException
        java.rmi.RemoteException
        MXException
      • getString

        public java.lang.String getString(java.lang.String key,
                                          java.lang.String org,
                                          java.lang.String site)
                                   throws java.rmi.RemoteException,
                                          MXException
        Returns the value for maxvar for given org and site
        Specified by:
        getString in interface MaxVarServiceRemote
        Parameters:
        key -
        org -
        site -
        Returns:
        var value
        Throws:
        MXException,RemoteException
        java.rmi.RemoteException
        MXException