The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

LCC::Backend - base class for storing local status

SYNOPSIS

 use LCC;
 $lcc = LCC->new( | {method => value} );

 $lcc->Backend( $source, | {method => value} );         # automatic type check
 $lcc->Backend( 'type', $source, | {method => value} ); # force 'type'

DESCRIPTION

The Backend object of the Perl support for LCC. Do not create directly, but through the Backend method of the LCC object.

METHODS

These methods are available to the LCC::Backend object.

auto_update

 $backend->auto_update( 1 );
 $auto_update = $backend->auto_update;

Sets (and/or returns) the flag that indicates whether the backend should automatically update the status when the object goes out of scope.

By default, an update will only be done when the update method is called specifically.

complete

 $backend->complete;

Indicate that the information about the complete set of documents should be sent to the UNS, ignoring any previously saved status.

Can also be called directly on the LCC object.

partial

 $backend->partial;
 $backend->partial( 1 );

Indicate that only the information of documents that are deemed to be changed, should be sent to the UNS. If however the UNS has indicated that a full set of information should be sent (as a response during the previous update), then the update will occur as if complete has been called.

The optional flag indicates to ignore the flag set by the UNS, so that a partial update will be done even if the UNS has indicated that a full update should be done.

Can also be called directly on the LCC object.

update

 $backend->update;

Update the status of the check to the backend.

Can also be called directly on the LCC object.

AUTHOR

Elizabeth Mattijsen, <liz@dijkmat.nl>.

Please report bugs to <perlbugs@dijkmat.nl>.

COPYRIGHT

Copyright (c) 2002 Elizabeth Mattijsen <liz@dijkmat.nl>. All rights reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

http://lococa.sourceforge.net, the LCC.pm and the other LCC::xxx modules.