Core API 7.13

net.juniper.smgt.sae.router.command
Class UnsupportedCommandChannel

java.lang.Object
  extended by 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


Field Summary
 
Fields inherited from interface net.juniper.smgt.sae.router.command.CommandChannel
SYNTAX_JUNOSCRIPT, SYNTAX_SNMP
 
Constructor Summary
UnsupportedCommandChannel()
           
 
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
 

Constructor Detail

UnsupportedCommandChannel

public UnsupportedCommandChannel()
Method Detail

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

Core API 7.13