Changeset 16180
- Timestamp:
- Jan 22, 2008, 11:25:43 AM (18 years ago)
- Location:
- trunk
- Files:
-
- 4 edited
-
Nebulous-Server/lib/Nebulous/Server.pod (modified) (3 diffs)
-
Nebulous/bin/neb-touch (modified) (2 diffs)
-
Nebulous/lib/Nebulous/Client.pod (modified) (6 diffs)
-
Nebulous/lib/Nebulous/Server.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous-Server/lib/Nebulous/Server.pod
r13089 r16180 14 14 Nebulous::Server->sql( $sql ); 15 15 Nebulous::Server->config( $config ); 16 Nebulous::Server->create_object( $key, $ class, $volume, $comment);16 Nebulous::Server->create_object( $key, $volume ); 17 17 Nebulous::Server->rename_object( $key, $newkey ); 18 18 Nebulous::Server->replicate_object( $key, $volume ); … … 55 55 exception on error. 56 56 57 =item * create_object( $key, $ class, $volume, $comment);57 =item * create_object( $key, $volume ); 58 58 59 59 Accepts 4 parameters, only the first is mandatory. Returns a URI. Throws an … … 88 88 89 89 Accepts 1 parameters, it is mandatory. Returns a list of: so_id, ext_id, 90 class_id, comment,read_lock, write_lock, epoch.90 read_lock, write_lock, epoch. 91 91 92 92 =back -
trunk/Nebulous/bin/neb-touch
r16179 r16180 3 3 # Copyright (C) 2007-2008 Joshua Hoblitt 4 4 # 5 # $Id: neb-touch,v 1. 3 2008-01-22 21:14:55jhoblitt Exp $5 # $Id: neb-touch,v 1.4 2008-01-22 21:25:43 jhoblitt Exp $ 6 6 7 7 use strict; … … 41 41 42 42 unless ($neb->find($file)) { 43 $neb->create($file, 0,$volume)43 $neb->create($file, $volume) 44 44 or die "failed to create Nebulous key $file"; 45 45 } -
trunk/Nebulous/lib/Nebulous/Client.pod
r13255 r16180 13 13 ); 14 14 15 my $uri = $neb->create( "key", 0, "node01", "example" );16 my $fh = $neb->open_create( "key", 0, "node01", "example" );15 my $uri = $neb->create( "key", "node01" ); 16 my $fh = $neb->open_create( "key", "node01" ); 17 17 $neb->replicate( "key", "node01" ); 18 18 $neb->cull( "key", "node01" ); … … 87 87 88 88 89 =item * create($key, $ class, $volume, $comment).89 =item * create($key, $volume). 90 90 91 91 Creates a new storage object. … … 97 97 The storage object key (name). 98 98 99 =item * class100 101 The storage class.102 103 This parameter is optional.104 105 99 =item * volume 106 100 … … 109 103 This parameter is optional. 110 104 111 =item * comment112 113 The storage object comment.114 115 This parameter is optional.116 117 105 =back 118 106 … … 120 108 121 109 122 =item * open_create($key, $ class, $volume, $comment).110 =item * open_create($key, $volume). 123 111 124 112 Creates and opens new storage object. … … 130 118 The storage object key (name). 131 119 132 =item * class133 134 The storage class.135 136 This parameter is optional.137 138 120 =item * volume 139 121 140 122 The preferred storage location of initial instance. 141 142 This parameter is optional.143 144 =item * comment145 146 The storage object comment.147 123 148 124 This parameter is optional. -
trunk/Nebulous/lib/Nebulous/Server.pod
r13089 r16180 14 14 Nebulous::Server->sql( $sql ); 15 15 Nebulous::Server->config( $config ); 16 Nebulous::Server->create_object( $key, $ class, $volume, $comment);16 Nebulous::Server->create_object( $key, $volume ); 17 17 Nebulous::Server->rename_object( $key, $newkey ); 18 18 Nebulous::Server->replicate_object( $key, $volume ); … … 55 55 exception on error. 56 56 57 =item * create_object( $key, $ class, $volume, $comment);57 =item * create_object( $key, $volume ); 58 58 59 59 Accepts 4 parameters, only the first is mandatory. Returns a URI. Throws an … … 88 88 89 89 Accepts 1 parameters, it is mandatory. Returns a list of: so_id, ext_id, 90 class_id, comment,read_lock, write_lock, epoch.90 read_lock, write_lock, epoch. 91 91 92 92 =back
Note:
See TracChangeset
for help on using the changeset viewer.
