IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 4879 for trunk/Nebulous/lib


Ignore:
Timestamp:
Aug 25, 2005, 1:42:34 PM (21 years ago)
Author:
jhoblitt
Message:

document object methods

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/lib/Nebulous/Client.pod

    r4440 r4879  
    3737=head2 Import Parameters
    3838
    39 This module accepts a hash as argument to it's C<import> method and exports no
    40 I<symbols>.
     39This module accepts an optional hash as argument to it's C<import> method and
     40exports no I<symbols>.
    4141
    4242    use Nebulous::Client trace => qw( debug );
     
    8484=over 4
    8585
    86 =item * create
    87 
    88 =item * replicate
    89 
    90 =item * cull
    91 
    92 =item * lock
    93 
    94 =item * unlock
    95 
    96 =item * find_instances
    97 
    98 =item * find
    99 
    100 =item * open
    101 
    102 =item * delete
    103 
    104 =item * copy
    105 
    106 =item * move
    107 
    108 =item * delete_instance
    109 
    110 =item * stat
     86
     87=item * create($key, $class, $volume, $comment).
     88
     89Creates and opens new storage object.
     90
     91=over 4
     92
     93=item * key
     94
     95The storage object key (name).
     96
     97=item * class
     98
     99The storage class.
     100
     101This parameter is optional.
     102
     103=item * volume
     104
     105The preferred storage location of initial instance.
     106
     107This parameter is optional.
     108
     109=item * comment
     110
     111The storage object comment.
     112
     113This parameter is optional.
     114
     115=back
     116
     117Returns a filehandle or C<undef> on failure.
     118
     119
     120=item * replicate($key, $volume)
     121
     122Adds an instance to a storage object.
     123
     124=over 4
     125
     126=item * key
     127
     128The storage object key (name).
     129
     130=item * volume
     131
     132The preferred storage location of initial instance.
     133
     134This parameter is optional.
     135
     136=back
     137
     138Returns true on success.
     139
     140
     141=item * cull($key)
     142
     143Removes an instance from a storage object.
     144
     145=over 4
     146
     147=item * key
     148
     149The storage object key (name).
     150
     151=back
     152
     153Returns true on success.
     154
     155
     156=item * lock($key, $type, $timeout)
     157
     158Trys to acquire a lock on a storage object
     159
     160=over 4
     161
     162=item * key
     163
     164The storage object key (name).
     165
     166=item * type
     167
     168The type of lock to acquire.  Either C<read> or C<write>.
     169
     170=item * timeout
     171
     172The number of seconds to I<try> for a lock.
     173
     174This parameter is optional.
     175
     176=back
     177
     178Returns true on success.
     179
     180
     181=item * unlock($key, $type)
     182
     183Trys to release a lock on a storage object.
     184
     185=over 4
     186
     187=item * key
     188
     189The storage object key (name).
     190
     191=item * type
     192
     193The type of lock to release.  Either C<read> or C<write>.
     194
     195=back
     196
     197Returns true on success.
     198
     199
     200=item * find_instances($key, $volume)
     201
     202Lists all instances of a storage object
     203
     204=over 4
     205
     206=item * key
     207
     208The storage object key (name).
     209
     210=item * volume
     211
     212Restrict search to this storage location.
     213
     214This parameter is optional.
     215
     216=back
     217
     218Returns an arrayref of scalars.
     219
     220
     221=item * find($key)
     222
     223Find any instance of a storage object.
     224
     225=over 4
     226
     227=item * key
     228
     229The storage object key (name).
     230
     231=back
     232
     233Returns the path to the instance.
     234
     235
     236=item * open($key, $type)
     237
     238Open a storage object for read or write.
     239
     240=over 4
     241
     242=item * key
     243
     244The storage object key (name).
     245
     246=item * type
     247
     248The type of lock to acquire.  Either C<read> or C<write>.
     249
     250=back
     251
     252Returns a filehandle or C<undef> on failure.
     253
     254
     255=item * delete($key)
     256
     257Delete a storage object and all of it's instances.
     258
     259=over 4
     260
     261=item * key
     262
     263The storage object key (name).
     264
     265=back
     266
     267Returns true on success.
     268
     269
     270=item * copy($key, $new_key)
     271
     272Copy a storage object.
     273
     274=over 4
     275
     276=item * key
     277
     278The source object.
     279
     280=item * new_key
     281
     282The destination object.
     283
     284=back
     285
     286Returns true on success or C<undef> on failure.
     287
     288
     289=item * move($key, $new_key)
     290
     291Rename a storage object.
     292
     293=over 4
     294
     295=item * key
     296
     297The source object.
     298
     299=item * new_key
     300
     301The destination object.
     302
     303=back
     304
     305Returns true on success or C<undef> on failure.
     306
     307
     308=item * delete_instance($uri)
     309
     310Remove a storage object instance.
     311
     312=over 4
     313
     314=item * uri
     315
     316URI of the instance to remove.
     317
     318=back
     319
     320Returns true on success or C<undef> on failure.
     321
     322=item * stat($key)
     323
     324View the properties of a storage object.
     325
     326=over 4
     327
     328=item * key
     329
     330The storage object key (name).
     331
     332=back
     333
     334Returns an arrayref of scalars.
     335
    111336
    112337=back
Note: See TracChangeset for help on using the changeset viewer.