|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opennms.netmgt.protocols.AbstractPoll
org.opennms.netmgt.protocols.ssh.Ssh
public class Ssh
| Field Summary | |
|---|---|
static String |
DEFAULT_CLIENT_BANNER
|
static int |
DEFAULT_PORT
|
protected InetAddress |
m_address
|
protected String |
m_banner
|
protected Throwable |
m_error
|
protected String |
m_password
|
protected int |
m_port
|
protected String |
m_serverBanner
|
protected String |
m_username
|
| Fields inherited from class org.opennms.netmgt.protocols.AbstractPoll |
|---|
m_timeout |
| Constructor Summary | |
|---|---|
Ssh()
|
|
Ssh(InetAddress address)
|
|
Ssh(InetAddress address,
int port)
|
|
Ssh(InetAddress address,
int port,
int timeout)
|
|
| Method Summary | |
|---|---|
protected void |
disconnect()
|
InetAddress |
getAddress()
Get the address to connect to. |
String |
getClientBanner()
Get the banner string used when connecting |
protected Throwable |
getError()
|
String |
getPassword()
Get the password to connect with. |
int |
getPort()
Get the port to connect to. |
String |
getServerBanner()
Get the SSH server version banner. |
String |
getUsername()
Get the username to connect as. |
PollStatus |
poll(TimeoutTracker tracker)
|
void |
setAddress(InetAddress address)
Set the address to connect to. |
void |
setClientBanner(String banner)
Set the banner string to use when connecting |
protected void |
setError(Throwable t)
|
void |
setPassword(String password)
Set the password to connect with. |
void |
setPort(int port)
Set the port to connect to. |
void |
setUsername(String username)
Set the username to connect as. |
protected boolean |
tryConnect()
Attempt to connect, based on the parameters which have been set in the object. |
| Methods inherited from class org.opennms.netmgt.protocols.AbstractPoll |
|---|
getTimeout, poll, setTimeout |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int DEFAULT_PORT
public static final String DEFAULT_CLIENT_BANNER
protected int m_port
protected String m_username
protected String m_password
protected String m_banner
protected String m_serverBanner
protected InetAddress m_address
protected Throwable m_error
| Constructor Detail |
|---|
public Ssh()
public Ssh(InetAddress address)
public Ssh(InetAddress address,
int port)
public Ssh(InetAddress address,
int port,
int timeout)
| Method Detail |
|---|
public void setAddress(InetAddress address)
address - the addresspublic InetAddress getAddress()
public void setPort(int port)
port - the portpublic int getPort()
public void setUsername(String username)
username - the usernamepublic String getUsername()
public void setPassword(String password)
password - the passwordpublic String getPassword()
public void setClientBanner(String banner)
banner - the bannerpublic String getClientBanner()
public String getServerBanner()
protected void setError(Throwable t)
protected Throwable getError()
protected boolean tryConnect()
throws InsufficientParametersException
InsufficientParametersExceptionprotected void disconnect()
public PollStatus poll(TimeoutTracker tracker)
throws InsufficientParametersException
poll in class AbstractPollInsufficientParametersException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||