Package com.tailf.ned

Class NedCmd

Object
com.tailf.ned.NedCmd
All Implemented Interfaces:
ch.ethz.ssh2.ServerHostKeyVerifier

public class NedCmd extends Object implements ch.ethz.ssh2.ServerHostKeyVerifier
A NedCmd represents the command send from the NCS with all parameters. A NedCmd is passed from the NedMux to a NedWorker to finally arrive at a NetConnection for processing.
  • Field Details

  • Constructor Details

  • Method Details

    • getCommand

      public int getCommand()
    • getId

      public String getId()
    • getDevice

      public String getDevice()
    • getIP

      public InetAddress getIP()
    • getPort

      public int getPort()
    • getProtocol

      public String getProtocol()
    • getRemoteUser

      public String getRemoteUser()
    • getLocalUser

      public String getLocalUser()
    • getPassword

      public String getPassword()
    • getSecondaryPassword

      public String getSecondaryPassword()
    • getKeyDir

      public String getKeyDir()
    • isTrace

      public boolean isTrace()
    • getConnectTimeout

      public int getConnectTimeout()
    • getReadTimeout

      public int getReadTimeout()
    • getWriteTimeout

      public int getWriteTimeout()
    • getTimeout

      public int getTimeout()
    • getWorkerId

      public int getWorkerId()
    • getConnectionId

      public int getConnectionId()
    • getCliConfigChars

      public String getCliConfigChars()
    • getGenericConfigChars

      public String getGenericConfigChars()
    • isVerbose

      public boolean isVerbose()
    • getAdditionalInfo

      public String getAdditionalInfo()
    • getProvisionalTransId

      public String getProvisionalTransId()
    • getTopTag

      public String getTopTag()
    • getCmdPaths

      public String[] getCmdPaths()
    • getPaths

      public ConfPath[] getPaths() throws ConfException
      Throws:
      ConfException
    • getOperations

      public NedEditOp[] getOperations()
    • getTransaction

      public int getTransaction()
    • getParams

      public ConfXMLParam[] getParams()
    • getActionName

      public String getActionName()
    • getPath

      public ConfPath getPath()
    • getFromTransactionId

      public int getFromTransactionId()
    • getToTransactionId

      public int getToTransactionId()
    • getUsid

      public int getUsid()
    • getSourceAddress

      public InetSocketAddress getSourceAddress()
    • isForce

      public boolean isForce()
    • getDevList

      public Set<String> getDevList()
    • isAll

      public boolean isAll()
    • getAuthOrder

      public String[] getAuthOrder()
    • getPublicKeys

      public NedCmd.NedPublicKey[] getPublicKeys()
    • getHostKeyVerify

      public int getHostKeyVerify()
    • getHostKeys

      public NedCmd.NedPublicKey[] getHostKeys()
    • getLoadOp

      public int getLoadOp()
    • getStream

      public String getStream()
    • getStartTime

      public String getStartTime()
    • getFilterType

      public int getFilterType()
    • getFilter

      public String getFilter()
    • getFilterTypeAsString

      public String getFilterTypeAsString()
    • getPathIntent

      public ConfPath[] getPathIntent()
    • getXPathIntent

      public String[] getXPathIntent()
    • getFilterIntent

      public NedShowFilter[] getFilterIntent()
    • getMfaExecutable

      public String getMfaExecutable()
    • getMfaOpaque

      public String getMfaOpaque()
    • setAdditionalInfo

      public void setAdditionalInfo(String info)
    • isSuppressTransId

      public boolean isSuppressTransId()
    • getHostKeyVerifAsString

      public String getHostKeyVerifAsString()
    • verifyServerHostKey

      public boolean verifyServerHostKey(String hostname, int port, String serverHostKeyAlgorithm, byte[] serverHostKey)
      Specified by:
      verifyServerHostKey in interface ch.ethz.ssh2.ServerHostKeyVerifier
    • cmdString

      public String cmdString()
    • cmdToString

      public static String cmdToString(int cmd)
    • cmdToDevicePhase

      public static String cmdToDevicePhase(int cmd)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getSSHAlgorithms

      public NedCmd.NedSSHAlgorithms getSSHAlgorithms()
    • parseOps

      public NedEditOp[] parseOps(ConfEList l)