fusioninventory::agent::storage(3pm) [debian man page]
FusionInventory::Agent::Storage(3pm) User Contributed Perl Documentation FusionInventory::Agent::Storage(3pm)NAME
FusionInventory::Agent::Storage - A data serializer/deserializer
SYNOPSIS
my $storage = FusionInventory::Agent::Storage->new(
directory => '/tmp'
);
my $data = $storage->restore(
module => "FusionInventory::Agent"
);
$data->{foo} = 'bar';
$storage->save(data => $data);
DESCRIPTION
This is the object used by the agent to ensure data persistancy between invocations.
Each data structure is saved in a file, whose name is automatically determined according to object class name. An optional index number can
be used to differentiate between consecutives usages.
METHODS
new(%params)
The constructor. The following parameters are allowed, as keys of the %params hash:
logger
the logger object to use
directory
the directory to use for storing data (mandatory)
getDirectory
Returns the underlying directory for this storage.
has(%params)
Returns true if a saved data structure exists. The following arguments are allowed:
name
The file name to use for saving the data structure (mandatory).
save(%params)
Save given data structure. The following parameters are allowed, as keys of the %params hash:
name
The file name to use for saving the data structure (mandatory).
restore(%params)
Restore a saved data structure. The following parameters are allowed, as keys of the %params hash:
name
The file name to use for saving the data structure (mandatory).
remove(%params)
Delete the file containing a seralized data structure for a given module. The following parameters are allowed, as keys of the %params
hash:
name
The file name to use for saving the data structure (mandatory).
perl v5.14.2 2012-06-14 FusionInventory::Agent::Storage(3pm)
Check Out this Related Man Page
STREAM_CONTEXT_SET_PARAMS(3) 1 STREAM_CONTEXT_SET_PARAMS(3)stream_context_set_params - Set parameters for a stream/wrapper/context
SYNOPSIS
bool stream_context_set_params (resource $stream_or_context, array $params)
DESCRIPTION
Sets parameters on the specified context.
PARAMETERS
o $stream_or_context
- The stream or context to apply the parameters too.
o $params
- An array of parameters to set.
Note
$params should be an associative array of the structure: $params['paramname'] = "paramvalue";.
SUPPORTED PARAMETERS
+-------------+---------------------------------------------------+
| Parameters | |
| | |
| | Purpose |
| | |
+-------------+---------------------------------------------------+
| | |
|notification | |
| | |
| | Name of user-defined callback function to be |
| | called whenever a stream triggers a notification. |
| | |
| | |
| options | |
| | |
| | Array of options as in context options and |
| | parameters. |
| | |
+-------------+---------------------------------------------------+
RETURN VALUES
Returns TRUE on success or FALSE on failure.
SEE ALSO stream_notification_callback(3).
PHP Documentation Group STREAM_CONTEXT_SET_PARAMS(3)
Hello!!
I'm new to the unix environment. I need to find out what parameters I need to use to save directory structure (with the permissions) and the files underneath this directory AND how to restore this directory structure on another unix machine.
Help me, please and thanks (3 Replies)
Is there a way to control that under a specific directory only a file with certain extension is allowed to be saved, others are denied.
For example, only *.txt extension is allowed to be saved in directory /abc, and files with extension .rtf is allowed in /xyz
(I know that UX does not care... (4 Replies)
I have an awk script which can be used in the following ways:
xi and xf will only be mandatory when processing the file fin.zc.
awk -v xi=0/-0.5 -v xf=80/30 -f ./zc2cmd.awk fin.zc > fout.cmod
awk -f ./zc2cmd.awk -u
awk -f ./zc2cmd.awk --usg
awk -f ./zc2cmd.awk -e
awk -f ./zc2cmd.awk... (1 Reply)
Hi all,
cp -r /tmp/Agent/* /apps/opt/Agent/TEST
When I copy files under /tmp/Agent using this command Files are getting copied to Agent folder also but I need only in the TEST folder.
Is there any way to fix this issue??\
Thanks in advance
Ananth (4 Replies)