Changes between Version 7 and Version 8 of DevelopmentFaq

Show
Ignore:
Timestamp:
04/17/09 15:25:31 (10 years ago)
Author:
yxin (IP: 152.54.6.59)
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DevelopmentFaq

    v7 v8  
    4949 
    5050== IMPLEMENTATION ==  
    51 1.      How to customize “property list” for wireless/sensor RSpec?  How to store “wireless RSpec “? 
     511.      How to customize “property list” for new substrate, e.g., to include rspRspec? 
     52 
     53Each ResourceSet has ResourceData object, which consists of 4 property lists: 
     54      - request properties are sent to brokers 
     55      - configuration properties are sent to site authorities 
     56      - local properties are kept locally and used by policies and 
     57        handlers 
     58      - resource properties are pushed down  
     59 
     60   You can add your custom properties to some of the properties lists. For 
     61   example, you could serialize the whole resource specification down to a 
     62   String and attach it as a single propery. You could break the 
     63   specification into multiple properties. 
     64 
     65   There are multiple examples of property passing in the code base: 
     66 
     67   - some resource properties are initially extracted from the container 
     68         XML configuration file. 
     69 
     70         https://geni-orca.renci.org/orca-doc/current/guides/container-configuration/index.html 
     71 
     72         Take a look at manage/boot to see how the initial source tickets are 
     73         being created. 
     74 
     75   - when a site exports resources to a broker or a broker writes a ticket 
     76         to a service manager resource properties are included in the new 
     77         ResourceSet. See the extract() method of 
     78         ocra.shirako.core.BrokerPolicy. 
     79 
     80   - before a service manager makes a request to a broker it can append 
     81         request properties to its request as parameters to the broker policy. 
     82         For an example see createReservation in 
     83     test/unit/src/main/java/orca/tests/unit/main/ReservationTestTool.java 
     84 
     85   - broker policies extract requst properties from incoming reservation 
     86         requests and use them as additional parameters. To see how this is 
     87         done, take a look at: 
     88 
     89         core/policy/src/main/java/orca/policy/core/BrokerWorstFitPolicy.java 
     90 
     91     and 
     92 
     93     core/policy/src/test/java/orca/policy/core/BrokerWorstFitPolicyTest.java 
     94 
     95    - service managers can set configuration properties before redeeming a 
     96      reservation from a site. Configuration properties are accessible to 
     97      the site's policy and to its setup and teardown handlers. 
     98 
     99    - service managers can set local properties to a reservation before 
     100      invoking its join/leave handler and these properties will become 
     101      available to the handler. 
    52102 
    531032.      How is slice managed in ORCA? For instance, when to start and stop a slice and what are operations performed in starting/stopping a slice?