Class Server
java.lang.Object
org.qubership.atp.mia.model.environment.Server
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintReturns number of channels per session for one Ssh server.getHost()Gets host from property.getKey()getName()getPass()intgetPort()Gets port from host property, for e.g.getProperty(String key) Get property from connection.booleangetPty()Get pty from environment.intGet timeout connect from environment.intgetTimeoutConnect(int defaultValue, int maxValue) Get timeout connect from environment.intGet timeout execute from environment.intgetTimeoutExecute(int defaultValue, int maxValue) Get timeout execute from environment.longGet Wait timeout for next trial in case of fileDownload from Server failed.getUser()inthashCode()toString()
-
Constructor Details
-
Server
-
-
Method Details
-
getName
-
getUser
-
getPass
-
getKey
-
getPassPhrase
-
getPty
public boolean getPty()Get pty from environment. If not defined or incorrect value then 'true'.- Returns:
- pty from environment.
trueif 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
-
getProperty
Get property from connection.- Parameters:
key- parameter key- Returns:
- property value, NULL in case connection or parameter doesn't exist
-
getProperties
-
getHostFull
-
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
-
hashCode
public int hashCode() -
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
-
toString
-