|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.netmgt.provision.detector.simple.client.NrpeClient
public class NrpeClient
NrpeClient class.
| Constructor Summary | |
|---|---|
NrpeClient()
|
|
| Method Summary | |
|---|---|
void |
close()
close |
void |
connect(InetAddress address,
int port,
int timeout)
connect |
InputStream |
getInput()
getInput |
OutputStream |
getOutput()
getOutput |
int |
getPadding()
getPadding |
protected Socket |
getWrappedSocket(InetAddress address,
int port,
int timeout)
getWrappedSocket |
boolean |
isUseSsl()
isUseSsl |
NrpePacket |
receiveBanner()
receiveBanner |
NrpePacket |
sendRequest(NrpeRequest request)
sendRequest |
void |
setInput(InputStream in)
setInput |
void |
setOutput(OutputStream out)
setOutput |
void |
setPadding(int padding)
setPadding |
void |
setUseSsl(boolean useSsl)
setUseSsl |
protected Socket |
wrapSocket(Socket socket,
String hostAddress,
int port)
wrapSocket |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NrpeClient()
| Method Detail |
|---|
public void close()
close
close in interface Client<NrpeRequest,NrpePacket>
public void connect(InetAddress address,
int port,
int timeout)
throws IOException,
Exception
connect
connect in interface Client<NrpeRequest,NrpePacket>address - a InetAddress object.port - a int.timeout - a int.
IOException - if any.
Exception - if any.
protected Socket getWrappedSocket(InetAddress address,
int port,
int timeout)
throws IOException
getWrappedSocket
address - a InetAddress object.port - a int.timeout - a int.
Socket object.
IOException - if any.
protected Socket wrapSocket(Socket socket,
String hostAddress,
int port)
throws Exception
wrapSocket
socket - a Socket object.hostAddress - a String object.port - a int.
Socket object.
Exception - if any.
public NrpePacket receiveBanner()
throws IOException,
Exception
receiveBanner
receiveBanner in interface Client<NrpeRequest,NrpePacket>NrpePacket object.
IOException - if any.
Exception - if any.
public NrpePacket sendRequest(NrpeRequest request)
throws IOException,
Exception
sendRequest
sendRequest in interface Client<NrpeRequest,NrpePacket>request - a NrpeRequest object.
NrpePacket object.
IOException - if any.
Exception - if any.public void setPadding(int padding)
setPadding
padding - a int.public int getPadding()
getPadding
public void setUseSsl(boolean useSsl)
setUseSsl
useSsl - a boolean.public boolean isUseSsl()
isUseSsl
public void setOutput(OutputStream out)
setOutput
out - a OutputStream object.public OutputStream getOutput()
getOutput
OutputStream object.public void setInput(InputStream in)
setInput
in - a InputStream object.public InputStream getInput()
getInput
InputStream object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||