Uses of Class
com.tailf.ned.NedWorker
Packages that use NedWorker
-
Uses of NedWorker in com.tailf.ned
Methods in com.tailf.ned with parameters of type NedWorkerModifier and TypeMethodDescriptionabstract void
Is invoked by NCS to abort the configuration to the state before the previous prepare() invocation.void
abstract void
Is invoked by NCS to abort the current transaction and bring the configuration back to the state before the previousprepare()
invocation.void
NedCliBaseTemplate.applyConfig
(NedWorker worker, int cmd, String data) void
abstract void
This method is invoked when the connection is terminated.void
NedCliBaseTemplate.command
(NedWorker worker, String cmdname, ConfXMLParam[] p) abstract void
NedConnectionBase.command
(NedWorker w, String cmdName, ConfXMLParam[] params) This is for any optional commands on the device that are not part of the yang files config data, but is modeled as tailf:actions or rpcs in the device yang files.void
abstract void
This indicates that the current set of operations should be committed to the running configuration.static SSHClient
SSHClient.createClient
(NedWorker worker, NedConnectionBase ned) SSHClient default factory method.void
NedConnectionBase.createSubscription
(NedWorker w, String stream, String startTime, String filter, int filterType) This method is invoked to create a notification subscription.default NedExpectResult
default NedExpectResult
default String
SSHClient.CliSession.expect
(String str, boolean include, boolean full, int timeout, NedWorker worker) default String
default String
default String
default NedExpectResult
SSHClient.CliSession.expect
(Pattern[] p, boolean include, int timeout, boolean full, NedWorker worker) default NedExpectResult
default NedExpectResult
default String
default String
void
NedCliBaseTemplate.getTransId
(NedWorker worker) abstract void
NedConnectionBase.getTransId
(NedWorker w) When this method is invoked the NED should produce a transaction id that must be changed if any changes has been made to the configuration since the last time the transaction id was requested.void
void
NedConnectionBase.initialize
(NedWorker w) Used for initializing an transaction.NedCliBase.initNoConnect
(String device_id, NedMux mux, NedWorker worker) Make a new instance of Ned object without establishing a connection towards the device.NedGenericBase.initNoConnect
(String deviceId, NedMux mux, NedWorker w) Make a new instance of Ned object without establishing a connection towards the device.boolean
This method is invoked to check if a connection is still alive.boolean
This method is invoked periodically to keep an connection alive.abstract NedCliBase
NedCliBase.newConnection
(String deviceId, InetAddress ip, int port, String proto, String ruser, String pass, String secpass, String publicKeyDir, boolean trace, int connectTimeout, int readTimeout, int writeTimeout, NedMux mux, NedWorker w) Establish a new connection to a device and send response to NCS with information about the device.NedCliBaseTemplate.newConnection
(String device_id, InetAddress ip, int port, String proto, String ruser, String pass, String secpass, String publicKeyDir, boolean trace, int connectTimeout, int readTimeout, int writeTimeout, NedMux mux, NedWorker worker) abstract NedGenericBase
NedGenericBase.newConnection
(String deviceId, InetAddress ip, int port, String luser, boolean trace, int connectTimeout, int readTimeout, int writeTimeout, NedMux mux, NedWorker worker) Establish a new connection to a device and send response to NCS with information about the device using the method setConnectionData() A new instance representing the new connection should be returned.void
abstract void
This method is invoked when the currently committed change set should be made permanent.abstract void
Is invoked by NCS to take the configuration to a new state.void
abstract void
Is invoked by NCS to take the configuration to a new state.abstract void
NedCliBase.prepareDry
(NedWorker w, String data) Is invoked by NCS to tell the NED what actions it should take towards the device if it should do a prepare.void
NedCliBaseTemplate.prepareDry
(NedWorker worker, String data) void
NedGenericBase.prepareDry
(NedWorker w, NedEditOp[] ops) Is invoked by NCS to ask the NED what actions it would take towards the device if it would do a prepare.void
abstract void
Used for resuming a connection found in the connection pool.abstract void
Is invoked by NCS to undo the changes introduced in the last commit operation (communicated to the NED in the prepare method invocation).void
abstract void
Is invoked by NCS to undo the changes introduced in the last commit operation (communicated to the NED in the prepare method invocation).void
void
NedCliBaseTemplate.setupTelnet
(NedWorker worker) abstract void
Extract parts of the configuration and send it to NCS.void
abstract void
Read parts of the configuration and applies it to the transaction provided in the method invocation.void
NedCliBase.showOffline
(NedWorker w, String toptag, String data) Extract parts of the configuration and send it to NCS.void
NedGenericBase.showOffline
(NedWorker w, int th, String data) Read parts of the configuration and applies it to the transaction, both provided in the method invocation.void
NedCliBase.showPartial
(NedWorker w, ConfPath[] paths) Extract parts of the configuration and send it to NCS.void
NedCliBase.showPartial
(NedWorker w, ConfPath[] paths, String[] cmdpaths) Extract parts of the configuration and send it to NCS.void
NedCliBase.showPartial
(NedWorker w, String[] cmdpaths) Deprecated.void
NedGenericBase.showPartial
(NedWorker w, int th, ConfPath[] paths) Read parts of the configuration and applies it to the transaction provided in the method invocation.void
NedConnectionBase.showStatsFilter
(NedWorker w, int th, ConfPath[] paths) When this method is invoked the NED should populate the provided transaction th with the data corresponding to the filter.void
NedConnectionBase.showStatsFilter
(NedWorker w, int th, NedShowFilter[] filters) When this method is invoked the NED should populate the provided transaction th with the data corresponding to the filter.void
NedConnectionBase.showStatsFilter
(NedWorker w, int th, String[] xpaths) When this method is invoked the NED should populate the provided transaction th with the data corresponding to the filter.void
NedConnectionBase.showStatsPath
(NedWorker w, int th, ConfPath path) When this method is invoked depending on the node type the NED should: * If the path points to the list node or leaf-list node without specifying the key, then the NED should populate the list keys.void
void
NedConnectionBase.uninitialize
(NedWorker w) If the transaction is not completed and the NED has done initialize this method is called to undo the transaction preparations.Constructors in com.tailf.ned with parameters of type NedWorkerModifierConstructorDescriptionNedCliBaseTemplate
(String device_id, InetAddress ip, int port, String proto, String ruser, String pass, String secpass, boolean trace, int connectTimeout, int readTimeout, int writeTimeout, NedMux mux, NedWorker worker) SSHConnection
(NedWorker worker) Deprecated.Constructor that uses the current NedWorker to retrieve configuration parameters like host, port and also southbound-source-address (if set)TelnetSession
(NedWorker worker) Constructor for Telnet session object.TelnetSession
(NedWorker worker, int readTimeout, NedTracer tracer, NedConnectionBase conn) Constructor with an extra argument for a readTimeout timer.TelnetSession
(NedWorker worker, NedTracer tracer, NedConnectionBase conn) Constructor for Telnet session object.TelnetSession
(NedWorker worker, String username, int readTimeout, NedTracer tracer, NedConnectionBase conn) Constructor with extra user name argument.
NedCliBase.showPartial(NedWorker,ConfPath[],String[])
instead.