org.opennms.netmgt.provision.detector.ssh
Class SshDetector

java.lang.Object
  extended by org.opennms.netmgt.provision.support.AbstractDetector
      extended by org.opennms.netmgt.provision.support.BasicDetector<NullRequest,SshResponse>
          extended by org.opennms.netmgt.provision.detector.ssh.SshDetector
All Implemented Interfaces:
ServiceDetector, SyncServiceDetector

@Component
@Scope(value="prototype")
public class SshDetector
extends BasicDetector<NullRequest,SshResponse>


Constructor Summary
SshDetector()
          Default constructor
SshDetector(String serviceName, int port)
          Constructor for creating a non-default service based on this protocol
 
Method Summary
 String getBanner()
          getBanner
protected  Client<NullRequest,SshResponse> getClient()
          getClient
 String getClientBanner()
          getClientBanner
 String getMatch()
          getMatch
protected  void onInit()
          onInit
 void setBanner(String banner)
          setBanner
 void setClientBanner(String clientBanner)
          setClientBanner
 void setMatch(String match)
          setMatch
 
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.AbstractDetector
getPort, getRetries, getServiceName, getTimeout, init, log, 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
getServiceName, init, setServiceName
 

Constructor Detail

SshDetector

public SshDetector()
Default constructor


SshDetector

public SshDetector(String serviceName,
                   int port)
Constructor for creating a non-default service based on this protocol

Parameters:
serviceName - a String object.
port - a int.
Method Detail

getClient

protected Client<NullRequest,SshResponse> getClient()

getClient

Specified by:
getClient in class BasicDetector<NullRequest,SshResponse>
Returns:
a Client object.

onInit

protected void onInit()

onInit

Specified by:
onInit in class BasicDetector<NullRequest,SshResponse>

setBanner

public void setBanner(String banner)

setBanner

Parameters:
banner - a String object.

getBanner

public String getBanner()

getBanner

Returns:
a String object.

setMatch

public void setMatch(String match)

setMatch

Parameters:
match - a String object.

getMatch

public String getMatch()

getMatch

Returns:
a String object.

setClientBanner

public void setClientBanner(String clientBanner)

setClientBanner

Parameters:
clientBanner - a String object.

getClientBanner

public String getClientBanner()

getClientBanner

Returns:
a String object.


Copyright © 2011. All Rights Reserved.