Class SaRMIServerInfo


  • public class SaRMIServerInfo
    extends java.lang.Object
    Holds the information about the Saperion RMI Server state.
    States are e.g.
    - running
    - stopped
    Author:
    rbo
    • Constructor Detail

      • SaRMIServerInfo

        public SaRMIServerInfo​(java.lang.String serverName,
                               int serverPort,
                               boolean withSSL)
        Constructor.
        Parameters:
        serverName - Server name
        serverPort - Server port
        withSSL - With SSL
    • Method Detail

      • getSystemApplication

        public SaRMISystemConnector getSystemApplication()
        Returns:
        System application of this server.
      • restart

        public void restart()
        Restart this server.
      • getName

        public java.lang.String getName()
        Returns:
        Name
      • getPort

        public int getPort()
        Returns:
        Port
      • isFailOverServer

        public boolean isFailOverServer()
        Returns:
        Is fail over server
      • isWithSsl

        public boolean isWithSsl()
        Returns:
        true, if is with ssl
      • setRunning

        public void setRunning()
        Set running.
      • setOverload

        public void setOverload()
        Set to overloaded.
      • setStopped

        public void setStopped()
        Set to stopped.
      • getLastOverload

        public long getLastOverload()
        Returns:
        Last overload time
      • getActualServer

        public SaRMIServerInfo getActualServer()
        Reads the actual server from the list of fail over servers.
        Returns:
        Actual server
      • getFailOvers

        public java.util.List<SaRMIServerInfo> getFailOvers()
        Returns:
        Failover list
      • readSystemInfo

        public SaSystemInfo readSystemInfo​(int threshold)
        Reads system info.
        Parameters:
        threshold - threshold
        Returns:
        SystemInfo
      • getSystemInfo

        public SaSystemInfo getSystemInfo()
        Returns:
        Last system info
      • getLoad

        public int getLoad()
        Returns:
        System load in percent
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object