636 |
This allows them to carry any metadata that can be carried |
This allows them to carry any metadata that can be carried |
637 |
in a MIME header, most importantly a content type. |
in a MIME header, most importantly a content type. |
638 |
|
|
639 |
Collections of Storm blocks are called *pools*. Pools provide |
Collections of existing Storm blocks are called *pools*. Pools provide |
640 |
the following interface:: |
the following interface for injecting and obtaining data:: |
641 |
|
|
642 |
|
add(bytes) -> id |
643 |
getIds() -> list |
getIds() -> list |
644 |
get(id) -> block |
get(id) -> block |
645 |
|
|
646 |
|
and the methods for moving blocks between pools:: |
647 |
|
|
648 |
add(block) |
add(block) |
649 |
delete(block) |
delete(id) |
650 |
|
|
651 |
Implementations may store blocks in RAM, in individual files, |
Implementations may store blocks in RAM, in individual files, |
652 |
in a Zip archive, in a database, in a p2p network, |
in a Zip archive, in a database, in a p2p network, |