java.lang.Object
org.qubership.atp.mia.model.environment.Server

public class Server extends Object
  • Constructor Details

  • Method Details

    • getName

      public String getName()
    • getUser

      public String getUser()
    • getPass

      public String getPass()
    • getKey

      public String getKey()
    • getPassPhrase

      public String getPassPhrase()
    • getPty

      public boolean getPty()
      Get pty from environment. If not defined or incorrect value then 'true'.
      Returns:
      pty from environment. true if not defined or incorrect value
    • getTimeoutConnect

      public int getTimeoutConnect()
      Get timeout connect from environment. If not defined or incorrect value then 1 minute.
      Returns:
      timeout connect from environment. 1 minute if not defined or incorrect value
    • getTimeoutConnect

      public int getTimeoutConnect(int defaultValue, int maxValue)
      Get timeout connect from environment. If not defined or incorrect value then 1 minute.
      Returns:
      timeout connect from environment. defaultValue in milliseconds if not defined or incorrect value
    • getTimeoutExecute

      public int getTimeoutExecute()
      Get timeout execute from environment. If not defined or incorrect value then 60 minute.
      Returns:
      timeout execute from environment. 60 minute if not defined or incorrect value
    • getTimeoutExecute

      public int getTimeoutExecute(int defaultValue, int maxValue)
      Get timeout execute from environment. If not defined or incorrect value then 60 minute.
      Returns:
      timeout execute from environment. defaultValue in milliseconds if not defined or incorrect value
    • getTimeOutFileDownload

      public long getTimeOutFileDownload()
      Get Wait timeout for next trial in case of fileDownload from Server failed.
      Returns:
      timeout in millSeconds to wait for next retrial
    • getSshServerKexAlgorithms

      public String getSshServerKexAlgorithms()
    • getProperty

      public String getProperty(String key)
      Get property from connection.
      Parameters:
      key - parameter key
      Returns:
      property value, NULL in case connection or parameter doesn't exist
    • getProperties

      public Map<String,String> getProperties()
    • getHostFull

      public String getHostFull()
    • getHost

      public String getHost()
      Gets host from property.
      Returns:
      host, NullPointerException otherwise
    • getPort

      public int getPort()
      Gets port from host property, for e.g. 127.0.0.1:24, then port will be 24. If port not present in host property then default 22 will be returned.
      Returns:
      int port value.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getChannelsPerSession

      public int getChannelsPerSession()
      Returns number of channels per session for one Ssh server. When amount of channels exceeds this value the next channel will be queued.
      Returns:
      int value.
    • getConnection

      public Connection getConnection()
    • toString

      public String toString()
      Overrides:
      toString in class Object