Package sk.ipesoft.d2000.d2japi
Class ConnectionParameters
- java.lang.Object
-
- sk.ipesoft.d2000.d2japi.ConnectionParameters
-
public class ConnectionParameters extends java.lang.Object
Parameters of direct connection fromRedundantConnectionManager
.
-
-
Constructor Summary
Constructors Constructor Description ConnectionParameters(java.lang.String address, int port)
Create new instance of parameters specifying unencrypted connection.ConnectionParameters(java.lang.String address, int port, java.lang.String certificatePath)
Create new instance of parameters specifying TLS connection.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.lang.String
getAddress()
Get IP address or host name of d2connector.exe process location.java.lang.String
getCertificatePath()
Get optional path to file with certificate.java.lang.String
getConnectionString()
Get formated address:port string.int
getPort()
Get port number on which d2connector.exe process listens for JAPI connections.int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
ConnectionParameters
public ConnectionParameters(java.lang.String address, int port, java.lang.String certificatePath)
Create new instance of parameters specifying TLS connection.- Parameters:
address
- IP address or host name of d2connector.exe process locationport
- port number on which d2connector.exe process listens for JAPI connectionscertificatePath
- path to file with certificate
-
ConnectionParameters
public ConnectionParameters(java.lang.String address, int port)
Create new instance of parameters specifying unencrypted connection.- Parameters:
address
- IP address or host name of d2connector.exe process locationport
- port number on which d2connector.exe process listens for JAPI connections
-
-
Method Detail
-
getAddress
public java.lang.String getAddress()
Get IP address or host name of d2connector.exe process location.- Returns:
- IP address or host name of d2connector.exe process location
-
getCertificatePath
public java.lang.String getCertificatePath()
Get optional path to file with certificate.- Returns:
- optional path to file with certificate
-
getPort
public int getPort()
Get port number on which d2connector.exe process listens for JAPI connections.- Returns:
- port number on which d2connector.exe process listens for JAPI connections
-
getConnectionString
public java.lang.String getConnectionString()
Get formated address:port string.- Returns:
- formated address:port string
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
-