|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.altlinux.jabbix.ZabbixClient
public abstract class ZabbixClient
The base class of all Zabbix server clients. Implement useful methods to connect to a Zabbix server.
| Constructor Summary | |
|---|---|
ZabbixClient()
Creates a Zabbix server client. |
|
| Method Summary | |
|---|---|
InetSocketAddress |
getAddress()
Returns the configured Zabbix server socket address. |
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(InetAddress serverAddress)
Configures a server socket address using the given host address and a default Zabbix server port. |
void |
setAddress(InetSocketAddress addr)
Sets the Zabbix server socket address. |
void |
setAddress(String serverHostName)
Configures a server socket address using the given host name and a default Zabbix server port. |
void |
setHostName(String hostName)
Sets the local host name to be used in sent messages. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ZabbixClient()
| Method Detail |
|---|
public void setAddress(InetSocketAddress addr)
addr - a server socket addresspublic InetSocketAddress getAddress()
public String getHostName()
public void setHostName(String hostName)
hostName - a host namepublic void setAddress(String serverHostName)
serverHostName - a host name to configure a connection toJabbixProtocol.SERVER_PORTpublic void setAddress(InetAddress serverAddress)
serverAddress - a host address to configure a connection toJabbixProtocol.SERVER_PORT
public void setAddress(byte[] ipBytes)
throws UnknownHostException
ipBytes - a set of host IP address bytes to configure a connection to
UnknownHostException - if IP address is of illegal lengthJabbixProtocol.SERVER_PORT
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||