public abstract class ZabbixClient
extends java.lang.Object
| Constructor and Description |
|---|
ZabbixClient()
Creates a Zabbix server client.
|
| Modifier and Type | Method and Description |
|---|---|
java.net.InetSocketAddress |
getAddress()
Returns the configured Zabbix server socket address.
|
java.lang.String |
getHostName()
Return the configured local host name.
|
void |
setAddress(byte[] ipBytes)
Configures a server socket address using the given IP address and a
default Zabbix server port.
|
void |
setAddress(java.net.InetAddress serverAddress)
Configures a server socket address using the given host address and a
default Zabbix server port.
|
void |
setAddress(java.net.InetSocketAddress addr)
Sets the Zabbix server socket address.
|
void |
setAddress(java.lang.String serverHostName)
Configures a server socket address using the given host name and a
default Zabbix server port.
|
void |
setHostName(java.lang.String hostName)
Sets the local host name to be used in sent messages.
|
public void setAddress(java.net.InetSocketAddress addr)
addr - a server socket addresspublic java.net.InetSocketAddress getAddress()
public java.lang.String getHostName()
public void setHostName(java.lang.String hostName)
hostName - a host namepublic void setAddress(java.lang.String serverHostName)
serverHostName - a host name to configure a connection toJabbixProtocol.SERVER_PORTpublic void setAddress(java.net.InetAddress serverAddress)
serverAddress - a host address to configure a connection toJabbixProtocol.SERVER_PORTpublic void setAddress(byte[] ipBytes)
throws java.net.UnknownHostException
ipBytes - a set of host IP address bytes to configure a connection tojava.net.UnknownHostException - if IP address is of illegal lengthJabbixProtocol.SERVER_PORT