CN1070008C - Method for dynamically managing common sources of network - Google Patents

Method for dynamically managing common sources of network Download PDF

Info

Publication number
CN1070008C
CN1070008C CN98108999A CN98108999A CN1070008C CN 1070008 C CN1070008 C CN 1070008C CN 98108999 A CN98108999 A CN 98108999A CN 98108999 A CN98108999 A CN 98108999A CN 1070008 C CN1070008 C CN 1070008C
Authority
CN
China
Prior art keywords
network
file
dynamic
client
application
Prior art date
Application number
CN98108999A
Other languages
Chinese (zh)
Other versions
CN1202061A (en
Inventor
林光信
宋建福
戴行壮
郭宝华
Original Assignee
英业达股份有限公司
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 英业达股份有限公司 filed Critical 英业达股份有限公司
Priority to CN98108999A priority Critical patent/CN1070008C/en
Publication of CN1202061A publication Critical patent/CN1202061A/en
Application granted granted Critical
Publication of CN1070008C publication Critical patent/CN1070008C/en

Links

Abstract

一种网络共享资源动态管理方法,使客户端(Client)的网络应用程序在网络上共享资源时,可对其上用以存储该共享资源的存储空间进行动态管理,当该存储空间用尽时,若客户端(Client)仍欲由网络上继续下装文件,该方法将检测该存储空间内所有文件,删除其中最近最少使用的文件,以释放出存储空间,供最新下装的文件使用,故客户端(Client)将可藉其有限的存储空间尽可能地享用网络上的无限资源。 A network management method for sharing resources dynamically, so that the client (Client) web application shared resource on the network, can be stored in its storage space for the dynamic management of shared resources, when the run out of storage If the client (client) still want to continue downloading files from the network, the method will detect all the files in the storage space, delete files in which the least recently used to release storage space for files downloaded using the latest, therefore, the client (client) will be limited by their access to unlimited storage resources on the network as much as possible.

Description

网络共享资源动态管理方法 Dynamic management network to share resources

本发明涉及一种可在网络环境中实现共享网络资源功能的动态管理方法,特别涉及一种在网络作业环境下,客户端(Client)的计算机(以下简称客户端)针对网络上所提供的共享文件或数据进行调用,并予以存储时,可自动对客户端(Client)用以存储该共享资源的存储空间进行动态管理,以弥补网络上各客户端中存储空间不足的缺憾,令客户端(Client)可藉由其有限的存储空间尽可能地享用网络上的无限资源。 Dynamic management method of the present invention relates to a shared network resource function can be implemented in a network environment, particularly to share a network in the operating environment, the client (Client) to a computer (hereinafter referred to as clients) on the network provided for file or data call, and when to be stored automatically on the client (client) to store the shared storage resources dynamically manage to make up for each client on the network runs out of memory defects, so that the client ( Client) can enjoy unlimited resources on the network by its limited storage space as possible.

在一般惯用的网络作业环境上,以往实现网络资源共享的方法有下列二种:1. In the general conventional method of operating a network environment, the conventional sharing network resources have the following two kinds: 1. 客户端(Client)通过每次上网使用网络资源时,均可实行实时(realtime)联结及存取;2. Client (Client) through the Internet each time you use the network resources can be implemented in real time (realtime) links and access; 2. 客户端(Client)在网络上发现所欲取得的信息时,均可直接将该网络信息下装(download)到其计算机中;其中第一种方法在应用时,由于需对频繁使用的文件经常性地进行读取动作,故将大幅度降低程序运行的速度;第二种方法虽不致降低程序运行的速度,但客户端(Client)却无法对所下装(download)的文件或数据进行相应的动态管理,即不能对其用以存储网络上共享资源的存储空间自动进行动态调整,释放其存储空间,令客户端(Client)得以充分利用,以在网络上获取更多的共享资源。 When desired information acquisition client (Client) found on the network, the network information can be downloaded (downloads) it directly to the computer; wherein the application of the first method, due to the need to frequently used files often of the reading operation, it will greatly reduce the speed of running; second method although not caused slow running, but the client (client) but not corresponding to the download (downloads) data file, or automatic dynamic storage space management, that it can not be used to store shared resources on the network to dynamically adjust the release of its storage space, so that the client (client) can be fully utilized in order to get more shared resources on the network.

鉴于前述传统网络作业环境,在实现网络资源共享时,针对其功能不显著的问题,发明人提出一种网络共享资源动态管理方法,该方法可使客户端(Client)的网络应用程序在网络上共享资源时,可对其上用以存储该共享资源的存储空间进行动态管理,当客户端(Client)的存储空间已用尽,若仍欲由网络上继续下装文件时,本发明将检测客户端的存储空间内的所有文件,并删除其中最近最少使用的文件,以释放出存储空间,供最新下装的文件使用,如此,客户端(Client)频繁使用的文件将继续保留在其存储空间内,而不常使用的文件则自动被淘汰,由此客户端(Client)可藉由其有限的存储空间,尽可能地享用网络上的无限资源。 In view of the aforementioned conventional network operating environment, while to share network resources, for which the function is not a significant problem, the inventors proposed a method for dynamic management of network resource sharing, the method enables the network client (Client) network applications when a shared resource, its storage space available for storing the dynamic management of shared resources, when the client (client) has run out of storage space, if still want to continue the download by the network when the file of the present invention to detect All files in the storage space of the client, and delete the file in which the least recently used to release storage space, files for the latest download to use, so the file the client (client) frequently used will remain in its storage space inside, instead of frequently used files will automatically be eliminated, thus the client (client) can by its limited storage space, unlimited access to resources on the network as much as possible.

本发明的目的,是提供一种网络共享资源动态管理方法,通过该方法可使客户端(Client)在共享网络服务器(server)上提供文件和数据时,可自动对其上用以存储等信息的存储空间进行动态管理,以有效提高客户端(Client)上有限的硬件环境的利用率。 Object of the present invention is to provide a method for dynamic management of network resource sharing enables a client (Client) by this method provides file sharing and data on a network server (server), the automatic thereon for storing information dynamic management of storage space in order to effectively improve the utilization of limited hardware environment on the client (client).

根据上述目的,本发明提供一种网络共享资源动态管理方法,其步骤包含:启动一网络应用程序S01,所述程序是指利用S-Driver进行远端资源访问的程序;当所述程序需要进行远端资源访问时,通过S-Driver提供的编程接口,向S-Driver程序发出服务请求,S-Driver程序即可处理所述请求S02;如果是发送数据的请求,则启动S-Driver程序的发送数据功能,将本地的数据发送至远端S03;如果是需要从远端读取数据文件,则依照文件名首先到LR表中进行查询,看所述文件是否在此之前已被下装到本地S04;如果尚未下装至本地,则准备下装工作,首先,检查S-Driver工作区的自由空间是否能够容纳将要下装的文件S05;如果空间不够,则找出LR表中记载的最近最少使用的文件,从S-Driver工作区中删除,直至S-Driver工作区中的自由空间够用S06;当自由空间够用时,启用S-Driver程序 According to the above-described object, the present invention provides a method for dynamic management of a shared network resource, comprising the steps: starting a network applications S01, the program refers to a procedure using S-Driver for remote access to resources; when the program needs to be when accessing remote resources, through the programming interface provided by the S-Driver, issues a service request to the S-Driver program, S-Driver S02 is a program to process the request; if requested to transmit data, the S-Driver program start data transmission function, the data sent to the remote local S03; if it is required to read data from a remote file, the file name in accordance with the first LR table query, before to see if the file has been downloaded to local S04; if you have not downloaded to the local, the download ready to work, first of all, check the free space S-Driver workspace is able to accommodate about to download a file S05; when it does not find LR table is described in a recent the least used files deleted from the S-Driver workspace until the S-Driver workspace enough free space S06; when the free space is enough to enable S-Driver program 的文件下装功能,从远端下装文件至S-Driver工作区S07;S-Driver每完成一个数据块的下装,均及时地将完成的进度情况记录到LR表中,其中一个文件是被分成多个数据块依次传输的S08;全部数据块是否都被传至本地,如果不是,则继续传下一个数据块S09;如果文件已存在于本地S-Driver工作区,则将该文件数据返回给应用程序S10。 File download function, a file downloaded from the distal end to the S-Driver workspace S07; S-Driver each completed downloading a data block are to be completed in time to record the progress LR table, where a file is S08 is divided into a plurality of data blocks transmitted sequentially; whether all blocks have been transmitted to the local data, if not, continues to transmit the next data block S09; if the file already exists in the local S-Driver workspace, then the data file returned to the application S10.

图1是本发明的动态管理工作区的功能模块示意图;图2是本发明的网络共享资源动态管理方法在一个以上客户端(Client)的网络应用程序的网络上进行文件及数据下装时的总体结构示意图;图3是本发明的网络共享资源动态管理方法的流程图。 FIG. 1 is a functional block dynamic management of workspace schematic of the present invention; FIG. 2 is a dynamic network management method according to the present invention is a shared resource files and data downloaded over the network more than one client (Client) web application when the overall structural diagram; FIG. 3 is a flowchart of a dynamic network management method of the present invention is a shared resource.

首先,本发明的动态管理方法是在网络作业环境上,针对客户端(Client)计算机的存储空间规划出一空间,藉该空间存放客户端自网络上下装的所有文件及数据,本发明中将该空间称之为“动态管理工作区”,参阅图1所示该工作区的功能模块示意图,该动态管理工作区主要是用以存储自网络上下装(download)的文件、背景下装(background download)的文件及数据,其存储空间的大小可随下装文件及数据的多寡,而动态地予以调整,当该下装文件逐渐增加至将整个自由空间占满时,若客户端仍欲自网络上下装文件,则可藉由删除该动态管理工作区中最近最少使用的下装文件,以释放该文件所占用的存储空间,供最新下装的文件使用。 First, the dynamic management method of the present invention is a network operating environment for the client (Client) computer storage space planning out a space, all files and data by the client from the network storage space vertically installed, in the present invention this space is called the "dynamic management area", refer to the functional block diagram shown a workspace, the dynamic management of the storage area is mainly used upside down from the network (downloads) the file download background (background downloads) and a data file, the size of which may vary with the amount of storage space and data downloading files, be adjusted dynamically, when the file downloading is gradually increased to fill the entire free space, if the client is still to be from network file upside down, you can delete by the dynamic management workspace file downloading least recently used to free up storage space occupied by the file, the file for downloading the latest use.

该动态管理工作区中包含一共用区,称之为“动态管理资源(Resourse)及只读存储器资源(ROM Resourse)共用区”,该共用区是用以存放一些被许多网络应用程序所共用的资源文件(Resourse),如:一些附属档名为BMP、ICON、WAV及Cursor等的文件,同样地,当该资源文件占满整个共用区的存储空间时,若客户端仍欲自网络上下装其它资源文件,亦可根据前述原则,将最近最少使用的资源文件予以删除,以释放该共用区中该文件所占用的存储空间,供最新下装的资源文件使用。 The dynamic management of workspace comprising a common zone, called "Dynamic Resource Management (Resourse) resources and a read only memory (ROM Resourse) common zone", which is used to store some common zone is shared by many network applications resource file (Resourse), such as: number of subsidiary file named BMP, ICON, WAV and other file Cursor, similarly, when the resource file store fill the entire space of the common time zone, if the client is still to be loaded from the network down other resource file, also according to the principle will be the least recently used resource files deleted to free up storage space occupied by the file in the common area, the resource file for downloading the latest use.

本发明的动态管理方法为达到共享网络资源的目的,可通过其应用程序界面(Application Program Interface,简称API),提供下列三项功能:(1)执行网络上文件的传输;(2)执行网络上数据块的传输;(3)执行共享资源运作和管理;其中第1、2项功能是针对网络应用程序而设计,通过该网络应用程序利用该界面(API)以完成该二功能。 Dynamic management method of the present invention to achieve the sharing of network resources, through its application program interface (Application Program Interface, referred to as the API), provides the following three functions: (1) perform transmission on network files; (2) to perform a network transmitting the data block; (3) perform the operation and management of shared resources; 1,2 where function is the application is designed for the network, using the interface (API) via the network application to complete the two functions. 客户端(Client)自网络上下装(download)的所有文件及数据,是存储在该动态管理工作区内,该文件中带有资源文件(Resourse)标志的,则被存放在该动态管理工作区中所规划的该共用区内,因此该共用区可方便且持续地自网络上下装(download)最新的资源文件,使该动态管理方法可通过该应用程序界面(API)对客户端自网络上下装的所有文件(包括资源文件)及数据进行运作与管理,完成前述第3项功能。 All Files Client (Client) and data from the network upside down (download) is the dynamic management workspace, the file with the resource file (Resourse) flag stores, were stored in the dynamic management area planned in the common area, it may conveniently be the common zone and continuously loaded down from the network (downloads) new resource file, so that the dynamic management method may be vertically from the network to the client through the application program interface (API) install all files (including resource files) and data operations and management, to accomplish the foregoing item 3 function.

本发明中该动态管理方法对于所接收的数据是采用非同步传输方式,即在传输任务完成时,开始向网络应用程序窗口发送相应的信息,且该动态管理方法还提供一用以标记已下装文件的函数,因此当该动态管理方法连接上一网络服务器(Server)时,该函数将送回一代表该网络服务器(Server)的识别标记,当该动态管理方法开启一网络应用程序时,该函数将送回一代表该网络应用程序的识别标记;如此,后续通过该网络服务器(Server)及网络应用程序进行传输的所有文件及数据块等,均可藉由辨识该识别标记,以判断其与该网络服务器(Server)及网络应用程序的关系。 The present invention is a method for dynamic management of the received data is the use of asynchronous transfer mode, i.e., when the transmission task is completed, a network sends a corresponding message to application window, the dynamic management and the further provides a method for the marker has been function installed file, so that when the dynamic management on a network server connection method (server), a representative of this function will return the network server (server) of the identification mark, when the dynamic management method in a network application open, this function will return an identification-mark the web application; thus, the subsequent data blocks for all documents and the like via the network transmission server (server) and network applications, by identifying the identification mark may be to determine its relationship with the network server (server), and network applications. 故,一利用本发明的动态管理方法下装过文件的网络应用程序,在其退出网络时,将询问客户端(Client)是否删除已下装的文件,从而根据该函数删除已下装的文件,释放出所占用的空间。 Therefore, a dynamic management method of the present invention is downloaded application files over the network, when it exits the network, will ask the client (Client) whether to delete downloaded files, thereby has a function to delete the downloaded files according to , releasing the space occupied.

本发明的动态管理方法在建立其内部的工作环境时,需先对该方法进行初始化作业;然后,再将该方法与一网络服务器(Server)相连接,若连接成功,则以一识别标记标示该网络服务器(Serer),该网络服务器(Server)的识别标记乃是该动态管理方法所自行定义的一类型函数,该函数主要是在确认该网络服务器(Server)是否可供连接后,所送回的一识别标记,以供后续作业使用;然后再针对一网络应用程序,设定该动态管理方法的内部工作环境,以初始化该应用程序,同时返回另一识别标记,供后续作业使用;最后,该动态管理方法在退出网络应用程序时,清理其内部为该网络应用程序所设定的工作环境,同时,切断与该网络服务器(Server)的连结关系,以释放所占用的线路,并向网络应用程序窗口发送相应的信息。 Dynamic management method of the present invention in establishing its internal environment, the method must first initialize operation; Then, the method is connected to a network server (Server), if the connection is successful, an identification mark marking places after the network server (Serer), the network server (server) identification mark but a function of the type of self-defined dynamic management method, which is mainly a function of confirming that the network server (server) whether the connection is available, the feed back an identification mark used for subsequent operations; then for a web application, setting the working environment inside the dynamic management method, in order to initialize the application, and returns another identification mark used for subsequent operations; final the dynamic network management method when you exit the application, to clean up its internal set of applications for the network environment, while cutting off the connection relationships with the network server (server) to release the seized line, and network application window corresponding information transmitted.

在以上整个过程中,该动态管理方法的应用程序界面(API)主要是对客户端的应用程序在网络上所传输的文件,进行下列步骤:(1)读取文件:将一文件之一数据块读取到该动态管理工作区中该应用程序所维护的一缓冲区内;(2)下装文件:完成下装文件时,将依据该客户端的任务请求,分配一任务标志作为该下装事件的标志序号,例如:当客户端要求下装一文件时,该界面即响应此一任务请求,并分配一任务标志01,此时,其它工作仍将继续进行,当该任务被完成时,该界面即通过发送一带有任务标志01的信息,通知该客户端该任务已被完成;(3)停止下装文件;(4)发送文件:对该客户端完成发送文件时,即将该任务标志作为发送事件的参数,提供给该客户端的应用程序于事件处理过程中使用;(5)停止发送文件;(6)背景下装(background download)文件:完成背景 In the process above, the method of dynamic management application program interface (API) is a main file on the client application on the network transmission, the following steps: (1) read the file: a file data block of the one read into a buffer zone in the dynamic management of the application is maintained; (2) downloading the file: file downloading is completed, the end of the task according to the customer request, assign a task as a sign of the download event Reference signs, for example: when a client asks downloading files, the interface that is a task in response to this request, and assign a task flag 01 at this time, other work will continue, when the task is completed, the that task interface information by sending a flag with 01 to notify the client that the task has been completed; (3) stop downloading a file; (4) to send the file: when the client sends the file completed, is about to mark the task as transmission event parameters is provided to the client application uses the event process; (5) stops sending the file; (6) Bottoms background (background download) file: complete bACKGROUND 装文件时,将该任务标志作为背景下装事件的参数,提供给该客户端的应用程序于事件处理过程中使用;(7)停止背景下装文件;(8)查文件是否在本地:将针对所下装的文件,查明是否可在本地使用; When loading a file, mark the task as an argument background downloading event, provided to the client application uses for event processing; (7) Stop background downloading files; if (8) check the file locally: for the the downloaded files can be used to find out whether locally;

(9)删除文件:删除网络应用程序已下装的文件。 (9) Delete File: delete the web application has been downloaded files.

在前述过程中,对于数据块的传送,该动态管理方法需进行下列步骤:(1)发送数据:在发送数据完成时,该动态管理方法需将任务标志作为发送事件的参数,提供给事件处理过程使用;(2)接收数据:在接收到数据时,该动态管理方法需将任务标志及接收到的数据长度作为接收事件的参数,提供给事件处理过程使用。 In the foregoing process, for the transmission data block, the dynamic management method requires the following steps: (1) the transmission data: when transmitting data is completed, the dynamic management method requires task flag as an argument an event, there is provided to the event handler process use; (2) receives the data: the data is received, the method requires dynamic management task flag and the received data length as a parameter receiving the event, the event is supplied to the process used.

另外,在本发明中,该动态管理方法对于该共用区中各应用程序所共用的资源文件,则进行下列动作:(1)自该共用区中读取二进制数据文件;(2)自该共用区中读取字符串数据;(3)自该共用区中读取图形数据;(4)下装资源文件;(5)读取资源文件。 Further, in the present invention, the method for dynamic management of each application resource file common to the common area, the following actions: (1) reading the binary data file from the shared area; (2) from the common string data read region; (3) to read the graphics data from the shared area; (4) the resource file downloading; (5) read the resource file.

此外,由于本发明的动态管理方法是可供一个以上的客户端(Client)的网络应用程序同时使用,参阅图2所示,该网络应用程序又可同时连接至一个以上的网络服务器(Server)及其网络应用程序,其中客户端(Client)的网络应用程序与网络服务器(Server)间主要是进行文件及数据块的传输。 Further, since the dynamic management method of the present invention is for one or more client (Client) network applications use, see figure, which in turn is connected to a network application over a network server (Server) 2 simultaneously and a network application, wherein the client (client) between network applications and the network server (server) mainly for file transfers and data blocks. 当客户端(client)的网络应用程序利用本发明的动态管理方法的应用程序界面(API)函数,连接到网络服务器(Server)或其网络应用程序时,会在该连接关系建立后,在该动态管理方法内部建立一结构数据,该结构数据依其性质可分为二,其一是指网络服务器(Server)的信息结构,另一指网络应用程序的信息结构,因此该动态管理方法得利用该结构数据送回一识别标记予该服务器(Server)或其网络应用程序,以备后续作业进行中,供该动态管理方法的应用程序界面(API)辩识使用。 When the client (client) network applications using the application interface of the dynamic management method of the present invention (API) functions, is connected to a network server (Server) or a network application, will be established after the connection relationship, the the method of establishing a dynamic internal management data structure, the data structure can be divided into two by its nature, one refers to the network server (server) information structure, the network configuration information refers to another application, thus obtained using the dynamic management method the identification mark configuration data back to a server (server) or a network application for subsequent operations carried out, the application interface for dynamic management method (API) using the identification.

再参照图2所示,本发明中,该网络应用程序的每一文件的传输任务,在该动态管理方法内部也有一个结构数据,即文件传输信息结构。 Referring again to FIG. 2, the present invention, each file transfer job of the network application, the internal management method also has a dynamic data structure, document structure information transfer. 当客户端(Client)的网络应用程序与每一网络服务器(Server)的网络应用程序连接时,可同时请求一个以上的文件传输任务,该动态管理方法是将所接受的所有文件的传输任务组织成一个队列,以一单独的编程依传输的优先顺序,轮流为队列中的各传输任务进行服务,当任务完成时,该编程需对一存储于客户端(Client)的一存储装置(如:硬盘…等)上的对照表进行维护,该对照表是用以记载网络服务器(Server)文件与客户端(Client)文件的对应关系,称本地/远端对照表(Local-Remote)。 When the client (Client) connected to the network each network application server (Server) of the network applications, more than one can simultaneously request file transfer task management is the dynamic transmission task organization of all documents will be accepted into a queue for a single program in priority order of transmission turns for the service for the transmission of tasks in the queue, when the task is completed, the program needs a memory means a memory of the client (client) (eg: ... hard disk, etc. on the table) is maintained, the table is (server) file corresponds to the relationship with the client (client) to a file server according to the network, called local / Remote table (local-Remote).

每个网络服务器(Server)均应提供该动态管理方法必需的一些信息,该信息是存放于该网络服务器(Server)的一预定位置的文件中,其内容包含用以记载网络服务器(Server)当前所有的网络应用程序名称、版本号及位置等信息。 Each network server (Server) should provide the information necessary for the dynamic management method, the file information is stored in a predetermined position of the network server (Server), the contents of which comprises a network server according to the current (Server) All web application name, version number, and location. 客户端(Client)根据该文件即可得知该网络应用程序在网络服务器(Server)的路径及其是否有升级版本…等信息。 Client (Client) According to the document can know whether the network application and its upgraded version in the path of the network server (Server) of ... and other information.

本发明的动态管理方法藉在客户端(Client)的一存储装置上开设一动态管理目录,令客户端(Client)的网络应用程序可依所连接的网络应用程序的名称,于其中建立一子目录,客户端(Client)自网络上下装的文件,即存放在该子目录中,该目录总共占用的存储空间不能超过一设定值,已占用的空间值是根据本地/远端对照表(Local-Remote)中各文件所占空间的总和来计算。 Dynamic defines a dynamic management directory management method of the present invention, by the client (Client) to a storage device, so that a client (Client) to follow the web application name of the network application is connected, in which the establishment of a child directory, the client (client) down loaded from a network file that is stored in the subdirectory, the directory is a total of storage space can not exceed a predetermined value, the value of occupied space is based on the local / distal table ( the sum of the Local-Remote) space occupied by each file is calculated. 当存储空间已满时,根据本地/远端对照表(Local-Remote)中所记录的信息,将其中最近最少使用的文件予以删除,并修改本地/远端对照表的内容。 When the memory is full, according to the information of the local / distal table (Local-Remote) are recorded, which will delete the least recently used documents, and local content / the distal end of the table.

另外,该动态管理方法在连接上网络服务器(Server)时,亦可藉读取网络服务器(Server)所提供的网络应用程序上其它用户(User)的地址,通过此一功能,使一客户端(Client)与其它用户(User)建立连线,进行发送数据、文件等工作。 Further, when the dynamic connection management on a network server (Server), can also be read by a network server (Server) of other users (the User) address on a web application provided by this function, so that a client (Client) to establish a connection with other users (the user), the transmission data, files and so on. 例如:某客户端(Client)进入一可相互对战的网络应用程序后,即可藉使用该函数建立起与其它用户(User)的连线,并与其进行对打。 For example: After a client (Client) to enter a play against each other network applications, by the use of this function to establish a connection with other users (the User) and sparring therewith.

参照图3,具体说明本发明的网络共享资源动态管理的方法,其步骤包含:启动一应用程序(S01),所述程序是指利用S-Driver进行远端资源访问的程序;当所述程序需要进行远端资源访问时,通过S-Driver提供的编程接口,向S-Driver程序发出服务请求,S-Driver程序即可处理所述请求S02;如果是发送数据的请求,则启动S-Driver程序的发送数据功能,将本地的数据发送至远端S03;如果是需要从远端读取数据文件,则依照文件名首先到LR表中进行查询,看所述文件是否在此之前已被下装到本地S04;如果尚未下装至本地,则准备下装工作,首先,检查S-Driver工作区的自由空间是否能够容纳将要下装的文件S05;如果空间不够,则找出LR表中记载的最近最少使用的文件,从S-Driver工作区中删除,直至S-Driver工作区中的自由空间够用S06;当自由空间够用时,启用S-Driver程序的文 When the program; start an application (S01), the program refers to a procedure using S-Driver for remote access to resources: Referring to FIG. 3, illustrate the processes of the present invention is a network shared resource dynamic management, comprising the steps when required to access the remote resource, via the programming interface provided by the S-Driver, issues a service request to the S-Driver program, S-Driver S02 is a program to process the request; if the request data is sent, start S-Driver data transmission functions of the program, the data is sent to the remote local S03; if it is required to read data from a remote file, the file name in accordance with the first LR table query to see if this file has been said before attached to the local S04; if you have not downloaded to the local, the download ready to work, first of all, check the free space S-Driver is able to accommodate workspace files to be downloaded in S05; when it does not find LR is described in the table the least recently used files, delete from the S-Driver workspace until the S-Driver workspace enough free space S06; when the free space is enough to enable text of S-Driver program 件下装功能,从远端下装文件至S-Driver工作区S07;S-Driver每完成一个数据块的下装,均及时地将完成的进度情况记录到LR表中,其中一个文件是被分成多个数据块依次传输的S08;全部数据块是否都被传至本地,如果不是,则继续传下一个数据块S09;如果文件已存在于本地S-Driver工作区,则将该文件数据返回给应用程序S10。 Bottoms member function, downloading a file from the distal end to the S-Driver workspace S07; S-Driver each completed downloading a data block are to be completed in time to record the progress LR table, where a file is to be divided into a plurality of data blocks transmitted sequentially S08; if all data blocks have been transmitted locally, if not, continues to transmit the next data block S09; if the file already exists in the local S-Driver workspace, then the document data is returned to the application S10. 其中所述LR表是一种记录远端资源在本地存储和被使用情况的数据表格。 LR wherein said table is a local storage and remote resource usage data is recorded in the table.

由前述可知,本发明的动态管理方法,不仅可使客户端通过网络应用程序对网络服务器上的数据进行运作,且其运作结果完全与客户端在区域网络上的运作一样快捷、安全、方便,而通过本发明对共享资源的动态管理,又可更有效地提高存储空间的利用率。 Seen from the foregoing, the dynamic management method of the present invention, not only can the operation of the client data on a network server via a network application, and its operation is fully the result of the client as a shortcut on the operating area of ​​the network, security, convenience, by the present invention, while the dynamic management of shared resources, but also effectively improve the utilization of storage space.

以上所述,仅是本发明的较佳实施例,本发明所主张的权利范围,并不局限于此,本领域所属的技术人员,依据本发明所揭露的技术内容,可轻易想到的等效变化,均应属不脱离本发明的保护范畴。 Above, only the equivalent preferred embodiments of the present claimed scope of the claimed invention is not limited thereto, those skilled in the art, based on technical contents disclosed in the present invention can be easily thought of the present invention. variations, without departing from the scope of protection shall belong to the present invention.

Claims (21)

1. 1. 一种网络共享资源动态管理方法,其步骤包含:启动一网络应用程序S01,所述程序是指利用S-Driver进行远端资源访问的程序;当所述程序需要进行远端资源访问时,通过S-Driver提供的编程接口,向S-Driver程序发出服务请求,S-Driver程序即可处理所述请求S02;如果是发送数据的请求,则启动S-Driver程序的发送数据功能,将本地的数据发送至远端S03;如果是需要从远端读取数据文件,则依照文件名首先到LR表中进行查询,看所述文件是否在此之前已被下装到本地S04;如果尚未下装至本地,则准备下装工作,首先,检查S-Driver工作区的自由空间是否能够容纳将要下装的文件S05;如果空间不够,则找出LR表中记载的最近最少使用的文件,从S-Driver工作区中删除,直至S-Driver工作区中的自由空间够用S06;当自由空间够用时,启用S-Driver程序的文件下装功能,从远端下 A network management method for sharing resources dynamically, comprising the steps: starting a network applications S01, the program refers to a procedure using S-Driver for remote access to resources; when the program needs to access a remote resource, via S-Driver provides a programming interface to the S-Driver program sent a service request, S-Driver S02 is a program to process the request; if requested to transmit data, the transmission data is started S-Driver function program, the local data sent to the remote S03; if it is required to read data from a remote file, the file name in accordance with the first LR table query, to see whether the file has been downloaded before the local S04; if the download has not been to local, ready to download the work, first of all, check the free space S-Driver workspace is able to accommodate about to download a file S05; if the space is not enough, then find the least recently used file LR described in the table, from S -Driver workspace removed until S-Driver workspace enough free space S06; when the free space is enough to enable S-Driver program file downloading function, from the distal end of the next 装文件至S-Driver工作区S07;S-Driver每完成一个数据块的下装,均及时地将完成的进度情况记录到LR表中,其中一个文件是被分成多个数据块依次传输的S08;全部数据块是否都被传至本地,如果不是,则继续传下一个数据块S09;如果文件已存在于本地S-Driver工作区,则将该文件数据返回给应用程序S10。 Attached to S-Driver document workspace S07; S-Driver each completed downloading a data block are to be completed in time to record the progress LR table, where a file is divided into a plurality of data blocks transmitted sequentially S08 ; all data block are transmitted locally, if not, continues to transmit the next data block S09; if the file already exists in the local S-Driver workspace, then the document data is returned to the application S10.
2. 2. 如权利要求1所述的网络共享资源动态管理方法,其中该动态管理工作区中包含一动态管理资源及只读存储器资源共用区,该共用区是用以存放一些被许多网络应用程序所共用的资源文件;所述LR表是一种记录远端资源在本地存储和被使用情况的数据表格。 Dynamic network management method according to a shared resources as claimed in claim, wherein the dynamic management working area contains a read-only memory and the dynamic management of resources shared resource area, the common area is used for storing a number of the network is shared by many applications resource file; LR said table is a local storage and remote resource usage data is recorded in the table.
3. 3. 如权利要求2所述的网络共享资源动态管理方法,其中该资源文件占满整个共用区的存储空间时,若客户端仍欲自网络上下装其它资源文件,该方法即将最近最少使用的资源文件予以删除,以释放该共用区中该文件所占用的存储空间,供最新下装的资源文件使用。 Dynamic network shared resource management method according to claim 2, wherein the resource file store fill the entire space of the common zone, if the client is still further to be down loaded from the network resource files, which is about the least recently used resource files be deleted to free up storage space occupied by the file in the common area, the resource file for downloading the latest use.
4. 4. 如权利要求2或3所述的网络共享资源动态管理方法,其中该资源文件包含一些附属档名为BMP、ICON及WAV等的文件。 Network 2 or as claimed in claim 3 Dynamic Management of the shared resource, wherein the resource file contains the file named subsidiary BMP, ICON and WAV and other file.
5. 5. 如权利要求1所述的网络共享资源动态管理方法,其中该方法对于所接收的数据是采用同步传输方式,即在传输任务完成时,开始向网络应用程序窗口发送相应的信息。 Dynamic shared network resource management method according to claim 1, wherein the method is for the received data using asynchronous transfer mode, i.e., when the transmission task is completed, a network sends a corresponding message to application window.
6. 6. 如权利要求1所述的网络共享资源动态管理方法,其中该方法的应用程序界面还提供一用以标记已下装文件的函数,因此当该动态管理方法连接上一网络服务器时,该函数将送回一代表该网络服务器的识别标记,如此,后续通过该网络服务器进行传输的所有文件及数据块等,均可藉由辨识该识别标记,以判断其与该网络服务器的关系。 Dynamic shared resources network management method according to claim 1, wherein the application interface also provides a method for downloading a file-tagging functions, and therefore the dynamic management method, when a connection on a network server, the function returned to a representative of the identification mark of the network server, and so, for all of the files and the subsequent data blocks transmitted through the network server or the like, can be by identifying the identification mark, to determine its relation to the network server.
7. 7. 如权利要求1所述的网络共享资源动态管理方法,其中该方法的应用程序界面还提供一用以标记已下装文件的函数,因此当该动态管理方法开启一网络应用程序时,该函数将送回一代表该网络应用程序的识别标记;如此,后续通过该网络应用程序进行传输的所有文件及数据块等,均可藉由辨识该识别标记,以判断其与该网络应用程序的关系。 Dynamic shared resources network management method according to claim 1, wherein the application interface also provides a method for downloading a file-tagging functions, and therefore the dynamic management method, when an open network applications, the function back to the identification mark representative of a web application; thus, all documents and for subsequent data blocks transmitted over the network application or the like, can be by identifying the identification mark, to determine its relation to the web application.
8. 8. 如权利要求6或7所述的网络共享资源动态管理方法,其中利用该方法下装过文件的网络应用程序,在其退出网络时,将询问客户端是否删除已下装的文件,从而根据该函数删除已下装的文件,释放出所占用的空间。 Dynamic management method of claim 6 or 7 as claimed in claim shared resource network, wherein the method using the downloaded application files over the network, when it exits the network, the client will be asked whether to delete downloaded files, so according to this function to delete the file has been downloaded, the release of the space occupied.
9. 9. 如权利要求1所述的网络共享资源动态管理方法,其中该方法在建立其内部的工作环境时,需先对该方法进行初始化作业;然后,再将该方法与一网络服务器相连接,若连接成功,则以一识别标记标示该网络服务器,然后,再针对一网络应用程序,设定该动态管理方法的内部工作环境,以初始化该应用程序,同时返回另一识别标记,供后续作业使用;最后,该动态管理方法还在退出网络应用程序时,清理其内部为该网络应用程序所设定的工作环境,同时,切断与该网络服务器的连结关系,以释放所占用的线路,并向该网络应用程序窗口发送相应的信息。 Dynamic network management method according to a shared resources as claimed in claim, wherein the method when establishing the internal working environment, need to be initialized to the method of operation; Then, the method is connected to a network server, if connection successful, an identification numerals places the network server, then again for a web application, setting the working environment inside the dynamic management method, in order to initialize the application, and returns another identification mark used for subsequent operations; Finally, when the dynamic method also exit the network management application, to clean up its internal set of applications for the network environment, while cutting off the link server relationship with the network to release the seized line, and the network application window corresponding information transmitted.
10. 10. 如权利要求9所述的网络共享资源动态管理方法,其中该识别标记是该动态管理方法所自行定义的一类型函数,该函数主要是在确认该网络服务器是否可供连结后,所送回的一识别标记,以供后续作业使用。 After dynamic network management method of claim 9 shared resources as claimed in claim, wherein the identification tag is a function of the type of self-defined dynamic management method, which is mainly a function of confirming whether or not the network server for the link, are returned an identification tag for subsequent job.
11. 11. 如权利要求1所述的网络共享资源动态管理方法,其中该方法可供一个以上的客户端的网络应用程序同时使用,该网络应用程序又可同时连接至一个以上的网络服务器及其网络应用程序,其中客户端的网络应用程序与网络服务器间主要是进行文件及数据块的传输。 Dynamic network management method according to a shared resources as claimed in claim wherein the one or more methods are available client applications use network, the network application at the same time turn connected to more than one network server and a network application, wherein the network between the client application and the network server is mainly for file transfers and data blocks.
12. 12. 如权利要求6所述的网络共享资源动态管理方法,其中当客户端的网络应用程序利用该应用程序界面函数,连接到网络服务器或其网络应用程序时,会在该连接关系建立后,在该动态管理方法内部建立一结构数据。 Dynamic network management method of claim 6 shared resources as claimed in claim, wherein when the client network applications using the application program interface function to connect to a network server or a network application, will after establishing the connection relationship, the dynamic management established within a data structure.
13. 13. 如权利要求12所述的网络共享资源动态管理方法,其中该结构数据依其性质包括一网络服务器的信息结构及一网络应用程序的信息结构,由此该方法能利用该结构数据送回一识别标记予该服务器或其网络应用程序,以备后续作业进行中,供该应用程序界面辨识使用。 Dynamic network management method according to claim shared resource, wherein the data structure comprises information structure by its nature a network server and a network application information structure, whereby the method can use the configuration data back to an identification the numerals I, or a network application server, for subsequent operations carried out, for identification using the application interface.
14. 14. 如权利要求12所述的网络共享资源动态管理方法,其中该方法内部还包括一文件传输信息结构,该信息结构是用以表示该网络应用程序的每一文件的传输任务。 Dynamic shared network resource management method according to claim 12, wherein the method further comprises an internal file transfer configuration information, the configuration information is used to represent each file transfer job of the network application.
15. 15. 如权利要求14所述的网络共享资源动态管理方法,其中当客户端的网络应用程序与每一网络服务器的网络应用程序连接时,可同时请求一个以上的文件传输任务,该方法是将所接受的所有文件的传输任务组织成一个队列,以一单独的编程依传输的优先顺序,轮流为队列中的各传输任务进行服务。 Dynamic network management method of claim 14 shared resources as claimed in claim, wherein when the client network applications connected to the network each network application server may simultaneously request more than one file transfer task, which is accepted All transfer job files organized into a queue according to a separate program priority transmission, each transmission in turn to be served in the task queue.
16. 16. 如权利要求15所述的网络共享资源动态管理方法,其中该客户端的一存储装置上设有一本地/远端对照表,该对照表是用以记载网络服务器文件与客户端文件的对应关系。 Dynamic resource management network sharing method according to claim 15, wherein is provided a local / distal table on a storage device of the client, the relationship table is used for correspondence with the file server according to the network client files.
17. 17. 如权利要求16所述的网络共享资源动态管理方法,其中当传输任务完成时,该编程需对存储于客户端的该存储装置上的本地/远端对照表进行维护。 Dynamic shared resources network management method according to claim 16, wherein when the transfer task is completed, the program needs the local / on the distal end of the table in the client storage means for storing for maintenance.
18. 18. 如权利要求1所述的网络共享资源动态管理方法,其中该方法藉在客户端的一存储装置上开设一动态管理目录,使客户端的网络应用程序可依所连接的网络应用程序的名称,于其中建立一子目录。 Network share dynamic management method according to claim 1, wherein the method by defines a dynamic management directory on a storage device of the client, so the client's network application program, follow the name of the network application is connected, in which the establishment of a subdirectory.
19. 19. 如权利要求16或17或18所述的网络共享资源动态管理方法,其中该存储装置可为一硬盘。 Dynamic shared resources network management method of claim 16 or 17 or as claimed in claim 18, wherein the memory device may be a hard disk drive.
20. 20. 如权利要求18所述的网络共享资源动态管理方法,其中客户端自网络上下装的文件,即存放在该子目录中,该目录总共占用的存储空间不能超过一设定值。 Dynamic shared resources network management method according to claim 18, wherein the down loaded from the network client file that is stored in the subdirectory, the directory is a total of storage space can not exceed a predetermined value.
21. twenty one. 如权利要求20所述的网络共享资源动态管理方法,其中该目录总共占用的存储空间是根据本地/远端对照表中各文件所占空间的总和来计算,当存储空间已满时,该方法即根据本地/远端对照表中所记录的信息,将其中最近最少使用的文件予以删除,并修改该本地/远端对照表的内容。 20, the dynamic network management method as claimed in claim shared resources, wherein the total storage space directory is calculated according to the sum of the local / distal end of each table space occupied by the file, when the memory is full, the method i.e. according to the local / distal end of the control information recorded in the table, which will delete the least recently used file, and modify the content of local / distal end of the table.
CN98108999A 1998-05-26 1998-05-26 Method for dynamically managing common sources of network CN1070008C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN98108999A CN1070008C (en) 1998-05-26 1998-05-26 Method for dynamically managing common sources of network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN98108999A CN1070008C (en) 1998-05-26 1998-05-26 Method for dynamically managing common sources of network

Publications (2)

Publication Number Publication Date
CN1202061A CN1202061A (en) 1998-12-16
CN1070008C true CN1070008C (en) 2001-08-22

Family

ID=5219818

Family Applications (1)

Application Number Title Priority Date Filing Date
CN98108999A CN1070008C (en) 1998-05-26 1998-05-26 Method for dynamically managing common sources of network

Country Status (1)

Country Link
CN (1) CN1070008C (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7529981B2 (en) * 2003-04-17 2009-05-05 International Business Machines Corporation System management infrastructure for corrective actions to servers with shared resources
CN101609446B (en) 2008-05-07 2011-04-13 北京理工大学 Method for storing and managing dynamic data
CN102789456B (en) * 2011-05-17 2015-04-08 宏碁股份有限公司 Method for cleaning redundancy files of disc

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1141770A (en) * 1995-08-01 1997-02-05 周明华 Face, skin-care health-care bath lotion
JPH1165858A (en) * 1997-08-26 1999-03-09 Nec Aerospace Syst Ltd Inter-process communication system using common memory

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1141770A (en) * 1995-08-01 1997-02-05 周明华 Face, skin-care health-care bath lotion
JPH1165858A (en) * 1997-08-26 1999-03-09 Nec Aerospace Syst Ltd Inter-process communication system using common memory

Also Published As

Publication number Publication date
CN1202061A (en) 1998-12-16

Similar Documents

Publication Publication Date Title
US8214444B2 (en) Email attachment management in a computer system
US7574488B2 (en) Method and apparatus for peer-to-peer file sharing
US7315924B2 (en) Logical view with granular access to exchange data managed by a modular data and storage management system
EP0343820B1 (en) Temporary state preservation for a distributed file service
US6938042B2 (en) Peer-to-peer file sharing
CN1150469C (en) Method and server for distributing E-mial accessory
US6219676B1 (en) Methodology for cache coherency of web server data
US6633898B1 (en) System, apparatus, method and computer program product for processing distributed service modules
JP4134357B2 (en) Distributed data management method
US7243136B2 (en) Approach for managing and providing content to users
US8074289B1 (en) Access to content addressable data over a network
AU757667B2 (en) Access to content addressable data over a network
US7167898B2 (en) Collaboration method, system, program and record medium
US7349929B2 (en) Accessing data based on user identity
JP3443057B2 (en) Method and system for distributing an application from a server to a client
US7506157B2 (en) Access to content addressable data over a network
US6260040B1 (en) Shared file system for digital content
US7115919B2 (en) Storage system for content distribution
JP2005129018A (en) Method and apparatus for providing attribute of collaboration system in operation system folder type file system
EP2175383A1 (en) Method and apparatus for improving file access performance of distributed storage system
US20090100163A1 (en) Method and apparatus forWeb based storage on demand
EP0911745A2 (en) File format conversion method and file system, information processing system, electronic commerce system using the method
US20050010647A1 (en) Customizing a client application using an options page stored on a server computer
US7624134B2 (en) Enabling access to remote storage for use with a backup program
USRE40949E1 (en) Server-side recycle bin system

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20010822

Termination date: 20170526