org.opennms.netmgt.provision.detector.generic.client
Class GpClient
java.lang.Object
org.opennms.netmgt.provision.detector.generic.client.GpClient
- All Implemented Interfaces:
- Client<GpRequest,GpResponse>
public class GpClient
- extends Object
- implements Client<GpRequest,GpResponse>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GpClient
public GpClient()
close
public void close()
- Specified by:
close in interface Client<GpRequest,GpResponse>
connect
public void connect(InetAddress address,
int port,
int timeout)
throws IOException,
Exception
- Specified by:
connect in interface Client<GpRequest,GpResponse>
- Throws:
IOException
Exception
receiveBanner
public GpResponse receiveBanner()
throws IOException,
Exception
- Specified by:
receiveBanner in interface Client<GpRequest,GpResponse>
- Throws:
IOException
Exception
sendRequest
public GpResponse sendRequest(GpRequest request)
throws IOException,
Exception
- Specified by:
sendRequest in interface Client<GpRequest,GpResponse>
- Throws:
IOException
Exception
setScript
public void setScript(String script)
getScript
public String getScript()
setArgs
public void setArgs(String args)
getArgs
public String getArgs()
setBanner
public void setBanner(String banner)
getBanner
public String getBanner()
setMatch
public void setMatch(String match)
getMatch
public String getMatch()
setHoption
public void setHoption(String hoption)
getHoption
public String getHoption()
setToption
public void setToption(String toption)
getToption
public String getToption()
setExitStatus
public void setExitStatus(int exitStatus)
getExitStatus
public int getExitStatus()
setResponse
public void setResponse(String response)
getResponse
public String getResponse()
setError
public void setError(String error)
getError
public String getError()
Copyright © 2009. All Rights Reserved.