Changes between Version 20 and Version 21 of Internal/NewNodeAgent


Ignore:
Timestamp:
Feb 19, 2015, 8:40:28 PM (10 years ago)
Author:
ssugrim
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Internal/NewNodeAgent

    v20 v21  
    244244It should be noted that AgentCommands::configure should catch all exceptions and log them (or at least like standard error, but something pretty wide).  This way the nodeagent never dies. And since every command should now timeout, the agent should never lock up (for ever).
    245245
     246----
     24712/19/2015
     248
     249Tow major discrepencaies were discovered when during the last expirement run.
     250 1. The return type of configure needs to be a hash with a specific set of keys
     251 2. Configure should be callable on inactivated devices.
     252
     253The first is trivial. It simply collect the result of the cocaine call and wraps it into the respective hash that the calling function expects. The return structure is seen in the previous version of the code, which is located
     254[http://www.orbit-lab.org/browser/omf/omf-resctl/ruby/omf-resctl/omf_driver/device.rb here].
     255
     256The second however is some what more complicated. The basic idea is that public facing action methods will make a call to activate. Public facing non-action methods don't need to worry about activation. All private action methods need to check for activation, but should not be able to explictly call activate (that state control is the job of the public faceing action methods).
     257
     258Current public facing wifi methods:
     259 * Active:
     260  * scan
     261  * connected?
     262  * connect
     263  * activate
     264 * Passive:
     265  * configure
     266
     267Current public facing Ethernet methods:
     268 * Active:
     269  * connected?
     270  * connect
     271  * activate
     272 * Passive:
     273  * configure
     274