CN103793210B - Disk method for sorting, apparatus and system - Google Patents

Disk method for sorting, apparatus and system Download PDF

Info

Publication number
CN103793210B
CN103793210B CN201210420920.XA CN201210420920A CN103793210B CN 103793210 B CN103793210 B CN 103793210B CN 201210420920 A CN201210420920 A CN 201210420920A CN 103793210 B CN103793210 B CN 103793210B
Authority
CN
China
Prior art keywords
disk
data
analysis
task
unit
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
CN201210420920.XA
Other languages
Chinese (zh)
Other versions
CN103793210A (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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201210420920.XA priority Critical patent/CN103793210B/en
Priority to PCT/CN2013/085749 priority patent/WO2014067411A1/en
Publication of CN103793210A publication Critical patent/CN103793210A/en
Application granted granted Critical
Publication of CN103793210B publication Critical patent/CN103793210B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files
    • 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/17Details of further file system functions
    • G06F16/1724Details of de-fragmentation performed by the file system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/061Improving I/O performance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0668Interfaces specially adapted for storage systems adopting a particular infrastructure
    • G06F3/0671In-line storage system
    • G06F3/0673Single storage device
    • G06F3/0674Disk device
    • G06F3/0676Magnetic disk device
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2206/00Indexing scheme related to dedicated interfaces for computers
    • G06F2206/10Indexing scheme related to storage interfaces for computers, indexing schema related to group G06F3/06
    • G06F2206/1004Defragmentation

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The present invention discloses a kind of disk method for sorting, apparatus and system, and this disk method for sorting includes:The control instruction at receive user end, and according to described control instruction, create corresponding disk task;According to described disk task, calls application interface carries out corresponding disk analysis and arrangement, and output disk analysis and disposal data;Wherein disk analysis and disposal data include the state of cluster;Show described disk analysis and disposal data.The present invention passes through the establishment of disk task, corresponding application programming interfaces are called to carry out disk analysis and arrangement, and the disk analysis of application programming interfaces upload and disposal data include the state of cluster, so that when the disk details figure shown is zoomed in and out, the comprehensive state of each display unit being made up of n cluster can be checked.

Description

Disk method for sorting, apparatus and system
Technical field
The present invention relates to disk finishing field, more particularly, to a kind of disk method for sorting, apparatus and system.
Background technology
Computer, during running, can produce some disk fragmentses, and time length disk fragmentses can cause systematicness Can be deteriorated, such as operation program, slow when browsing webpage, storage file.Accordingly, it is desirable to be arranged soft using disk Part is analyzed to disk fragmentses and arranges, to keep the seriality of disk file memory space.
Existing disk arranges software and includes that Windows disk arranges great master and UltraDefrag disk arranges although two Money disk arranges analysis and the arrangement that software all enables disk fragmentses, but still suffers from some problems:Such as Windows disk In arrangement great master, the analysis of disk fragmentses and arrangement process can dynamically show disk details, but the disk details shown Cannot be carried out scaling, visual display effect is poor;And although UltraDefrag disk arrangement software can be to the disk of Dynamic Display Details zoom in and out, but during scaling, the state of each display unit is to be copied by initial display unit state Arrive, not the state of the cluster included by this display unit of actual response.As shown in Figure 1a, disk arranges the magnetic that software is shown Disk details in figure, each grid all represents a display unit, and display unit is made up of n cluster.Display unit passes through to fill out Fill different colors to show its state, such as fragment, contiguous file, compressed file etc..By Fig. 1 b it is recognized that while disk is detailed Feelings figure can be scaled, but it is only accomplished that the scaling of display unit, that is, when amplifying, the number of clusters mesh of display unit is less, When reducing, the number of clusters mesh of display unit is more, and the state forming n cluster of display unit cannot be shown.
Content of the invention
The main object of the present invention is to provide a kind of disk method for sorting it is intended to make disk arrangement detailed to disk in showing The comprehensive state of each display unit being made up of n cluster when feelings figure zooms in and out, can be checked.
The invention provides a kind of disk method for sorting, comprise the following steps:
Step S110, the control instruction at receive user end, and according to described control instruction, create corresponding disk task;
Step S120, according to described disk task, calls application interface carries out corresponding disk analysis and arrangement, and Output disk analysis and disposal data;Wherein disk analysis and disposal data include the state of cluster;
Step S130, the described disk analysis of displaying and disposal data.
Present invention also offers a kind of disk collating unit, including:
Subscriber interface module, for the control instruction at receive user end, and according to described control instruction, creates corresponding magnetic Disk task;It is additionally operable to show disk analysis and disposal data;
Configuration Manager, for the disk task of receive user interface module, calls application interface is carried out accordingly Disk analysis and arrangement, and disk analysis and disposal data be uploaded to subscriber interface module be shown;Wherein disk divides Analysis and disposal data include the state of cluster.
Present invention also offers a kind of disk clearing system, including:Application layer and application programming interfaces, wherein:
Described application layer includes disk collating unit, for creating disk task, and calls described application programming interfaces to enter The corresponding disk analysis of row and arrangement, and the disk analysis uploading and disposal data are shown to described application programming interfaces; Described application programming interfaces, for calling according to described disk collating unit, carry out corresponding disk finishing analysis, and by magnetic Disk analysis and disposal data are uploaded to disk collating unit;Wherein, disk analysis and disposal data include the state of cluster.
The present invention passes through the establishment of disk task, calls corresponding application programming interfaces to carry out disk analysis and arrangement, and And the disk analysis of application programming interfaces upload and disposal data include the state of cluster, so as to the disk details figure shown The comprehensive state of each display unit being made up of n cluster when zooming in and out, can be checked.
Brief description
Fig. 1 a is the structural representation that in prior art, disk arranges the disk details that software is shown;
Fig. 1 b is the structural representation of the disk details after being amplified in Fig. 1 a;
Fig. 2 is the schematic flow sheet of inventive disk method for sorting one embodiment;
Fig. 3 is the flow process that in inventive disk method for sorting, calls application interface produces disk analysis and disposal data Schematic diagram;
Fig. 4 is the schematic flow sheet showing disk analysis and disposal data in inventive disk method for sorting;
Fig. 5 is the structural representation of inventive disk collating unit first embodiment;
Fig. 6 is the structural representation of inventive disk collating unit second embodiment;
Fig. 7 is the structural representation of inventive disk collating unit fourth embodiment;
Fig. 8 is the structural representation of the message module of disk collating unit in Fig. 7;
Fig. 9 is that the message module of disk collating unit in Fig. 7 carries out the schematic flow sheet of Message Processing;
Figure 10 is the structural representation of Configuration Manager in inventive disk collating unit;
Figure 11 is the structural representation of subscriber interface module in inventive disk collating unit;
Figure 12 is the structural representation of inventive disk clearing system;
Figure 13 is the structural representation of the application programming interfaces of disk clearing system in Figure 12.
The realization of the object of the invention, functional characteristics and advantage will be described further in conjunction with the embodiments referring to the drawings.
Specific embodiment
Further illustrate technical scheme below in conjunction with Figure of description and specific embodiment.It should be appreciated that this The described specific embodiment in place, only in order to explain the present invention, is not intended to limit the present invention.
Main idea is that by, during the analysis and arrangement of disk, obtaining the state letter of cluster in data Breath, and the comprehensive state in the display unit of n cluster composition in window is arranged according to the state information updating disk of this cluster, it is not But support the scaling of disk details figure, and after scaling, display unit can really reflect the state of its cluster including, example As disk details figure, even can be amplified to each display unit includes 1 cluster.
With reference to Fig. 2, an embodiment of inventive disk method for sorting is proposed.The disk method for sorting of this embodiment include with Lower step:
Step S110, the control instruction at receive user end, and according to described control instruction, create corresponding disk task;
This control instruction may include the debris analysis instruction of disk, defragmentation instruction, for example, start, suspend, stop. After receiving control instruction, then create corresponding disk task.
Step S120, according to described disk task, calls application interface carries out corresponding disk analysis and arrangement, and Output disk analysis and disposal data;Wherein disk analysis and disposal data include the state of cluster;
After disk task creation, then calls application interface carries out corresponding disk analysis and arrangement, and by disk Analysis and the data arranging upload.This disk analysis and disposal data include the state of each cluster, such as occupancy, fragment, compression File etc..The data structure of data that for example application programming interfaces upload can be:
Receive the clustersState of application programming interfaces upload, find its corresponding display unit, and to this display In unit, the state of cluster is updated:
State shown by the display unit state comprehensive for the state of n cluster, it can be according to the cluster being formed Priority and judge, the state of such as some or certain several clusters is the fragmentation status of highest priority, then the display of its composition The comprehensive state of unit is fragmentation status;Can certainly be judged or others side according to the tufted state of institute's proportion of composing Formula is judged.The comprehensive state of this display unit by the Determines of the cluster being formed according to it, so according to the state of cluster more New degree can be updated to the state of display unit;And display unit is also by the cluster being formed according to it after scaling State carries out the judgement of comprehensive state, and it is updated.When the quantity of the cluster that each display unit is formed is 1, then The state of each cluster can be shown.
Step S130, the described disk analysis of displaying and disposal data.
After the disk analysis of receiving step S120 output and disposal data, disk can be updated according to clustersState Details:
The present invention passes through the establishment of disk task, calls corresponding application programming interfaces to carry out disk analysis and arrangement, and And the disk analysis of application programming interfaces upload and disposal data include the state of cluster, so as to the disk details figure shown The comprehensive state of each display unit being made up of n cluster when zooming in and out, can be checked.
Further, with reference to Fig. 3, above-mentioned steps S120 include:
Step S121, the described disk task of reception, and it is managed;
Step S122, according to the disk task being received, calls application interface carries out corresponding disk analysis and whole Reason;
Step S123, allocating cache interface, carry out disk analysis and arrangement and produce to receive described application programming interfaces Data, and output after being processed to.
After the task that receiving step S110 creates, then this task is added to task management list, so that according to user's need Ask and task resource realizes the management of multiple disk tasks, for example, distribute or destroy a disk task.According to disk task Management, configuration disk or the analysis method of catalogue and method for sorting, and it is packaged, calls application interface is carried out Corresponding disk analysis and arrangement.And shown according to the UI displaying in process and the UI outside process and configure corresponding caching and connect Mouthful, to receive disk analysis and the disposal data of application programming interfaces upload.In step S123, the disk of application programming interfaces divides Analysis and the reception of disposal data and be output as concurrent working.Because the data that application programming interfaces upload includes the state of cluster, After therefore receiving the data of this application programming interfaces upload, it is uploaded to displaying interface after in time it being processed, to enter Row is shown, thus accelerating the processing speed of disk analysis and arrangement.
Further, with reference to Fig. 4, above-mentioned steps S130 include:
Step S131, the described disk analysis of monitoring and disposal data, and it is entered row cache according to corresponding type;
The monitoring type of this disk analysis and disposal data may include the prison carrying out disk analysis and disposal data of the overall situation Survey, the monitoring to disk analysis and the progress of arrangement, to disk analysis and arrange procedural information(Cluster state change)Be monitored, Disk analysis data is monitored, disk disposal data is monitored etc..During monitoring, when the disk of output divides Exist in analysis and disposal data change tufted state when, then update the tufted state of respective display unit, and stored.
The stored disk analysis of step S132, acquisition and disposal data, are processed accordingly to it, and are shown process Data afterwards.
The disk analysis being monitored and storing according to different monitoring types and disposal data, are processed accordingly, and It is shown.
With reference to Fig. 5, an embodiment of inventive disk collating unit is proposed.This disk collating unit 100 includes:
Subscriber interface module 10, for the control instruction at receive user end, and according to described control instruction, creates corresponding Disk task;It is additionally operable to show disk analysis and disposal data;
Configuration Manager 11, for the disk task of receive user interface module 10, calls application interface 200 is entered Row corresponding disk analysis and arrangement, and disk analysis and disposal data are uploaded to subscriber interface module 10 are shown;Its Middle disk analysis and disposal data include the state of cluster.
Above-mentioned control instruction can include the debris analysis instruction of disk, defragmentation instruction, for example, start, suspend, stop Only etc..Then subscriber interface module 10, according to this control instruction, creates corresponding disk task, and sends it to configuration management Module 11.Configuration Manager 11, then according to this disk task, calls corresponding application programming interfaces to carry out disk analysis and whole Reason, and this disk analysis and disposal data are uploaded to subscriber interface module 10.This disk analysis and disposal data include each The state of cluster, such as occupancy, fragment, compressed file etc..This disk analysis and disposal data are uploaded by Configuration Manager 11 again To subscriber interface module 10, subscriber interface module 10 is then processed according to the data of this upload, to be made a reservation for according to user side Display form it is shown.For example, Configuration Manager 11 uploads according to application programming interfaces 200 ClustersState, finds its corresponding display unit, and the state of cluster in this display unit is updated.In addition, user Interface module 10 also will update disk details according to clustersState.
The present invention is by the setting of subscriber interface module 10 and Configuration Manager 11 so that Configuration Manager 11 calls Corresponding application programming interfaces 200 carry out disk analysis and arrangement, and the disk analysis that upload of application programming interfaces 200 and whole Reason data includes the state of cluster, thus when the disk details figure that subscriber interface module 10 is shown zooms in and out, can check by n The comprehensive state of each display unit of individual cluster composition.
Further, with reference to Fig. 6, Configuration Manager 11 includes the data receipt unit 111 of concurrent working and data is sent out Send unit 112, this data receipt unit 111 is used for receiving disk analysis and the disposal data of application programming interfaces 200, and to it After being processed, sent to described subscriber interface module 10 by data transmission unit 112.
Specifically, the disk between above-mentioned application programming interfaces 200, Configuration Manager 11 and subscriber interface module 10 divides The data flow of analysis and disposal data is unidirectional, and that is, disk analysis and disposal data are uploaded to and join by application programming interfaces 200 Put management module 11, this data is uploaded to subscriber interface module 10 by Configuration Manager 11 again.In Configuration Manager 11, To realize receiving the disk analysis that upload of application programming interfaces 200 and disposal data, and be uploaded to user after being processed Interface module 10.Now, data receipt unit 111(ThreadReceiveDatum)Data transmitting element 112 (ThreadProcDatum)It is considered as the producers and consumers of data:
ThreadReceiveDatum:According to the intermodular data transfer mode of agreement, take out number from data buffer zone According to, the accessible data mode of conversion cost module, creation data;
ThreadProcDatum:Take out data processing one by one from the data that ThreadReceiveDatum produces, consumption Data.
Because data receipt unit 111 and the data transmission unit 112 of concurrent working is so that disk analysis and disposal data After application programming interfaces 200 receive, can be processed and be transferred to subscriber interface module 10 in time and be shown, be accelerated The processing speed of disk analysis and arrangement.
Further, with reference to Fig. 7, above-mentioned disk collating unit 100 also includes message module 13, for for user interface mould Communication between block 10 and Configuration Manager 11 provides message mechanism.
Specifically, above-mentioned message mechanism may include thread inter-sync, asynchronous message;Cross-thread asynchronous message;Different between process Step message.After subscriber interface module 10 receives the control instruction of user side, control message will be sent to Configuration Manager 11, After Configuration Manager 11 is processed accordingly to this control message again, produce corresponding control message again, send to application Routine interface 200, to control application programming interfaces 200 to carry out disk analysis and arrangement.The concrete structure of this message module 13 can With reference to shown in Fig. 8.Wherein, MsgObject is a basic message object, subscriber interface module 10 and Configuration Manager 11 Object when needing to carry out data communication, then to derive from from MsgObject to obtain message communication function.MsgCenter then bears The management of duty message object id and message dispatch etc..In addition, needing first Attach when MsgCenter uses to subscriber interface module 10 or Configuration Manager 11 main thread in, adapter message loop.
With reference to Fig. 9, the step that MsgCenter carries out message loop may include:
Step S201, MsgCenter receives message;
Step S202, judge that whether message sent by the outer object of process, be to proceed to step S203;Otherwise proceed to step S205;
Step S203, judge whether be MsgCenter need information to be processed, be to proceed to step S204;Otherwise proceed to Step S205;
Step S204, MsgCenter processes message, and proceeds to step S201;
Step S205, MsgCenter distributes message, and proceeds to step S201.
Further, with reference to Figure 10, above-mentioned configuration management mould 11 includes:
Role management unit 113, for the disk task of receive user interface module 10, and is managed to it;
Interface interchange unit 114, for the disk task being received according to role management unit 113, calls application program Interface carries out corresponding disk analysis and arrangement;
Cached configuration unit 115, for allocating cache interface, receive application programming interfaces carry out disk analysis and arrangement and The data producing.
Specifically, role management unit 113 may include disk and arranges role management unit (DiskDefragMng), configuration Center cell (ConfigCenter) and configuration item unit (configItem).Wherein, DiskDefragMng is used for according to user Demand assignment, one disk task of destruction, realize the management of multiple disk tasks.This disk task can carry out handss by user Dynamic triggering is it is also possible to automatically be triggered by the plan target of user setup.When disk task is the plan by user setup Task and when automatically triggering, the management of this disk task is then relied on the configuration management of ConfigCenter, ConfigCenter It is mainly used in arranging central logic realization, manage all setting options.This setting option refers to the option of user side configuration, it may include fixed When arrange time interval, arrange adopt other options such as fast finishing or complete method for sorting.ConfigItem is then used for joining Put the interface of setting option, and the configuration of this setting option interface relies on the management of ConfigCenter.
Interface interchange unit 114 arranges the disk task that managed of role management unit according to disk, configuration disk or The analysis method of catalogue and method for sorting, and it is packaged, call corresponding application programming interfaces 200 to carry out disk analysis And arrange.Cached configuration unit 115 may include interface unit (BufferInstance), interface dispensing unit (IBufferMng), interface configuration creating unit (IBufferMngFactory).Wherein, IBufferMngFactory is used for According to the configuration of subscriber interface module 10, create corresponding interface and configure object.IBufferMng relies on The establishment of IBufferMngFactory, the interface realizing disk analysis and disposal data are uploaded is defined, configures.It can Carry out different implementations to show according to the UI displaying in process and the UI outside process.BufferInstance relies on IBufferMng and the interface that defines, for providing the buffer service of disk analysis and disposal data for application programming interfaces 200. When UI displaying in process refers to comprise application programming interfaces in the current process of application layer, it can directly invoke therein Application programming interfaces be analyzed and arrange, and by analysis and the information such as disposal data, fragment file be shown;Outside process UI show when referring to that the current process of application layer does not comprise application programming interfaces, it needs to call the application program of other processes Interface carries out disk analysis and arrangement, then reinform carry out the application programming interfaces of disk analysis and arrangement by disk analysis and The information such as disposal data, fragment file are uploaded to shared drive between process, last current process shared drive between this process again The middle acquisition information such as disk analysis and disposal data, fragment file, and it is shown.
Further, with reference to Figure 11, above-mentioned subscriber interface module 10 includes:
Task creation unit 101, for the control instruction at receive user end, and according to described control instruction, creates corresponding Disk task, and set up the communication between subscriber interface module 10 and Configuration Manager 11;
Data monitoring module 102, for monitoring the data that described Configuration Manager 11 uploads, and by it according to corresponding Type enters row cache;When the tufted state that there is change in the data that Configuration Manager 11 uploads, then update respective display unit Tufted state;
Data display module 103, for obtaining the data that data monitoring module 102 is stored, after being processed accordingly Data after displaying process;
Cache interface configuration module 104, for controlling Configuration Manager 11 to carry out the configuration of cache interface.
Specifically, task creation unit 101 may include disk task creation unit(DiskTask)And communication set up unit (TaskMngInstance).Wherein, DiskTask is used for, according to the control instruction of user side, creating disk task, and by number Bind with data display module 103 according to monitoring modular 102.TaskMngInstance is used for setting up subscriber interface module 10 and joining Put the communication of management module 11, to realize disk analysis and arrangement function.For example, the control message of subscriber interface module 10 is passed The disk being handed to Configuration Manager 11 arranges role management unit (DiskDefragMng), obtains Configuration Manager 11 The data of caching in interface unit (BufferInstance).
Data monitoring module 102 may include disk analysis and disposal data monitoring means(IBufferDateObserver). This disk disposal data monitoring means include ProgerssObserver, DiskDetailObserver, Tetra- kinds of data observers of AnalyzeResultObserver, FragmentResultObserver.TaskMngInstance root The data type uploading according to Configuration Manager 11, is used corresponding data observer to enter as IBufferDateObserver Row data receiver.Wherein, IBufferDateObserver is used for the monitoring carrying out disk analysis and disposal data of the overall situation, its Inside can generate data processing threads, remove data, analytical data, and be stored in inside.ProgerssObserver uses It is monitored in the progress to disk analysis and arrangement;DiskDetailObserver is used for disk analysis and arranges process letter Breath(Cluster state change)It is monitored;AnalyzeResultObserver is used for disk analysis result data is monitored; FragmentResultObserver is used for disk disposal data is monitored.
Data display module 103 may include disk and arranges windows units(DiskDefragWnd), disk show U/I interface (IDiskDefragUI), this disk show U/I interface may include ProgressUI, DiskDetailMapUI, Tetra- kinds of AnalyzeResultUI, FragmentResultUI.DiskDefragWnd is used for uploading magnetic in data monitoring module 102 When disk analysis and disposal data, according to the data uploading data in data monitoring module 102 for receiving Configuration Manager 11 Observer's type, calls corresponding disk to show that U/I interface carries out data processing, and processing data is shown.Wherein ProgressUI is corresponding with ProgerssObserver, the magnetic monitored ProgerssObserver when data monitoring module 102 When disk analysis and disposal data are uploaded to data display module 103, this IDiskDefragWnd then calls accordingly ProgressUI carries out data processing, and the data of process is shown.DiskDetailMapUI with DiskDetailObserver corresponds to, disk analysis DiskDetailObserver monitored when data monitoring module 102 and When disposal data is uploaded to data display module 103, this IDiskDefragWnd then calls corresponding DiskDetailMapUI to enter Row data processing, and the data of process is shown.AnalyzeResultUI is corresponding with AnalyzeResultObserver, The disk analysis monitored AnalyzeResultObserver when data monitoring module 102 and disposal data are uploaded to data exhibition When showing module 103, this IDiskDefragWnd then calls corresponding AnalyzeResultUI to carry out data processing, and will process Data be shown.FragmentResultUI is corresponding with FragmentResultObserver, in data monitoring mould When disk analysis that FragmentResultObserver is monitored by block 102 and disposal data are uploaded to data display module, should IDiskDefragWnd then calls corresponding FragmentResultUI to carry out data processing, and the data of process is opened up Show.
Cache interface configuration module 104 may include caching and creates total unit(BufferMngFactory)And caching creates son Unit(MemBufferMng、FileMappingBufferMng).Wherein, BufferMngFactory depends on task creation list The communication of unit 101 sets up unit (TaskMngInstance), for controlling Configuration Manager 11 DiskDefragManager enters the definition of line interface.The UI that MemBufferMng is used in process shows demand. The UI that FileMappingBufferMng is used for outside process shows demand.
Refer again to Figure 12 it is proposed that inventive disk clearing system one embodiment.This disk clearing system may include application Layer 300 and application programming interfaces 200.Wherein, this application layer 300 includes above-mentioned disk collating unit 100, this disk collating unit 100 concrete structure can refer to noted earlier, and here just repeats no more.Application programming interfaces 200 call for application layer 300, enter Row disk analysis and arrangement.It can be independent dynamic link library or static link library, is available for other application objects Call.In conjunction with reference to Figure 13, this application programming interfaces 200 may include:
Task creation module 21, for the configuration information according to application layer 300, creates corresponding disk task;
Task control module 22, for the control message according to application layer 300, the work of control task;
Data cache module 23, for the configuration according to application layer, disk analysis and disposal data is cached to corresponding Buffer unit.
Specifically, task creation module 21 receives the configuration information of application layer 300, carries out the wound of corresponding disk task Build, and the task of this establishment is managed.The control message that task control module 22 then can issue according to application layer 300, Disk task is controlled to be started, stopped or suspended.Data cache module 23 is then provided by application layer 300, i.e. application layer 300 During calls application interface 200, task configuration information and cached configuration information are encapsulated in the lump, is issued to application programming interfaces 200.When application layer 300 and application programming interfaces 200 belong to communication in process, then adopt the cached configuration of shared drive, when should Belong to Inter-Process Communication with layer 300 and application programming interfaces 200, then using the cached configuration of name fileMapping.Then apply Routine interface 200 is according to this cached configuration information, you can cache disk analysis and disposal data to corresponding unit.
It is understood that by the content of task creation module 21 in the application programming interfaces 200 of modification Figure 13, and do Suitable encapsulation, you can used in realization others disk Consolidation Project, fundamental functional modules substitute this application programming interfaces 200.
The present invention passes through the setting of application layer 300 and application programming interfaces 200 so that application layer 300 calls corresponding answering Carry out disk analysis and arrangement with routine interface 200, and the disk analysis of application programming interfaces 200 upload and disposal data bag Include the state of cluster, thus when the disk details figure that application layer 300 is shown zooms in and out, can check by n cluster form every The comprehensive state of individual display unit.
The foregoing is only the preferred embodiments of the present invention, not thereby limit its scope of the claims, every utilization present invention Equivalent structure or equivalent flow conversion that description and accompanying drawing content are made, are directly or indirectly used in other related technology necks Domain, is included within the scope of the present invention.

Claims (6)

1. a kind of disk method for sorting is it is characterised in that comprise the following steps:
Step S110, the control instruction at receive user end, and according to described control instruction, create corresponding disk task;
Step S120, according to described disk task, calls application interface carries out corresponding disk analysis and arrangement, and exports Disk analysis and disposal data;Wherein disk analysis and disposal data include the state of each cluster, to support disk details figure Scaling;
Step S130, the described disk analysis of displaying and disposal data;
Described step S130 includes:
Step S131, the described disk analysis of monitoring and disposal data, and it is entered row cache according to corresponding type;
Step S132, obtain stored disk analysis and disposal data, it is processed accordingly, and after showing process Data;
The reception of the disk analysis of described application programming interfaces and disposal data be output as parallel processing.
2. disk method for sorting according to claim 1 is it is characterised in that described step S120 includes:
Step S121, the described disk task of reception, and it is managed;
Step S122, the management according to disk task, calls application interface carries out corresponding disk analysis and arrangement;
Step S123, allocating cache interface, to receive the number that described application programming interfaces carry out disk analysis and arrangement and produce According to.
3. a kind of disk collating unit is it is characterised in that include:
Subscriber interface module, for the control instruction at receive user end, and according to described control instruction, creates corresponding disk and appoints Business;It is additionally operable to show disk analysis and disposal data;
Configuration Manager, for the disk task of receive user interface module, calls application interface carries out corresponding magnetic Disk analysis and arranging, and disk analysis and disposal data are uploaded to subscriber interface module are shown;Wherein disk analysis and Disposal data includes the state of each cluster, to support the scaling of disk details figure;
Described Configuration Manager includes data receipt unit and the data transmission unit of concurrent working, and this data receipt unit is used In receiving the disk analysis of application programming interfaces and disposal data, and after it is processed, by data transmission unit send to Described subscriber interface module;
Described subscriber interface module includes:
Task creation unit, for the control instruction at receive user end, and according to described control instruction, creates corresponding disk and appoints Business, and set up the communication between subscriber interface module and Configuration Manager;
Data monitoring module, for monitoring the data that described Configuration Manager uploads, and it is carried out according to corresponding type Caching;
Data display module, for obtaining the data that data monitoring module is stored, is processed accordingly to it, and is shown place Data after reason.
4. disk collating unit according to claim 3 is it is characterised in that also include message module, for for user circle Communication between face mould block and Configuration Manager provides message mechanism.
5. the disk collating unit according to any one of claim 3-4 is it is characterised in that described Configuration Manager bag Include:
Role management unit, for the disk task of receive user interface module, and is managed to it;
Interface interchange unit, for the disk task being received according to role management unit, calls application interface carries out phase The disk analysis answered and arrangement;
Cached configuration unit, for allocating cache interface, with receive described application programming interfaces carry out disk analysis and arrangement and The data producing.
6. a kind of disk clearing system is it is characterised in that include:Application layer and application programming interfaces, wherein:Described application layer bag Include the disk collating unit as described in any one of claim 3-5, this disk collating unit is used for creating disk task, and calls Described application programming interfaces carry out corresponding disk analysis and arrangement, and disk analysis that described application programming interfaces are uploaded and Disposal data is shown;Described application programming interfaces, for calling according to described disk collating unit, carry out corresponding magnetic Disk finishing analysis, and disk analysis and disposal data are uploaded to disk collating unit;Wherein, disk analysis and disposal data bag Include the state of cluster.
CN201210420920.XA 2012-10-29 2012-10-29 Disk method for sorting, apparatus and system Active CN103793210B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210420920.XA CN103793210B (en) 2012-10-29 2012-10-29 Disk method for sorting, apparatus and system
PCT/CN2013/085749 WO2014067411A1 (en) 2012-10-29 2013-10-23 Method, apparatus and system for performing disk defragmentation

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210420920.XA CN103793210B (en) 2012-10-29 2012-10-29 Disk method for sorting, apparatus and system

Publications (2)

Publication Number Publication Date
CN103793210A CN103793210A (en) 2014-05-14
CN103793210B true CN103793210B (en) 2017-03-08

Family

ID=50626468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210420920.XA Active CN103793210B (en) 2012-10-29 2012-10-29 Disk method for sorting, apparatus and system

Country Status (2)

Country Link
CN (1) CN103793210B (en)
WO (1) WO2014067411A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105589812B (en) * 2015-12-16 2018-10-30 成都华为技术有限公司 Disk fragments method for sorting, device and host
CN114327296A (en) * 2021-12-31 2022-04-12 珠海豹好玩科技有限公司 Intelligent disk fragment analysis method and device and electronic equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576890A (en) * 2008-05-08 2009-11-11 深圳市朗科科技股份有限公司 Novel method and system for sorting fragment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090035938A (en) * 2007-10-08 2009-04-13 삼성전자주식회사 Apparatus and method for disk defragment in hybrid hard disk

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101576890A (en) * 2008-05-08 2009-11-11 深圳市朗科科技股份有限公司 Novel method and system for sorting fragment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
磁盘碎片整理高手Vopt 99;郭伟华;《电脑校园》;20010430(第4期);全文 *

Also Published As

Publication number Publication date
WO2014067411A1 (en) 2014-05-08
CN103793210A (en) 2014-05-14

Similar Documents

Publication Publication Date Title
CN115633050B (en) Mirror image management method, device and storage medium
CN103064742B (en) A kind of automatic deployment system and method for hadoop cluster
CN106850589B (en) Method for managing and controlling operation of cloud computing terminal and cloud server
CN101645022B (en) Work scheduling management system and method for a plurality of colonies
CN108989194A (en) Distributed ipsec gateway
CN102882900B (en) Large-scale server cluster application section arranging method and large-scale server cluster
CN102567072A (en) Resource allocation method, resource allocation device and resource allocation system
CN103297395A (en) Achievement method, system and device of internet business
CN102347986B (en) Multi-transaction synchronized cooperation management method, system and device thereof
CN109656691A (en) Processing method, device and the electronic equipment of computing resource
CN111274033B (en) Resource deployment method, device, server and storage medium
CN107968810A (en) A kind of resource regulating method of server cluster, device and system
CN110875833A (en) Cluster hybrid cloud, job processing method and device and electronic equipment
CN112463535A (en) Multi-cluster exception handling method and device
CN102298491B (en) Embedded graphical interface system and image generation method thereof
US11416294B1 (en) Task processing for management of data center resources
CN111796769B (en) Capacity expansion method and device for cloud platform log storage system
CN111796770B (en) Log routing load balancing realization method and device
CN108052385A (en) A kind of Container Management method, system, equipment and computer storage media
CN110740047B (en) Network slice management arrangement system
CN107967175A (en) A kind of resource scheduling system and method based on multiple-objection optimization
CN103793210B (en) Disk method for sorting, apparatus and system
CN108234242A (en) A kind of method for testing pressure and device based on stream
CN108282526A (en) Server dynamic allocation method and system between double clusters
CN113326025A (en) Single cluster remote continuous release method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant