Class NsclientDetector
- java.lang.Object
-
- org.opennms.netmgt.provision.support.AbstractDetector
-
- org.opennms.netmgt.provision.support.SyncAbstractDetector
-
- org.opennms.netmgt.provision.support.BasicDetector<NsclientRequest,NsclientPacket>
-
- org.opennms.protocols.nsclient.detector.NsclientDetector
-
- All Implemented Interfaces:
ServiceDetector
,SyncServiceDetector
public class NsclientDetector extends BasicDetector<NsclientRequest,NsclientPacket>
NsclientDetector class.
- Version:
- $Id: $
- Author:
- Alejandro Galue
-
-
Constructor Summary
Constructors Constructor Description NsclientDetector()
Default constructorNsclientDetector(String serviceName, int port)
Constructor for creating a non-default service based on this protocol
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Client<NsclientRequest,NsclientPacket>
getClient()
getClientString
getCommand()
int
getCritPerc()
String
getParameter()
String
getPassword()
int
getWarnPerc()
protected void
onInit()
onInitvoid
setCommand(String command)
void
setCritPerc(int critPerc)
void
setParameter(String parameter)
void
setPassword(String password)
void
setWarnPerc(int warnPerc)
-
Methods inherited from class org.opennms.netmgt.provision.support.BasicDetector
dispose, expectBanner, getConversation, isServiceDetected, send, send
-
Methods inherited from class org.opennms.netmgt.provision.support.SyncAbstractDetector
detect
-
Methods inherited from class org.opennms.netmgt.provision.support.AbstractDetector
getIpMatch, getPort, getRetries, getServiceName, getTimeout, init, setIpMatch, setPort, setRetries, setServiceName, setTimeout
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.provision.ServiceDetector
getIpMatch, getPort, getServiceName, getTimeout, init, setIpMatch, setPort, setServiceName, setTimeout
-
-
-
-
Method Detail
-
onInit
protected void onInit()
Description copied from class:AbstractDetector
onInit
- Specified by:
onInit
in classAbstractDetector
-
getClient
protected Client<NsclientRequest,NsclientPacket> getClient()
Description copied from class:BasicDetector
getClient
- Specified by:
getClient
in classBasicDetector<NsclientRequest,NsclientPacket>
- Returns:
- a
Client
object.
-
getCommand
public String getCommand()
-
setCommand
public void setCommand(String command)
-
getPassword
public String getPassword()
-
setPassword
public void setPassword(String password)
-
getParameter
public String getParameter()
-
setParameter
public void setParameter(String parameter)
-
getWarnPerc
public int getWarnPerc()
-
setWarnPerc
public void setWarnPerc(int warnPerc)
-
getCritPerc
public int getCritPerc()
-
setCritPerc
public void setCritPerc(int critPerc)
-
-