CN116701304B - File management method, device, equipment and storage medium for self-service equipment - Google Patents

File management method, device, equipment and storage medium for self-service equipment Download PDF

Info

Publication number
CN116701304B
CN116701304B CN202310824492.5A CN202310824492A CN116701304B CN 116701304 B CN116701304 B CN 116701304B CN 202310824492 A CN202310824492 A CN 202310824492A CN 116701304 B CN116701304 B CN 116701304B
Authority
CN
China
Prior art keywords
file
file management
target
instruction
resource configuration
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202310824492.5A
Other languages
Chinese (zh)
Other versions
CN116701304A (en
Inventor
史本才
王秀娟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Yingtianhaile Technology Development Co ltd
Original Assignee
Beijing Yingtianhaile Technology Development Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Yingtianhaile Technology Development Co ltd filed Critical Beijing Yingtianhaile Technology Development Co ltd
Priority to CN202310824492.5A priority Critical patent/CN116701304B/en
Publication of CN116701304A publication Critical patent/CN116701304A/en
Application granted granted Critical
Publication of CN116701304B publication Critical patent/CN116701304B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/13File access structures, e.g. distributed indices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/14Details of searching files based on file metadata
    • G06F16/148File search processing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The application discloses a file management method, device and equipment for self-service equipment and a storage medium. The method comprises the following steps: acquiring a preset first file management instruction, a first file management condition and a first resource configuration file; querying a first target file set; searching a second file management instruction matched with the first file management instruction in the server and a second file management strategy configured by the second file management instruction; giving right to the second file management strategy to the first file management instruction to acquire the first file management strategy; inquiring target file state information of the first target file set to obtain a second target file set; and executing file management operation on the target files of the second target file set according to the first file management strategy. The method and the system can improve the global and unified management of the file management, improve the file management standardization and management efficiency of the self-service equipment, and improve the file management stability of the self-service equipment.

Description

File management method, device, equipment and storage medium for self-service equipment
Technical Field
The present disclosure relates generally to the field of file management technologies, and in particular, to a file management method, apparatus, device, and storage medium for a self-service device.
Background
With the improvement of the automation technology of medical equipment, the automatic storage, identification and distribution of some medical equipment become possible, for example, in a self-service operation clothing-sending machine, a self-service operation shoe-sending machine, a self-service selling device, a self-service device and the like of a hospital, various file management is very important when the self-service device performs self-service, such as order file management, transaction file management, log file management and the like, in the prior art, each folder and file name, ID numbers corresponding to each file and the like are usually stored in a local database, a user can manage the files in a mode of inquiring, reading, writing and the like, a fixed storage ID is generally set for the files, corresponding operation is performed on the files by acquiring ID information of the files, and the file management strategy is generally executed according to a local file management strategy, is not applicable to the global file management, and particularly for a server, the file management strategy determines the uniformity and global of the file management of each self-service device, but the file management strategy of the prior art is not affected by the server and the file management strategy, and the self-service management strategy is not affected by the mode of the server, so that the prior art needs to improve the file management.
Disclosure of Invention
In view of the foregoing drawbacks or shortcomings of the prior art, it is desirable to provide a file management method, apparatus, device and storage medium for a self-service device, which can meet the needs of the art.
According to one aspect of the embodiment of the application, the embodiment of the application provides a file management method for self-service equipment, which is used for a self-service equipment terminal, wherein the self-service equipment terminal is used for managing all resource files of the self-service equipment and is responsible for file interaction with a server, and the method comprises the following steps:
a user sends a file management request to trigger a file management program to acquire a preset first file management instruction matched with the file management request in self-service equipment;
acquiring a first file management condition and a first resource configuration file corresponding to the first file management instruction according to the first file management instruction;
inquiring a first target file set which is stored in the current self-service equipment and accords with the first file management condition and is adapted to the first resource configuration file according to the first file management condition and the first resource configuration file, wherein the first target file set comprises one or more target files which accord with the first file management condition and are adapted to the first resource configuration file;
Sending all target files in the first target file set and a first file management instruction to a server, and searching a second file management instruction matched with the first file management instruction in the server and a second file management strategy configured by the second file management instruction;
according to the second file management instruction and the second file management strategy, the second file management strategy is entitled to a first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained;
inquiring state information of all target files in the first target file set, and acquiring active target files in the first target file set as a second target file set;
and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set.
In another embodiment, the sending, by the user, a file management request to trigger a file management program, and obtaining a preset first file management instruction adapted to the file management request in the self-service device, includes:
A user inputs a corresponding instruction through a self-service equipment terminal to generate a file management request;
triggering and executing a file management program, and analyzing file management request content;
according to the content of the file management request, the file management program searches and processes one or more file management instructions adapted to the file management request;
the one or more file management instructions are encapsulated as a first file management instruction, which is an executing instruction set of the one or more file management instructions.
In another embodiment, the obtaining, according to the first file management instruction, a first file management condition corresponding to the first file management instruction, and a first resource configuration file includes:
acquiring constraint conditions of the first management instruction on file management according to the first file management instruction;
searching a first file management condition meeting the constraint condition in all file management conditions corresponding to the first management instruction according to the constraint condition of the first management instruction on file management;
acquiring all resource configuration files required by executing a first file management instruction;
for each resource configuration file, judging whether parameters of the resource configuration file need to be modified or not by combining the first file management conditions;
If the resource configuration file needs to be modified, carrying out parameter modification on the resource configuration file to obtain a new resource configuration file;
storing a new resource configuration file, and establishing a corresponding relation between the new resource configuration file and the first file management instruction;
after judging all the resource configuration files, uniformly packaging the final resource configuration files into first resource configuration files, wherein the first resource configuration files are all resource configuration files meeting the current first file management instruction requirements.
In another embodiment, the querying the first target file set stored in the current self-service device according to the first file management condition and the first resource configuration file and meeting the first file management condition and adapted to the first resource configuration file includes:
calculating a matching degree value of a stored file in the self-service equipment and the first file management condition, and acquiring the stored file with the matching degree value larger than a set threshold value;
acquiring the number of times that the storage file is accessed when the file management program is executed, wherein the number of times that the storage file is accessed is related to the number of times that the first file management instruction is accessed when the first file management instruction is executed;
Calculating the accessed times of each storage file, obtaining a file heat value of each storage file, and obtaining storage files with the file heat values larger than a set threshold;
and packaging the storage files which are adapted to the first resource configuration file in the storage files with the file heat value larger than the set threshold value into a first target file set.
In another embodiment, the step of assigning the second file management policy to the first file management instruction by the second file management instruction, and obtaining the first file management policy adapted to the first file management instruction includes:
acquiring a first file access threshold value contained in the second file management strategy, wherein the first file access threshold value comprises a parameter condition of file access and a frequency condition of file access;
performing numerical transformation adapted to the first file management instruction on the first file access threshold value to obtain a second file access threshold value, wherein the second file access threshold value comprises parameter conditions of file access subjected to data transformation and frequency conditions of file access;
and generating a first file management strategy matched with the first file management instruction by taking the second file access threshold and the first file management condition as parameters.
In another embodiment, the querying the state information of all the target files in the first target file set, and obtaining the active target file in the first target file set as the second target file set includes:
querying state information of all target files in the first target file set, wherein the state information of the target files comprises the information of the accessed times of the target files;
classifying all target files in the first target file set according to state information of all target files in the first target file set to obtain active target files, semi-active target files and inactive target files, wherein the active target files are target files with the target file access times exceeding a first threshold, the semi-active target files are target files with the target file access times not greater than the first threshold and greater than a second threshold, and the semi-active target files are target files with the target file access times not greater than the second threshold, and the first threshold is greater than the second threshold;
and taking the active target file as a second target file set.
In another embodiment, the file management method further includes:
When a file management request of a user is received, acquiring the type of the file management request, wherein the type of the file management request comprises a file inquiry instruction, a file reading instruction and a file writing instruction;
if the type of the file management request is a file inquiry instruction, determining a resource configuration file to be inquired corresponding to the file inquiry instruction;
sending a file query request to the resource configuration file to be queried;
when receiving target file information of a file inquiry request fed back to a user, a server sends the target file to the user;
if the type of the file request is a file reading instruction, determining a resource configuration file of the read instruction to be executed, which corresponds to the file reading instruction;
sending a file reading request to the resource configuration file of the read instruction to be executed;
the resource configuration file of the read instruction to be executed queries a target file which is stored by the self-service terminal and is matched with the resource configuration file of the read instruction to be executed, and the queried target file is sent to a server;
the server verifies the resource configuration file of the read instruction to be executed and the target file, and then sends the target file to a user;
If the type of the file request is a write instruction, determining a resource configuration file of the write instruction to be executed, which corresponds to the file write instruction;
sending a file writing request to the resource configuration file of the write instruction to be executed;
generating a target file by the resource configuration file of the write instruction to be executed, and sending the target file to a server;
and after verifying the resource configuration file of the write instruction to be executed and the target file, the server sends the target file to the self-service equipment and completes the file writing operation.
In another embodiment of the present application, a file management apparatus for a self-service device is disclosed, where the file management apparatus for a self-service device is provided in a self-service device terminal, and the self-service device terminal is used for managing all resource files of its device itself and is responsible for file interaction with a server, and the apparatus includes:
the file searching module is used for receiving a file management request sent by a user and triggering a file management program to acquire a preset first file management instruction matched with the file management request in the self-service equipment; acquiring a first file management condition and a first resource configuration file corresponding to the first file management instruction according to the first file management instruction; inquiring a first target file set which is stored in the current self-service equipment and accords with the first file management condition and is adapted to the first resource configuration file according to the first file management condition and the first resource configuration file, wherein the first target file set comprises one or more target files which accord with the first file management condition and are adapted to the first resource configuration file;
The policy generation module is used for sending all target files in the first target file set and the first file management instruction to a server, and searching a second file management instruction matched with the first file management instruction in the server and a second file management policy configured by the second file management instruction; according to the second file management instruction and the second file management strategy, the second file management strategy is entitled to a first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained;
the file management module is used for inquiring the state information of all target files in the first target file set and acquiring active target files in the first target file set as a second target file set; and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set.
In accordance with yet another aspect of an embodiment of the present invention, an electronic device is disclosed that includes one or more processors and memory for storing one or more programs; when the one or more programs are executed by the processor, the processor is caused to implement the file management method for self-service devices provided by the embodiments of the present invention.
In accordance with yet another aspect of embodiments of the present application, a computer-readable storage medium storing a computer program that, when executed, implements the file management method for a self-service device provided by embodiments of the present application is disclosed.
In the embodiment of the application, a file management program is triggered by a user sending a file management request, and a preset first file management instruction, a first file management condition corresponding to the first file management instruction and a first resource configuration file are acquired; inquiring a first target file set stored in the current self-service equipment; searching a second file management instruction matched with the first file management instruction in a server and a second file management strategy configured by the second file management instruction; the second file management strategy is entitled to the first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained; inquiring state information of all target files in the first target file set, and acquiring active target files in the first target file set as a second target file set; and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set. The method and the system can improve the global and unified management of the file management, improve the file management standardization and management efficiency of the self-service equipment, and improve the file management stability of the self-service equipment.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a flow chart of a method of file management for a self-service device provided in one embodiment of the present application;
FIG. 2 is a schematic diagram of a document management apparatus for a self-service device according to an embodiment of the present application;
fig. 3 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Referring to fig. 1, an exemplary flow of a file management method for a self-service device to which the embodiments of the present application may be applied is shown.
The file management method for the self-service equipment is used for the self-service equipment terminal, and the self-service equipment terminal is used for managing all resource files of the self-service equipment and is responsible for file interaction with a server.
As shown in fig. 1, in step 110, a user sends a file management request to trigger a file management program to obtain a preset first file management instruction adapted to the file management request in the self-service device.
Specifically, when a user sends file management request information through some input ends of the self-service terminal device, such as a display panel, a keyboard, a mouse and the like, a file management program is automatically triggered, the file request information sent by the user comprises query information, read information, write information and the like, at this time, according to the related content of the file management request sent by the user, the file management program queries and acquires a preset first file management instruction matched with the file management request from the self-service device, wherein the first file management instruction is one or more file management program instructions in corresponding file management instruction sets of the file management program, and the first file management instruction at this time is a file management instruction set matched with the file management request of the user and queried for the file management request sent by the user.
Specifically, in one embodiment of the present application, the sending, by the user, a file management request to trigger a file management program to obtain a preset first file management instruction adapted to the file management request in the self-service device, including:
a user inputs a corresponding instruction through a self-service equipment terminal to generate a file management request;
triggering and executing a file management program, and analyzing file management request content;
according to the content of the file management request, the file management program searches and processes one or more file management instructions adapted to the file management request;
the one or more file management instructions are encapsulated as a first file management instruction, which is an executing instruction set of the one or more file management instructions.
Specifically, after a user inputs a corresponding instruction through the self-service device terminal, a corresponding file management request is generated, in the embodiment of the application, the file management request is generated according to user operation, the user selects a certain button, or selects a certain service, or selects a certain instruction, or inputs corresponding data or characters, or the user inputs corresponding request information through a mode of facial images, sounds, fingerprints and the like, after the user sends the file management request out, a processor module of the self-service device automatically triggers and executes a file management program, the file management program firstly analyzes the content of the file management request, classifies the content of the file management request, searches for file management instructions to be executed through classifying the content of the file management request, and needs to be explained that the file management instructions required for executing any file management request are all large, so that all the file management instructions for executing the file management request of the user are uniformly packaged into a first file management instruction, and the first file management instruction is a group of instruction sets.
In step 120, according to the first file management instruction, a first file management condition corresponding to the first file management instruction and a first resource configuration file are obtained.
Specifically, for the first file management instruction, constraint conditions of the first file management instruction in executing the file management instruction need to be determined, where the file management conditions are parameter requirements, such as the number of file accesses, time intervals, and the like, that need to be met when the first file management instruction is executed, and the first resource configuration file is a program for executing the first file management instruction, that is, a corresponding program that needs to be enabled and a resource that needs to be provided when the first file management instruction is executed.
Specifically, in one embodiment of the present application, the obtaining, according to the first file management instruction, a first file management condition corresponding to the first file management instruction, and a first resource configuration file includes:
acquiring constraint conditions of the first management instruction on file management according to the first file management instruction;
searching a first file management condition meeting the constraint condition in all file management conditions corresponding to the first management instruction according to the constraint condition of the first management instruction on file management;
Acquiring all resource configuration files required by executing a first file management instruction;
for each resource configuration file, judging whether parameters of the resource configuration file need to be modified or not by combining the first file management conditions;
if the resource configuration file needs to be modified, carrying out parameter modification on the resource configuration file to obtain a new resource configuration file;
storing a new resource configuration file, and establishing a corresponding relation between the new resource configuration file and the first file management instruction;
after judging all the resource configuration files, uniformly packaging the final resource configuration files into first resource configuration files, wherein the first resource configuration files are all resource configuration files meeting the current first file management instruction requirements.
In step 130, according to the first file management condition and the first resource configuration file, a first target file set stored in the current self-service device and conforming to the first file management condition is queried, where the first target file set includes one or more target files conforming to the first file management condition and conforming to the first resource configuration file.
Specifically, when the first file management instruction is executed, because the constraint condition of the first file management condition and the configuration resource executed by the file management instruction of the first resource configuration file are set, the files meeting the corresponding conditions stored in the current self-service device can be searched according to the parameter condition of the first resource configuration file under the constraint of the first file management condition, and it is required to be noted that a plurality of searched files are required, so that the searched files can be uniformly packaged into a first target file set, the files in the first target file set are not the final files after the instruction execution of the user file management request, but are equivalent to the templates executed by the instruction, and when the instruction execution is executed on the user file management request, the files in the first target file set are used as file templates, and a certain condition can be set or a certain parameter can be modified or the state of certain parameter can be changed in the subsequent execution process, so that the file management result can be generated.
Specifically, in one embodiment of the present application, the querying, according to the first file management condition and the first resource configuration file, a first target file set stored in the current self-service device and meeting the first file management condition and adapted to the first resource configuration file includes:
Calculating a matching degree value of a stored file in the self-service equipment and the first file management condition, and acquiring the stored file with the matching degree value larger than a set threshold value; specifically, the matching degree value is a numerical indicator that the stored file in the self-service device meets the first file management condition, and in the embodiment of the present application, parameters involved in calculating the matching degree value include: and (3) calculating the matching degree value of the parameters, namely obtaining the storage file with the matching degree value larger than a set threshold value.
The number of times the storage file is accessed when the file management program is executed is obtained, the number of times the storage file is accessed is related to the number of times the first file management instruction is executed, specifically, the more the number of times the storage file is accessed when the file management program is executed, the more the condition that the file meets a file management request is indicated, the greater the possibility that the file is used as a target file of the first file management instruction is, therefore, the heat of the storage file when the file management program is executed can be obtained by obtaining the number of times the storage file is accessed when the file management program is executed, and the heat is related to the number of times the storage file is accessed when the file management program is executed;
Calculating the accessed times of each storage file, obtaining a file heat value of each storage file, and obtaining storage files with the file heat values larger than a set threshold, wherein the association degree of the storage files meeting file request management sent by a user is represented by calculating the file heat value of each storage file;
and packaging the storage files which are adapted to the first resource configuration file in the storage files with the file heat value larger than the set threshold value into a first target file set.
In step 140, all target files in the first target file set and the first file management instruction are sent to a server, and a second file management instruction matched with the first file management instruction in the server and a second file management policy configured by the second file management instruction are searched.
Specifically, the file management policy is a method for executing file management by a file management instruction, for example, whether to delete a file or modify a parameter, or whether to add a file parameter item, when modifying a parameter, whether a modification mode is a boolean parameter or a logic parameter, an allowable modification range of a parameter, and the like, and the file management instruction in the server is adapted to the file management instruction of the self-service terminal.
In step 150, according to the second file management instruction and the second file management policy, the second file management policy is entitled to the first file management instruction through the second file management instruction, and the first file management policy adapted to the first file management instruction is obtained.
Specifically, the second file management policy is entitled to the first file management instruction, that is, corresponding conditions, constraint relationships, parameters and treatment flows in the second file management policy are adapted to the first file management instruction through corresponding transformation, it can be understood that the second file management policy is equivalent to a model, and the first file management policy is a file treatment policy that performs corresponding parameter transformation, flow optimization or condition optimization adjustment on the second file management policy, that is, the first file management policy is partial optimization adjustment under the framework of the second file management policy, and does not change the framework structure, flow sequence and treatment principle of the second file management policy, but makes corresponding correction for adapting to the first file management instruction.
Specifically, in one embodiment of the present application, the step of assigning the second file management policy to the first file management instruction by the second file management instruction, and obtaining the first file management policy adapted to the first file management instruction includes:
Acquiring a first file access threshold value contained in the second file management strategy, wherein the first file access threshold value comprises a parameter condition of file access and a frequency condition of file access;
performing numerical transformation adapted to the first file management instruction on the first file access threshold value to obtain a second file access threshold value, wherein the second file access threshold value comprises parameter conditions of file access subjected to data transformation and frequency conditions of file access;
and generating a first file management strategy matched with the first file management instruction by taking the second file access threshold and the first file management condition as parameters.
In step 160, the state information of all the target files in the first target file set is queried, and the active target files in the first target file set are acquired as the second target file set.
Specifically, in one embodiment of the present application, the querying the state information of all the target files in the first target file set to obtain the active target files in the first target file set as the second target file set includes:
querying state information of all target files in the first target file set, wherein the state information of the target files comprises the information of the accessed times of the target files;
Classifying all target files in the first target file set according to state information of all target files in the first target file set to obtain active target files, semi-active target files and inactive target files, wherein the active target files are target files with the target file access times exceeding a first threshold, the semi-active target files are target files with the target file access times not greater than the first threshold and greater than a second threshold, and the semi-active target files are target files with the target file access times not greater than the second threshold, and the first threshold is greater than the second threshold;
and taking the active target file as a second target file set.
In step 170, according to the first file management policy, the first file management instruction is triggered to execute a file management operation on the target files in the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set.
In one embodiment of the present application, the file management method for a self-service device further includes:
when a file management request of a user is received, acquiring the type of the file management request, wherein the type of the file management request comprises a file inquiry instruction, a file reading instruction and a file writing instruction;
If the type of the file management request is a file inquiry instruction, determining a resource configuration file to be inquired corresponding to the file inquiry instruction;
sending a file query request to the resource configuration file to be queried;
when receiving target file information of a file inquiry request fed back to a user, a server sends the target file to the user;
if the type of the file request is a file reading instruction, determining a resource configuration file of the read instruction to be executed, which corresponds to the file reading instruction;
sending a file reading request to the resource configuration file of the read instruction to be executed;
the resource configuration file of the read instruction to be executed queries a target file which is stored by the self-service terminal and is matched with the resource configuration file of the read instruction to be executed, and the queried target file is sent to a server;
the server verifies the resource configuration file of the read instruction to be executed and the target file, and then sends the target file to a user;
if the type of the file request is a write instruction, determining a resource configuration file of the write instruction to be executed, which corresponds to the file write instruction;
sending a file writing request to the resource configuration file of the write instruction to be executed;
Generating a target file by the resource configuration file of the write instruction to be executed, and sending the target file to a server;
and after verifying the resource configuration file of the write instruction to be executed and the target file, the server sends the target file to the self-service equipment and completes the file writing operation.
In the embodiment of the application, a file management program is triggered by a user sending a file management request, and a preset first file management instruction, a first file management condition corresponding to the first file management instruction and a first resource configuration file are acquired; inquiring a first target file set stored in the current self-service equipment; searching a second file management instruction matched with the first file management instruction in a server and a second file management strategy configured by the second file management instruction; the second file management strategy is entitled to the first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained; inquiring state information of all target files in the first target file set, and acquiring active target files in the first target file set as a second target file set; and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set. The method and the system can improve the global and unified management of the file management, improve the file management standardization and management efficiency of the self-service equipment, and improve the file management stability of the self-service equipment.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
Fig. 2 is a schematic structural diagram of a file management apparatus for a self-service device according to an embodiment of the present application, as shown in fig. 2, where the file management apparatus for a self-service device is provided in a self-service device terminal, and the self-service device terminal is configured to manage all resource files of its device and is responsible for file interaction with a server, and the file management apparatus for a self-service device includes:
The system comprises a file searching module, a strategy generating module and a file management module;
the file searching module is used for receiving a file management request sent by a user and triggering a file management program to acquire a preset first file management instruction matched with the file management request in the self-service equipment; acquiring a first file management condition and a first resource configuration file corresponding to the first file management instruction according to the first file management instruction; inquiring a first target file set which is stored in the current self-service equipment and accords with the first file management condition and is adapted to the first resource configuration file according to the first file management condition and the first resource configuration file, wherein the first target file set comprises one or more target files which accord with the first file management condition and are adapted to the first resource configuration file;
the policy generation module is used for sending all target files in the first target file set and the first file management instruction to a server, and searching a second file management instruction matched with the first file management instruction in the server and a second file management policy configured by the second file management instruction; according to the second file management instruction and the second file management strategy, the second file management strategy is entitled to a first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained;
The file management module is used for inquiring the state information of all target files in the first target file set and acquiring active target files in the first target file set as a second target file set; and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set.
Specifically, in another embodiment of the present application, the file searching module is configured to generate a file management request by inputting a corresponding instruction by a user through a self-service device terminal; triggering and executing a file management program, and analyzing file management request content; according to the content of the file management request, the file management program searches and processes one or more file management instructions adapted to the file management request; the one or more file management instructions are encapsulated as a first file management instruction, which is an executing instruction set of the one or more file management instructions.
Specifically, in another embodiment of the present application, the file searching module is configured to obtain, according to a first file management instruction, a constraint condition of the first management instruction on file management; searching a first file management condition meeting the constraint condition in all file management conditions corresponding to the first management instruction according to the constraint condition of the first management instruction on file management; acquiring all resource configuration files required by executing a first file management instruction; for each resource configuration file, judging whether parameters of the resource configuration file need to be modified or not by combining the first file management conditions; if the resource configuration file needs to be modified, carrying out parameter modification on the resource configuration file to obtain a new resource configuration file; storing a new resource configuration file, and establishing a corresponding relation between the new resource configuration file and the first file management instruction; after judging all the resource configuration files, uniformly packaging the final resource configuration files into first resource configuration files, wherein the first resource configuration files are all resource configuration files meeting the current first file management instruction requirements.
Specifically, in another embodiment of the present application, the file searching module is configured to calculate a matching degree value between a stored file in the self-service device and the first file management condition, and obtain a stored file with the matching degree value greater than a set threshold; acquiring the number of times that the storage file is accessed when the file management program is executed, wherein the number of times that the storage file is accessed is related to the number of times that the first file management instruction is accessed when the first file management instruction is executed; calculating the accessed times of each storage file, obtaining a file heat value of each storage file, and obtaining storage files with the file heat values larger than a set threshold; and packaging the storage files which are adapted to the first resource configuration file in the storage files with the file heat value larger than the set threshold value into a first target file set.
Specifically, in another embodiment of the present application, the policy generation module is configured to obtain a first file access threshold included in the second file management policy, where the first file access threshold includes a parameter condition of file access and a frequency condition of file access; performing numerical transformation adapted to the first file management instruction on the first file access threshold value to obtain a second file access threshold value, wherein the second file access threshold value comprises parameter conditions of file access subjected to data transformation and frequency conditions of file access; and generating a first file management strategy matched with the first file management instruction by taking the second file access threshold and the first file management condition as parameters.
Specifically, in another embodiment of the present application, the file management module is configured to query status information of all target files in the first target file set, where the status information of the target files includes information about the number of times that the target files are accessed; classifying all target files in the first target file set according to state information of all target files in the first target file set to obtain active target files, semi-active target files and inactive target files, wherein the active target files are target files with the target file access times exceeding a first threshold, the semi-active target files are target files with the target file access times not greater than the first threshold and greater than a second threshold, and the semi-active target files are target files with the target file access times not greater than the second threshold, and the first threshold is greater than the second threshold; and taking the active target file as a second target file set.
Specifically, in another embodiment of the present application, the file management module is configured to obtain a type of a file management request when receiving a file management request of a user, where the type of the file management request includes a file query instruction, a file reading instruction, and a file writing instruction; if the type of the file management request is a file inquiry instruction, determining a resource configuration file to be inquired corresponding to the file inquiry instruction; sending a file query request to the resource configuration file to be queried; when receiving target file information of a file inquiry request fed back to a user, a server sends the target file to the user; if the type of the file request is a file reading instruction, determining a resource configuration file of the read instruction to be executed, which corresponds to the file reading instruction; sending a file reading request to the resource configuration file of the read instruction to be executed; the resource configuration file of the read instruction to be executed queries a target file which is stored by the self-service terminal and is matched with the resource configuration file of the read instruction to be executed, and the queried target file is sent to a server; the server verifies the resource configuration file of the read instruction to be executed and the target file, and then sends the target file to a user; if the type of the file request is a write instruction, determining a resource configuration file of the write instruction to be executed, which corresponds to the file write instruction; sending a file writing request to the resource configuration file of the write instruction to be executed; generating a target file by the resource configuration file of the write instruction to be executed, and sending the target file to a server; and after verifying the resource configuration file of the write instruction to be executed and the target file, the server sends the target file to the self-service equipment and completes the file writing operation.
In the embodiment of the application, a file searching module executes a file management request sent by a user to trigger a file management program, and a preset first file management instruction, a first file management condition corresponding to the first file management instruction and a first resource configuration file are acquired; inquiring a first target file set stored in the current self-service equipment; the policy generation module searches a second file management instruction matched with the first file management instruction in the server and a second file management policy configured by the second file management instruction; the second file management strategy is entitled to the first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained; the file management module is used for inquiring the state information of all target files in the first target file set and acquiring active target files in the first target file set as a second target file set; and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set. The method and the system can improve the global and unified management of the file management, improve the file management standardization and management efficiency of the self-service equipment, and improve the file management stability of the self-service equipment.
For a specific limitation of the document management apparatus for the self-service device, reference may be made to the above limitation of the document management method for the self-service device, and no further description is given here. The above-described respective modules in the file management apparatus for a self-service device may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In particular, according to an embodiment of the present disclosure, as shown in FIG. 3, an electronic device is disclosed that includes one or more processors and memory for storing one or more programs; when the one or more programs are executed by the processor, the processor is caused to implement the file management method for self-service devices according to the embodiment of the present invention.
In particular, according to embodiments of the present disclosure, the file management method for a self-service device described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing a file management method for a self-service device. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium.
The one or more programs are stored in a read-only memory ROM or a random access memory RAM to perform various appropriate actions and processes. In the random access memory RAM, software programs for the server to complete the corresponding service are included, as well as various programs and data required for the driving operation of the vehicle. The server and its controlled hardware devices, read-only memory ROM, random access memory RAM are connected to each other via a bus to which various input/output interfaces are also connected.
The following components are connected to the input/output interface: an input section including a keyboard, a mouse, etc.; an output section including a cathode ray tube CRT, a liquid crystal display LCD, etc., and a speaker, etc.; and a communication section including a network interface card such as a LAN card, a modem, and the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the input/output interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the memory as needed.
In particular, according to embodiments of the present disclosure, the file management method for a self-service device described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program containing program code for performing a file management method for a self-service device. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor. The names of these units or modules do not in some way constitute a limitation of the unit or module itself.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (10)

1. A file management method for self-service equipment, the method being used for self-service equipment terminals, the self-service equipment terminals being used for managing all resource files of the self-service equipment and being responsible for file interaction with a server, the method comprising:
a user sends a file management request to trigger a file management program to acquire a preset first file management instruction matched with the file management request in self-service equipment;
acquiring a first file management condition and a first resource configuration file corresponding to the first file management instruction according to the first file management instruction;
inquiring a first target file set which is stored in the current self-service equipment and accords with the first file management condition and is adapted to the first resource configuration file according to the first file management condition and the first resource configuration file, wherein the first target file set comprises one or more target files which accord with the first file management condition and are adapted to the first resource configuration file;
sending all target files in the first target file set and a first file management instruction to a server, and searching a second file management instruction matched with the first file management instruction in the server and a second file management strategy configured by the second file management instruction;
According to the second file management instruction and the second file management strategy, the second file management strategy is entitled to a first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained;
inquiring state information of all target files in the first target file set, and acquiring active target files in the first target file set as a second target file set;
and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set.
2. The method of claim 1, wherein the user sending a file management request triggers a file management program to obtain a preset first file management instruction in the self-service device adapted to the file management request, including:
a user inputs a corresponding instruction through a self-service equipment terminal to generate a file management request;
triggering and executing a file management program, and analyzing file management request content;
According to the content of the file management request, the file management program searches and processes one or more file management instructions adapted to the file management request;
the one or more file management instructions are encapsulated as a first file management instruction, which is an executing instruction set of the one or more file management instructions.
3. The method of claim 1, wherein the obtaining, according to the first file management instruction, a first file management condition corresponding to the first file management instruction, and a first resource configuration file, includes:
acquiring constraint conditions of the first management instruction on file management according to the first file management instruction;
searching a first file management condition meeting the constraint condition in all file management conditions corresponding to the first management instruction according to the constraint condition of the first management instruction on file management;
acquiring all resource configuration files required by executing a first file management instruction;
for each resource configuration file, judging whether parameters of the resource configuration file need to be modified or not by combining the first file management conditions;
if the resource configuration file needs to be modified, carrying out parameter modification on the resource configuration file to obtain a new resource configuration file;
Storing a new resource configuration file, and establishing a corresponding relation between the new resource configuration file and the first file management instruction;
after judging all the resource configuration files, uniformly packaging the final resource configuration files into first resource configuration files, wherein the first resource configuration files are all resource configuration files meeting the current first file management instruction requirements.
4. The method of claim 1, wherein querying a first target file set stored in a current self-service device that meets the first file management condition and is adapted to the first resource configuration file according to the first file management condition and the first resource configuration file comprises:
calculating a matching degree value of a stored file in the self-service equipment and the first file management condition, and acquiring the stored file with the matching degree value larger than a set threshold value;
acquiring the number of times that the storage file is accessed when the file management program is executed, wherein the number of times that the storage file is accessed is related to the number of times that the first file management instruction is accessed when the first file management instruction is executed;
calculating the accessed times of each storage file, obtaining a file heat value of each storage file, and obtaining storage files with the file heat values larger than a set threshold;
And packaging the storage files which are adapted to the first resource configuration file in the storage files with the file heat value larger than the set threshold value into a first target file set.
5. The method of claim 1, wherein the assigning the second file management policy to the first file management instruction via the second file management instruction, and obtaining the first file management policy adapted by the first file management instruction, comprises:
acquiring a first file access threshold value contained in the second file management strategy, wherein the first file access threshold value comprises a parameter condition of file access and a frequency condition of file access;
performing numerical transformation adapted to the first file management instruction on the first file access threshold value to obtain a second file access threshold value, wherein the second file access threshold value comprises parameter conditions of file access subjected to data transformation and frequency conditions of file access;
and generating a first file management strategy matched with the first file management instruction by taking the second file access threshold and the first file management condition as parameters.
6. The method of claim 1, wherein the querying the state information of all target files in the first target file set to obtain active target files in the first target file set as a second target file set includes:
Querying state information of all target files in the first target file set, wherein the state information of the target files comprises the information of the accessed times of the target files;
classifying all target files in the first target file set according to state information of all target files in the first target file set to obtain active target files, semi-active target files and inactive target files, wherein the active target files are target files with the target file access times exceeding a first threshold, the semi-active target files are target files with the target file access times not greater than the first threshold and greater than a second threshold, and the semi-active target files are target files with the target file access times not greater than the second threshold, and the first threshold is greater than the second threshold;
and taking the active target file as a second target file set.
7. The method according to claim 1, wherein the method further comprises:
when a file management request of a user is received, acquiring the type of the file management request, wherein the type of the file management request comprises a file inquiry instruction, a file reading instruction and a file writing instruction;
If the type of the file management request is a file inquiry instruction, determining a resource configuration file to be inquired corresponding to the file inquiry instruction;
sending a file query request to the resource configuration file to be queried;
when receiving target file information of a file inquiry request fed back to a user, a server sends the target file to the user;
if the type of the file request is a file reading instruction, determining a resource configuration file of the read instruction to be executed, which corresponds to the file reading instruction;
sending a file reading request to the resource configuration file of the read instruction to be executed;
the resource configuration file of the read instruction to be executed queries a target file which is stored by the self-service terminal and is matched with the resource configuration file of the read instruction to be executed, and the queried target file is sent to a server;
the server verifies the resource configuration file of the read instruction to be executed and the target file, and then sends the target file to a user;
if the type of the file request is a write instruction, determining a resource configuration file of the write instruction to be executed, which corresponds to the file write instruction;
sending a file writing request to the resource configuration file of the write instruction to be executed;
Generating a target file by the resource configuration file of the write instruction to be executed, and sending the target file to a server;
and after verifying the resource configuration file of the write instruction to be executed and the target file, the server sends the target file to the self-service equipment and completes the file writing operation.
8. A document management apparatus for a self-service device, the document management apparatus for a self-service device being disposed at a self-service device terminal, the self-service device terminal being configured to manage all resource documents of its device itself and being responsible for document interaction with a server, the apparatus comprising:
the file searching module is used for receiving a file management request sent by a user and triggering a file management program to acquire a preset first file management instruction matched with the file management request in the self-service equipment; acquiring a first file management condition and a first resource configuration file corresponding to the first file management instruction according to the first file management instruction; inquiring a first target file set which is stored in the current self-service equipment and accords with the first file management condition and is adapted to the first resource configuration file according to the first file management condition and the first resource configuration file, wherein the first target file set comprises one or more target files which accord with the first file management condition and are adapted to the first resource configuration file;
The policy generation module is used for sending all target files in the first target file set and the first file management instruction to a server, and searching a second file management instruction matched with the first file management instruction in the server and a second file management policy configured by the second file management instruction; according to the second file management instruction and the second file management strategy, the second file management strategy is entitled to a first file management instruction through the second file management instruction, and a first file management strategy matched with the first file management instruction is obtained;
the file management module is used for inquiring the state information of all target files in the first target file set and acquiring active target files in the first target file set as a second target file set; and triggering the first file management instruction to execute file management operation on the target files of the second target file set according to the first file management policy, so as to complete file management on the target files in the second target file set.
9. An electronic device comprising one or more processors and memory for storing one or more programs;
The one or more programs, when executed by the processor, cause the processor to implement the method of any of claims 1-7.
10. A computer readable storage medium storing a computer program, characterized in that the computer program when executed implements the method of any one of claims 1 to 7.
CN202310824492.5A 2023-07-06 2023-07-06 File management method, device, equipment and storage medium for self-service equipment Active CN116701304B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310824492.5A CN116701304B (en) 2023-07-06 2023-07-06 File management method, device, equipment and storage medium for self-service equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310824492.5A CN116701304B (en) 2023-07-06 2023-07-06 File management method, device, equipment and storage medium for self-service equipment

Publications (2)

Publication Number Publication Date
CN116701304A CN116701304A (en) 2023-09-05
CN116701304B true CN116701304B (en) 2023-11-03

Family

ID=87843351

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310824492.5A Active CN116701304B (en) 2023-07-06 2023-07-06 File management method, device, equipment and storage medium for self-service equipment

Country Status (1)

Country Link
CN (1) CN116701304B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140034555A (en) * 2012-09-12 2014-03-20 (주)나무소프트 Apparatus and method for managing files
CN106469281A (en) * 2015-08-18 2017-03-01 华为技术有限公司 The management method of data file, cloud management point and system in a kind of cloud

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008111359A1 (en) * 2007-03-12 2008-09-18 Nec Corporation File server system and file management method
US9038168B2 (en) * 2009-11-20 2015-05-19 Microsoft Technology Licensing, Llc Controlling resource access based on resource properties
WO2015189988A1 (en) * 2014-06-13 2015-12-17 株式会社日立製作所 Management server which outputs file relocation policy, and storage system
KR101806499B1 (en) * 2016-06-10 2017-12-07 주식회사 지어소프트 Method for managing files and apparatus using the same

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20140034555A (en) * 2012-09-12 2014-03-20 (주)나무소프트 Apparatus and method for managing files
CN106469281A (en) * 2015-08-18 2017-03-01 华为技术有限公司 The management method of data file, cloud management point and system in a kind of cloud

Also Published As

Publication number Publication date
CN116701304A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN110347560A (en) Abnormal prompt method, apparatus, system, equipment and the medium of big data product
CN110276074B (en) Distributed training method, device, equipment and storage medium for natural language processing
JP2022543180A (en) Visualization method and related device
EP4193268A1 (en) Data processing systems and methods for automatically redacting unstructured data from a data subject access request
CN110851298A (en) Abnormality analysis and processing method, electronic device, and storage medium
US7974866B2 (en) System and method for managing workflow among a plurality of business processes associated respectively with users having access rights to artifacts
CN110909013A (en) Service list generation method, device, equipment and computer readable storage medium
CN111813803A (en) Statement block execution plan generation method, device, equipment and storage medium
CN110888672A (en) Metadata architecture-based expression engine implementation method and system
CN111445319A (en) Voucher generation method and device, computer equipment and storage medium
CN110009476A (en) A kind of method and apparatus handling application of making loans
CN116701304B (en) File management method, device, equipment and storage medium for self-service equipment
WO2024045725A1 (en) Processing method for target insurance policy, electronic device and readable storage medium
JP2001306873A (en) Electronic transaction system
CN115827084A (en) Data processing method, device, equipment and storage medium
CN115495513A (en) Event standardization method and device
CN114693220A (en) Algorithm warehouse management method and system based on digital twin DaaS platform
CN114924783A (en) Interface calling method, device, equipment and storage medium of application program
US20020178379A1 (en) Physical device placement assistant
CN113626387A (en) Task data export method and device, electronic equipment and storage medium
CN117373175A (en) Order processing method, device, equipment and storage medium for self-service equipment
CN117252554B (en) Business process mutual exclusion control method and system based on decision engine
CN117290016B (en) Page configuration method and device for view
CN112948370B (en) Data classification method and device and computer equipment
CN109344166B (en) Database monitoring method, computer readable storage medium and terminal device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant