public class NetworkDeviceSession
extends java.lang.Object
Constructor and Description |
---|
NetworkDeviceSession(DeviceCredential dc) |
Modifier and Type | Method and Description |
---|---|
protected NetworkDevice |
cerateDevice(DeviceCredential cred) |
CollectionResult |
collect(java.lang.String collectionProfile,
java.lang.String osType) |
CommandResult |
configure(java.lang.String command) |
void |
connect() |
boolean |
disconnect() |
CollectionResult |
executeCommand(CollectionProfile cp) |
CommandResult |
executeCommand(java.lang.String command,
boolean confMode) |
java.lang.String |
generateSessionId() |
java.lang.String |
getSessionId() |
boolean |
isConnected() |
static void |
main(java.lang.String[] args) |
void |
setSessionId(java.lang.String sessionId) |
public NetworkDeviceSession(DeviceCredential dc)
public java.lang.String getSessionId()
public void setSessionId(java.lang.String sessionId)
sessionId
- the sessionId to setpublic java.lang.String generateSessionId()
protected NetworkDevice cerateDevice(DeviceCredential cred) throws java.lang.Exception
java.lang.Exception
public void connect() throws java.lang.Exception
java.lang.Exception
public CollectionResult collect(java.lang.String collectionProfile, java.lang.String osType) throws java.lang.Exception
java.lang.Exception
public boolean isConnected()
public CollectionResult executeCommand(CollectionProfile cp)
public CommandResult executeCommand(java.lang.String command, boolean confMode)
public CommandResult configure(java.lang.String command)
public boolean disconnect()
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception