net.juniper.smgt.sae.router.command
Class UnsupportedCommandChannel
java.lang.Object
net.juniper.smgt.sae.router.command.UnsupportedCommandChannel
- All Implemented Interfaces:
- CommandChannel
public class UnsupportedCommandChannel
- extends java.lang.Object
- implements CommandChannel
dummy command channel for those router drivers who doesn't support
it yet
Method Summary |
java.lang.String |
getCommandSyntax()
Get command channel syntax |
boolean |
isSupported()
Check if command channel is available |
Response |
pushCommand(java.lang.String aCommand,
int timeout)
send the command to network device. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UnsupportedCommandChannel
public UnsupportedCommandChannel()
getCommandSyntax
public java.lang.String getCommandSyntax()
- Description copied from interface:
CommandChannel
- Get command channel syntax
- Specified by:
getCommandSyntax
in interface CommandChannel
- Returns:
- one of the command syntax
e.g. 'JUNOScript', 'JUNOSe_SNMP'
isSupported
public boolean isSupported()
- Description copied from interface:
CommandChannel
- Check if command channel is available
- Specified by:
isSupported
in interface CommandChannel
- Returns:
- true if command channel is available
pushCommand
public Response pushCommand(java.lang.String aCommand,
int timeout)
throws CommandException
- Description copied from interface:
CommandChannel
- send the command to network device.
- Specified by:
pushCommand
in interface CommandChannel
- Returns:
- Response, the response message from network device.
- Throws:
CommandException