Changeset 497
- Timestamp:
- 05/27/08 14:45:38
(8 months ago)
- Author:
- jmowery
- Message:
removing references to old NodeStatus? class
-
Files:
-
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
| r496 |
r497 |
|
| 155 | 155 | # for the server side part. |
|---|
| 156 | 156 | def bools(self, (val, clientid)): |
|---|
| 157 | | n = storage.NodeStatus(clientid, storage_root) |
|---|
| | 157 | n = storage.Node(clientid, storage_root) |
|---|
| 158 | 158 | for (key,val) in val.items(): |
|---|
| 159 | 159 | n.set_bool_status(key, val) |
|---|
| … | … | |
| 295 | 295 | root_layer = storage.Layer(storage_root) |
|---|
| 296 | 296 | for node_id in root_layer.list_nodes(): |
|---|
| 297 | | n = storage.NodeStatus(node_id, root_layer.Name) |
|---|
| | 297 | n = storage.Node(node_id, storage_root) |
|---|
| 298 | 298 | if len(n.check_updates()): |
|---|
| 299 | 299 | client_list.append(n.Id) |
|---|
| 300 | 300 | n.update() |
|---|
| | 301 | root_layer.update() |
|---|
| 301 | 302 | return client_list |
|---|
| 302 | 303 | |
|---|
| 303 | 304 | def update_client(self, client_id): |
|---|
| 304 | 305 | root_layer = storage.Layer(storage_root) |
|---|
| 305 | | n = storage.NodeStatus(client_id, root_layer.Name) |
|---|
| | 306 | n = storage.Node(client_id, storage_root) |
|---|
| 306 | 307 | n.update() #be sure we are up to date before checking what to send |
|---|
| 307 | 308 | status_message = protocol.Message('file status','query') |
|---|
| … | … | |
| 310 | 311 | remove_list = [] |
|---|
| 311 | 312 | for file_name in status_response.body.keys(): |
|---|
| 312 | | if file_name not in n.ModuleStatus.keys(): |
|---|
| | 313 | if file_name not in n.entries.keys(): |
|---|
| 313 | 314 | remove_list.append(file_name) |
|---|
| 314 | 315 | update_list = n.check_updates() |
|---|
| … | … | |
| 324 | 325 | proc.wait() |
|---|
| 325 | 326 | sum = proc.stdout.read().split()[0] |
|---|
| | 327 | #CHECKME: make sure this matches what the new agent store expects to receive |
|---|
| 326 | 328 | msg.body.append((storage.get_local_name(file), storage.get_timestamp(file), sum)) |
|---|
| 327 | 329 | for file_name in remove_list: |
|---|
Download in other formats:
* Generating other formats may take time.