Changeset 13058
- Timestamp:
- Apr 27, 2007, 11:30:16 AM (19 years ago)
- Location:
- trunk/Nebulous/lib/Nebulous
- Files:
-
- 2 edited
-
Client.pm (modified) (3 diffs)
-
Client.pod (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/lib/Nebulous/Client.pm
r13048 r13058 1 1 # Copyright (c) 2004 Joshua Hoblitt 2 2 # 3 # $Id: Client.pm,v 1.2 5 2007-04-27 00:09:22jhoblitt Exp $3 # $Id: Client.pm,v 1.26 2007-04-27 21:30:16 jhoblitt Exp $ 4 4 5 5 package Nebulous::Client; … … 249 249 my $self = shift; 250 250 251 my ( $key ) = validate_pos( @_,251 my ( $key, @params ) = validate_pos( @_, 252 252 { 253 253 type => SCALAR, 254 254 }, 255 { 256 # volume 257 type => SCALAR, 258 optional => 1, 259 }, 255 260 ); 256 261 … … 258 263 259 264 # need some way to determine which is the best instance to remove 260 my $locations = $self->find_instances( $key );265 my $locations = $self->find_instances( $key, @params ); 261 266 unless ( $locations ) { 262 267 $log->debug( "no instances" ); -
trunk/Nebulous/lib/Nebulous/Client.pod
r13057 r13058 16 16 my $fh = $neb->open_create( "key", 0, "node01", "example" ); 17 17 $neb->replicate( "key", "node01" ); 18 $neb->cull( "key" );18 $neb->cull( "key", "node01" ); 19 19 $neb->lock( "key", 'write' ); 20 20 $neb->unlock( "key", 'write' ); … … 174 174 175 175 176 =item * cull($key )176 =item * cull($key, $volume) 177 177 178 178 Removes an instance from a storage object. … … 183 183 184 184 The storage object key (name). 185 186 =item * volume 187 188 The volume to attempt to remove an instance from. If there is no instance on 189 the specified volume this method will fail. If there is more then one instance 190 on the specified volume I<only one> of them will be removed. 191 192 This parameter is optional. 185 193 186 194 =back
Note:
See TracChangeset
for help on using the changeset viewer.
