Changes between Version 6 and Version 7 of Handler-Testing

Show
Ignore:
Timestamp:
03/06/10 14:34:21 (9 years ago)
Author:
ibaldin (IP: 98.26.55.18)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Handler-Testing

    v6 v7  
    1 = Testing substrate handlers = 
     1= Creating and testing substrate handlers = 
    22 
    33Handlers can invoke tasks directly on the substrate or do so via Node Agent (NA) deployed in the substrate.  
    44 
    55To test handlers, tools/cmdline project is used. It creates an instance of ORCA that is running outside a container and allows to execute handler tasks from the commandline. It is possible to do so either with or without emulation mode turned on. 
     6 
     7== Creating a handler script == 
     8 
     9A handler script is executed by site authority or service manager and presents a simple abstraction of performing parameterized actions for '''join'''ing a slice, '''leav'''ing a slice and '''modify'''ing a slice. In its current implementation, handlers are ant scripts with the three targets: join, leave and modify that pass Java properties to driver tasks. 
     10 
     11There are a number of examples of handler scripts in the codebase. You can look at controllers/ben/resources/handlers/controllers/ben for various handler examples (all handlers have a name handler.xml). Note that handler scripts are tied both to policies and to specific substrate, so if you plan to use your handler with your own controller policy you must create your own handler script.  
    612 
    713== Testing handlers without NA component ==