A kind of software service method for packing based on cloud computing technology
Technical field
The invention belongs to software application technology field, be specifically related to a kind of software service method for packing based on cloud computing technology.
Background technology
Current, after some software is bought, user uses within the specific time period, and authorized user number often can not reach capacity use, and after using a period of time, due to finishing of project, these softwares may just idlely get off, result in a large amount of wastings of resources, and there is urgent demand to these resources in other some users.
In the face of the wastings of resources a large amount of like this, current market lacks a kind of effective solution, instruct and break away from this present situation.
Summary of the invention
The object of this invention is to provide a kind of software service method for packing based on cloud computing technology, solve the wasting of resources amount existed in prior art large, the problem utilized can not be obtained to greatest extent.
The technical solution adopted in the present invention is, a kind of software service method for packing based on cloud computing technology, implements according to following steps:
Step 1, treat canned software and be configured parameter encapsulation, software essential information is provided to parameter/configuration interface, comprise parameter configuration, user's encapsulation, authority encapsulation, monitoring, scheduling, form unified Webservice general-purpose interface after encapsulation, the API that the realization of these interfaces depends on software self to be provided realizes;
Step 2, the API that realizes of Webservice general-purpose interface step 1 obtained carries out address encapsulation by cryptographic means, and the link address of parent page is hidden, and is supplied to user software users address;
Step 3, carries out user's encapsulation to the software users address that step 2 obtains, is mapped in software users address and external user, forms user's mapping table;
Step 4, create user right map information table according to user's mapping table that step 3 is formed, just software users authority information and external user authority information map one by one, by limiting operation interface, complete the configuration of software users authority, finally realize user authority management;
Step 5, the external user authority that step 4 obtains is monitored and dispatched, judge Current resource behaviour in service, omnibearing monitoring software resource can be realized use and idle condition, according to Current software resource behaviour in service, scheduling resource demand for services user that can be clear and definite, does not have idling-resource available as current, scheduler program can point out user's Current resource saturated, waits for that application uses.
Feature of the present invention is also,
Configuration parameter encapsulation in step 1 refers to, Webservice interface getParameter is provided, software provides access mode and service reference address, after obtaining service access mode and address, reference address is encapsulated as general address, and after obtaining the authorization, user can use software according to the occupation mode that software is original.
Address encapsulation in step 2, that softward interview address is encapsulated by cryptographic means, cryptographic means refers to and utilizes Web page framework to be hidden by the true reference address of software, user uses address for the address after encapsulation, can jump to the original reference address of software by the address after encapsulation, but original reference address is invisible.
User's encapsulation in step 3, carry out encapsulation by the API provided software to realize, increase, delete, change, look into user profile function, after the user interface that obtaining software provides realizes, software users information and external user are mapped, form user's mapping table, realize unification user encapsulation, even if user finds the true reference address of software after user encapsulates, also cannot be conducted interviews by the username and password grasped, can only by the address access software after encapsulation, Webservice general-purpose interface is formed: comprise addUserInfo after encapsulation, updateUserInfo, deleteUserInfo, getAllUserList, getUserById realizes the management to user, wherein each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations:
AddUserInfo, according to user profile adding users;
UpdateUserInfo, according to up-to-date user profile amendment user;
DeleteUserInfo, according to user ID, deletes some or some users;
GetAllUserList, obtains all user profile lists;
GetUserById, obtains certain or some user profile.
Authority encapsulation in step 4, carry out encapsulation particular by the API provided software to realize, the Interface realization of user right binding, change, deletion, and the operating right of active user can be returned according to user ID, after obtaining Interface realization, utilize user's mapping table, software users authority and external user authority information are mapped, realize unified rights encapsulation, after encapsulation, form the management of Webservice interface addAccess, updateAccess, deleteAccess, getAccessInfoByUserId realization to user right.Wherein each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations:
AddAccess, for user binds permissions list;
UpdateAccess, upgrades user right list;
DeleteAccess, deletes user right list;
GetAccessInfoByUserId, obtains user right list according to user ID.
Monitoring in step 5 refers to that the API by providing software carries out encapsulation and realizes, obtain current idle resource, the function of user resources using state, after obtaining Interface realization, monitoring software resource behaviour in service at any time, accomplish distribution idling-resource promptly and accurately as required, reach the object of maximum using resource, form Webservice interface getIdleUserList, getUserState after encapsulation and realize monitoring software resource service condition, wherein each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations:
GetIdleUserList, obtains unprecedented user list, getUserState, obtains the current using state of user.
Scheduling in step 5 refers to, by using the interface after encapsulation, distributing and open service for user.When user proposes service request, perform service monitoring by service dispatch, if available free software users, then directly distribute to this user and use; As current service request is in saturation condition, and the request of this user is unauthorized access, then user waiting prompt or prompting user unauthorized access; Using the user of software to authorize beyond the access time of distributing if some, and current service request is in saturation condition, when other users have new service request, and this user is validated user, then force to allow illegal user offline, this Resourse Distribute is used to validated user, Webservice interface makeUserConnect, enforceBrokeUserConnect of scheduling encapsulation realize dispatcher software resource, each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations.
MakeUserConnect binds service for user.
EnforceBrokeUserConnect is for forcing disconnect user service.
The invention has the beneficial effects as follows, based on the software service method for packing of cloud computing technology, reaching by reasonably being encapsulated in tolerance band by software the object utilizing resource to greatest extent, cost-saving, improve the effective rate of utilization of software.
Accompanying drawing explanation
Fig. 1 is a kind of software service method for packing software encapsulation flow chart based on cloud computing technology of the present invention;
Fig. 2 is a kind of software service method for packing software encapsulation frame diagram based on cloud computing technology of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
A kind of software service method for packing based on cloud computing technology of the present invention, as shown in Figure 1, implement according to following steps:
Step 1, treat canned software and be configured parameter encapsulation, software essential information is provided to parameter/configuration interface, comprise parameter configuration, user's encapsulation, authority encapsulation, monitoring, scheduling, form unified Webservice general-purpose interface after encapsulation, the API that the realization of these interfaces depends on software self to be provided realizes;
Step 2, the API that realizes of Webservice general-purpose interface step 1 obtained carries out address encapsulation by cryptographic means, and the link address of parent page is hidden, and is supplied to user software users address;
Step 3, carries out user's encapsulation to the software users address that step 2 obtains, is mapped in software users address and external user, forms user's mapping table;
Step 4, create user right map information table according to user's mapping table that step 3 is formed, just software users authority information and external user authority information map one by one, by limiting operation interface, complete the configuration of software users authority, finally realize user authority management;
Step 5, the external user authority that step 4 obtains is monitored and dispatched, judge Current resource behaviour in service, omnibearing monitoring software resource can be realized use and idle condition, according to Current software resource behaviour in service, scheduling resource demand for services user that can be clear and definite, do not have idling-resource available as current, scheduler program can point out user's Current resource saturated, wait for that application uses, configuration parameter encapsulation in step 1 is, Webservice interface getParameter is provided, software provides access mode and service reference address, after obtaining service access mode and address, reference address is encapsulated as general address, after obtaining the authorization, user can use software according to the occupation mode that software is original.
Address encapsulation in step 2, that softward interview address is encapsulated by cryptographic means, cryptographic means refers to and utilizes Web page framework to be hidden by the true reference address of software, user uses address for the address after encapsulation, can jump to the original reference address of software by the address after encapsulation, but original reference address is invisible.
User's encapsulation in step 3, carries out encapsulation by the API provided software and realizes, increase, delete, change, look into user profile function.After the user interface that obtaining software provides realizes, software users information and external user are mapped, form user's mapping table, realize unification user encapsulation.Even if user finds the true reference address of software after user encapsulates, also cannot be conducted interviews by the username and password grasped, can only by the address access software after encapsulation, Webservice general-purpose interface is formed: comprise addUserInfo, updateUserInfo, deleteUserInfo, getAllUserList after encapsulation, getUserById realizes the management to user, wherein each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations:
AddUserInfo, according to user profile adding users;
UpdateUserInfo, according to up-to-date user profile amendment user;
DeleteUserInfo, according to user ID, deletes some or some users;
GetAllUserList, obtains all user profile lists;
GetUserById, obtains certain or some user profile.
Authority encapsulation in step 4, carries out encapsulation particular by the API provided software and realizes, the Interface realization of user right binding, change, deletion, and can return the operating right of active user according to user ID.After obtaining Interface realization, utilize user's mapping table, software users authority and external user authority information are mapped, realize unified rights encapsulation, after encapsulation, form the management of Webservice interface addAccess, updateAccess, deleteAccess, getAccessInfoByUserId realization to user right.Wherein each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations:
AddAccess, for user binds permissions list;
UpdateAccess, upgrades user right list;
DeleteAccess, deletes user right list;
GetAccessInfoByUserId, obtains user right list according to user ID.
Monitoring in step 5 refers to that the API by providing software carries out encapsulation and realizes, and obtains current idle resource, the function of user resources using state.After obtaining Interface realization, monitoring software resource behaviour in service at any time, accomplish distribution idling-resource promptly and accurately as required, reach the object of maximum using resource, form Webservice interface getIdleUserList, getUserState after encapsulation and realize monitoring software resource service condition.Wherein each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations:
GetIdleUserList, obtains unprecedented user list, getUserState, obtains the current using state of user.
Scheduling in step 5 refers to, by using the interface after encapsulation, distributing and open service for user.When user proposes service request, perform service monitoring by service dispatch, if available free software users, then directly distribute to this user and use; As current service request is in saturation condition, and the request of this user is unauthorized access, then user waiting prompt or prompting user unauthorized access; Using the user of software to authorize beyond the access time of distributing if some, and current service request is in saturation condition, when other users have new service request, and this user is validated user, then force to allow illegal user offline, this Resourse Distribute is used to validated user, Webservice interface makeUserConnect, enforceBrokeUserConnect of scheduling encapsulation realize dispatcher software resource, each interface has a fixing parametric software mark ID, for distinguishing certain canned software of concrete operations.
MakeUserConnect binds service for user.
EnforceBrokeUserConnect is for forcing disconnect user service.
A kind of software service method for packing based on cloud computing technology of the present invention, by forming unified Webservice general-purpose interface to the encapsulation of software configuration parameter, user, authority, monitoring, scheduling, the API that the realization of these interfaces depends on software self to be provided realizes, as Fig. 2, the API form that different software provides is different, but all needs the requirement meeting interface encapsulation; What software provided parameter/configuration interface realizes API, after service encapsulates scheme obtains softward interview mode and address, directly these raw informations can not be leaked cruelly to user, prevent divulging a secret of server info, further these information should be encapsulated, be presented to end user afterwards again to use, end user can jump to parent page according to current address, but the link address of parent page will be hidden; Software provides user's package interface to realize API, after service encapsulates scheme obtains software users information, these information are current just self-existent, there is no practical significance, now need the mapping by software users information and external user information, form mapping table, when external user action, software users is fed back to, completing user Union user management by the mapping of mapping table.Software provides authority package interface to realize API, after service encapsulates scheme obtains external user authority information, by user's mapping table, create user right map information table, software users authority information and external user authority information are mapped one by one, by limiting operation interface, complete the configuration of software users authority, finally realize user authority management; Software provides monitoring, scheduling package interface realizes API, after service encapsulates scheme obtains monitoring and dispatch interface realization, omnibearing monitoring software resource can be realized use and idle condition, according to Current software resource behaviour in service, scheduling resource demand for services user that can be clear and definite, do not have idling-resource available as current, scheduler program can point out user's Current resource saturated, waits for that application uses.When certain user's rights of using is to after date, scheduler program can according to circumstances be forced to stop user's service, idling-resource is distributed to new user and uses.
The present invention is by the rational service encapsulates of software, and omnibearing control software design Resourse Distribute uses, and accomplishes resource fitting software service ability promptly and accurately, cost-saving, increases operation rate.