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 voidIs invoked by NCS to abort the configuration to the state before the previous prepare() invocation.voidabstract voidIs invoked by NCS to abort the current transaction and bring the configuration back to the state before the previousprepare()invocation.voidNedCliBaseTemplate.applyConfig(NedWorker worker, int cmd, String data) voidabstract voidThis method is invoked when the connection is terminated.voidNedCliBaseTemplate.command(NedWorker worker, String cmdname, ConfXMLParam[] p) abstract voidNedConnectionBase.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.voidabstract voidThis indicates that the current set of operations should be committed to the running configuration.static SSHClientSSHClient.createClient(NedWorker worker, NedConnectionBase ned) SSHClient default factory method.voidNedConnectionBase.createSubscription(NedWorker w, String stream, String startTime, String filter, int filterType) This method is invoked to create a notification subscription.default NedExpectResultdefault NedExpectResultdefault StringSSHClient.CliSession.expect(String str, boolean include, boolean full, int timeout, NedWorker worker) default Stringdefault Stringdefault Stringdefault NedExpectResultSSHClient.CliSession.expect(Pattern[] p, boolean include, int timeout, boolean full, NedWorker worker) default NedExpectResultdefault NedExpectResultdefault Stringdefault StringvoidNedCliBaseTemplate.getTransId(NedWorker worker) abstract voidNedConnectionBase.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.voidvoidNedConnectionBase.initialize(NedWorker w) Used for initializing an transaction.NedCliBase.initNoConnect(String deviceId, 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.booleanbooleanThis method is invoked to check if a connection is still alive.booleanThis method is invoked periodically to keep an connection alive.abstract NedCliBaseNedCliBase.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 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 worker) abstract NedGenericBaseNedGenericBase.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.voidabstract voidThis method is invoked when the currently committed change set should be made permanent.abstract voidIs invoked by NCS to take the configuration to a new state.voidabstract voidIs invoked by NCS to take the configuration to a new state.abstract voidNedCliBase.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.voidNedCliBaseTemplate.prepareDry(NedWorker worker, String data) voidNedGenericBase.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.voidabstract voidUsed for resuming a connection found in the connection pool.abstract voidIs invoked by NCS to undo the changes introduced in the last commit operation (communicated to the NED in the prepare method invocation).voidabstract voidIs invoked by NCS to undo the changes introduced in the last commit operation (communicated to the NED in the prepare method invocation).voidvoidNedCliBaseTemplate.setupTelnet(NedWorker worker) abstract voidExtract parts of the configuration and send it to NCS.voidabstract voidRead parts of the configuration and applies it to the transaction provided in the method invocation.voidNedCliBase.showOffline(NedWorker w, String toptag, String data) Extract parts of the configuration and send it to NCS.voidNedGenericBase.showOffline(NedWorker w, int th, String data) Read parts of the configuration and applies it to the transaction, both provided in the method invocation.voidNedCliBase.showPartial(NedWorker w, ConfPath[] paths) Extract parts of the configuration and send it to NCS.voidNedCliBase.showPartial(NedWorker w, ConfPath[] paths, String[] cmdpaths) Extract parts of the configuration and send it to NCS.voidNedGenericBase.showPartial(NedWorker w, int th, ConfPath[] paths) Read parts of the configuration and applies it to the transaction provided in the method invocation.voidNedConnectionBase.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.voidNedConnectionBase.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.voidNedConnectionBase.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.voidNedConnectionBase.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.voidvoidNedConnectionBase.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 deviceId, 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.