CN103873343A - Resource management method, client and system - Google Patents

Resource management method, client and system Download PDF

Info

Publication number
CN103873343A
CN103873343A CN201210531417.1A CN201210531417A CN103873343A CN 103873343 A CN103873343 A CN 103873343A CN 201210531417 A CN201210531417 A CN 201210531417A CN 103873343 A CN103873343 A CN 103873343A
Authority
CN
China
Prior art keywords
resource management
server
client
terminal server
message
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.)
Pending
Application number
CN201210531417.1A
Other languages
Chinese (zh)
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.)
ZHENJIANG GOLDNT SOFTWARE Corp
Original Assignee
ZHENJIANG GOLDNT SOFTWARE Corp
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 ZHENJIANG GOLDNT SOFTWARE Corp filed Critical ZHENJIANG GOLDNT SOFTWARE Corp
Priority to CN201210531417.1A priority Critical patent/CN103873343A/en
Publication of CN103873343A publication Critical patent/CN103873343A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention relates to the field of communications, and discloses a resource management method, client and system, for solving the problems of incapability of realizing operation of communication or work situation reporting and the like, and inconvenient use for a user in the prior art. The technical scheme comprises the following steps: when a user needs to use a resource management service, receiving resource management information through the client of a mobile terminal; the client of the mobile terminal visiting a terminal server through WCF service scheduling, and sending the resource management information to the terminal server; the terminal server visiting a resource management server through the WCF service scheduling, and sending the resource management information to the resource management server; the resource management server sending corresponding response information to the terminal server through WCF back scheduling; the terminal server sending the response information to the client through message pushing; and the client performing updating according to the response information. The technical scheme provided by the invention can be applied to such mobile terminals as a mobile phone and the like.

Description

Method for managing resource, client and system
Technical field
The present invention relates to the communications field, relate in particular to a kind of method for managing resource, client and system.
Background technology
In current social, most of employees treat in office work.Employee, in the time of office, can use computer to realize to link up or the operation such as the report of working condition.But, when user goes on business or go out the special circumstances such as work can not use computer time, cannot realize aforesaid operations, be not easy to user and use.
Summary of the invention
Embodiments of the invention provide a kind of method for managing resource, client and system, can realize at any time the operations such as communication or working condition report.
On the one hand, provide a kind of method for managing resource, comprising: when user need to use resource management service, by the client resource management information of mobile terminal; The client of described mobile terminal is passed through WCF service call access terminal server, and sends described resource management information to described terminal server; Described terminal server passes through WCF service call access resources management server, and sends described resource management information to described resource management server; Described resource management server is adjusted back to described terminal server and is sent corresponding response message by WCF; Described terminal server sends described response message by message push to described client; Described client is upgraded according to described response message.
On the other hand, provide a kind of resource management apparatus, comprising:
Information receiving module, need to use resource management service time, receives resource management information for user;
Access modules, for passing through WCF service call access terminal server, and sends described resource management information to described terminal server, makes described terminal server obtain corresponding response message from resource management server;
Response receiver module, for receiving described terminal server by the response message of message push;
Update module, for upgrading according to described response message.
On the one hand, provide a kind of resource management system again, comprising:
Resource management client, need to use resource management service time, receives resource management information for user; By WCF service call access terminal server, and send described resource management information to described terminal server; Upgrade according to response message;
Described terminal server, the described resource management information sending for receiving described client; By WCF service call access resources management server, and send described resource management information to described resource management server; Send described response message by message push to described client;
Described resource management server, for being adjusted back to described terminal server and sent corresponding response message by WCF.
Method for managing resource, client and system that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
Brief description of the drawings
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, to the accompanying drawing of required use in embodiment or description of the Prior Art be briefly described below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, do not paying under the prerequisite of creative work, can also obtain according to these accompanying drawings other accompanying drawing.
The flow chart of the method for managing resource that Fig. 1 provides for the embodiment of the present invention one;
The resource management schematic diagram that Fig. 2 provides for the embodiment of the present invention one;
The flow chart of the method for managing resource that Fig. 3 provides for the embodiment of the present invention two;
The flow chart of the method for managing resource that Fig. 4 provides for the embodiment of the present invention three;
The flow chart of the method for managing resource that Fig. 5 provides for the embodiment of the present invention four;
The flow chart of the method for managing resource that Fig. 6 provides for the embodiment of the present invention five;
The flow chart of the method for managing resource that Fig. 7 provides for the embodiment of the present invention six;
The flow chart of the method for managing resource that Fig. 8 provides for the embodiment of the present invention seven;
The structural representation one of the resource management client that Fig. 9 provides for the embodiment of the present invention eight;
The structural representation two of the resource management client that Figure 10 provides for the embodiment of the present invention eight;
The structural representation three of the resource management client that Figure 11 provides for the embodiment of the present invention eight;
The structural representation four of the resource management client that Figure 12 provides for the embodiment of the present invention eight;
The structural representation five of the resource management client that Figure 13 provides for the embodiment of the present invention eight;
The structural representation of the resource management system that Figure 14 provides for the embodiment of the present invention nine.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtaining under creative work prerequisite, belong to the scope of protection of the invention.
The invention provides a kind of method for managing resource, client and system, can solve prior art and can not realize at any time and linking up or the operation such as the report of working condition, be not easy to the problem that user uses.
embodiment mono-:
As shown in Figure 1, the embodiment of the present invention provides a kind of method for managing resource, comprising:
Step 101, when user need to use resource management service, by the client resource management information of mobile terminal.
In the present embodiment, the resource management service that user uses, can, for sending message, obtain contacts list, obtain the message data of buffer memory, the information that the task of obtaining is relevant, obtain the information that schedule is relevant, obtain movable relevant information, obtain the information that organizational structure is relevant, calendar service etc., this is no longer going to repeat them.
Step 102, the client of mobile terminal is passed through WCF service call access terminal server, and sends resource management information to this terminal server.
In the present embodiment, terminal server can adopt WCF service, aspect the deployment of terminal server, can be divided into two kinds: by Internet Information Services(Internet Information Service, IIS) service that loads, provide with resource management server is integrated.Wherein, by IIS load can realize terminal server from resource management server in different server deploy; Integrated with the service that resource management server provides, can realize terminal server and resource management server after loading service and share same region of memory.
Step 103, terminal server passes through WCF service call access resources management server, and sends this resource management information to this resource management server.
Step 104, this resource management server is adjusted back to terminal server and is sent corresponding response message by WCF.
In the present embodiment, resource management server can be served the registration that user message passage is provided by MessagePusher, send message, obtain message contact list, obtain fixed news contacts list, obtain the contacts list that certain task is relevant, obtain the contacts list of all tasks, obtain all tasks of certain employee, obtain all participants of certain task, pocket transmission news and the service such as message data of obtaining buffer memory.Wherein, can register by the Internet to server, in the time of user log off, for avoiding the idle of passage, be unfavorable for the distribution of efficient resource, can carry out the cancellation operation of message channel; Can carry out by event center the transmission of message, this type of message comprises: system message, user log in success message, generally reminder message, calendar prompting message, chat messages, the prompting of big data quantity chat messages, multi-person conference message, the variation of system data message are reminded, multi-person conference starts prompting message, subject under discussion starts to remind with end, multi-person conference personnel change prompting (main executor finishes certain employee and participates in this meeting), multi-person conference participant increases prompting message and multi-person conference participant state variation message.
In the present embodiment, resource management server is served the process that above-mentioned service is provided by MessagePusher, can comprise: first call the correlation technique of resource management server, then carry out data entity and transform rear for mobile terminal.Wherein contact person's entity can comprise general contact person and task contact person; In the present embodiment, can encapsulate three entities and comprise BaseContacter, OrdinaryContacter and TaskContacter; Wherein, BaseContacter is base class, and OrdinaryContacter inherits BaseContacter and represents general contact person, and TaskContacter inherits OrdinaryContacter and represents task contact person, and the attribute of above-mentioned entity is as follows:
OrdinaryContacter attribute is: KeyID contact person ID value
DisplayName name of contact person
Sex contact person sex
The state that CustomerState contact person is current, is divided into: in off-line, online, interruption-free, rest
TaskContacter:?OrdinaryContacter
Adeditive attribute is: ID value and the task names of TaskObject task
Whether this task of ISinThisTask is carried out
TaskRole task participant's role
The role of Role task, this attribute is established for convenience of the judgement of sequence, only uses in service end, and client is not used.
In the present embodiment, the method for packing of MessagePusher service comprises: MethodResult RegistClient (long loginID, string strUri); MethodResult<long> SendMessage (MessageBody msgData, List<long> sendto); MethodResult<long> SendSimpleMessage (string msgData, string sendto); MethodResult<IList<OrdinaryCon tacter>> GetAllContacters (); MethodResult<IList<OrdinaryCon tacter>> GetContactersByIDs (List<long> idList); MethodResult<IList<TaskContact er>> GetTaskContacters (long taskID); MethodResult<IList<TaskContact er>> GetAllTaskContacters (); MethodResult<IList<BaseObjectG reatT.GreaT.GT> GetAllTask (long customerID); MethodResult<IList<TaskPartici pator>> GetParticipators (long taskID); MethodResult SendtMultiAgendaMessage (MessageBody msgData, List<long> sendto, long objecID); MethodResult<string> GetCacheLargeMsg (long senderID).In above-mentioned encapsulation, basic messae type is MessageBody, message can be packaged into by one " box ", each message is all taking this " box " as basis, and realize and expanding on this basis, should " box " entity be MessageContainer, content comprises: the substance entity of message, sender, recipient gather, the GUID unique identification of message.This entity provides heavily loaded constructed fuction, can facilitate different instantiations.In order to ensure the transmission of message content big data quantity, can exceed preset characters number as 200 o'clock in data volume, first after message being saved in internal memory, be sent to again corresponding client, make client to after message initiatively the method for calling mobile phone service fetch message content.
In the present embodiment, the type of message of MessageBody expansion can comprise: the content of prompting message, type, and enumerated value is as task, schedule, activity, system or chat messages, and state is as the beginning of task and end, enumeration type value is as started, finish and the unknown, the time of prompting.Wherein, schedule prompting message can be divided into single schedule and many people schedule, can distinguish by AgendaType attribute; Message entity can be multi-person conference, or the system data message sending when nullifying as user's login that changes, or multi-person conference changes as newcomer adds, the unknown, beginning and end etc.
Whether in the present embodiment, can send successfully by GUID acknowledge message,, in the time receiving the GUID checking that client is returned, message sends successfully.On the basis of above-mentioned " box ", can also define message SysMessageContainer and data access message ResponseMsgContainer.
In the present embodiment, resource management server can obtain the information that task is relevant by TaskManager, and this process mainly realizes by calling resource management server, finally transforms to be suitable for the needs of terminal data entity by entity.Now, the task entity of encapsulation comprises:
AskBaseData(task primary entity)
Property value is: the ID value of KeyID task
The title of DisplayName task
The progress value of ProgresValue task
The state of CurrentTaskState current task, task status is divided into, in formulation, to be allocated, carry out in, complete, cancel, close
TaskSimpleData inherits TaskBaseData(task simple entity)
Adeditive attribute value is: the BeginTime task time started
The EndTime task end time
Schedule sum under AgendaCount task
MilestoneData milestone character string
PrincipalTag task leader information, ID value and name
ExecutiveTag tasks carrying people information, ID value and name
ParticipatorCount task participant total number of persons
TaskDetailData inherits TaskSimpleData(Task Details entity)
Adeditive attribute is: Outline task summary
CurrentTime current time
ReportTaskDetailData(reports task)
Property value is: the ID value of KeyID task
DisplayName reports the title of task
Principal reports task leader's information, ID value and name
Executor reports tasks carrying people information, ID value and name
ReportTaskOutline reports task summary
In the present embodiment, the ID value of the task that TaskManager can import into according to client is obtained the details of task, also the employee ID value that can import into according to client is obtained the Back ground Information list of all tasks that employee is correlated with, the ID value of also can importing into according to client of task is obtained the Back ground Information of father's task of this task, the ID value of also can client importing into of task is obtained the Back ground Information list of all subtasks of this task, the line number of the initial sum ending of task Back ground Information list determined in the ID value of also can importing into according to client of task and index, also the employee ID value that can import into according to client and the list number of every page are obtained the number of pages of all task lists of this employee, also can obtain according to message header the details of current carrying out of the task of user, also can set current carrying out of the task of user according to message header, now whether system can point out user to force to set, can also be according to search condition as ID value, task names, task time started and end time, task type, the Back ground Information list that the search conditions such as task status and number of pages search obtain task, can also create new task or report task, the ID value of can also importing into according to client of task is cancelled the task dispatching of this ID value.For the ease of the expansion of search condition, above-mentioned search condition can encapsulate separately,
In the present embodiment, resource management server can obtain the information that schedule is relevant by AgendaManager, and said process can be realized by calling resource management server, finally transforms the needs with practical terminal data entity by entity.Now, the schedule entity of encapsulation comprises:
AgendaBaseData(schedule basis entity)
Attribute is: KeyID schedule ID value
DisplayName schedule title
The task that Task schedule is corresponding
The executor of Worker schedule
BeginTime planned start time
The significance level of Importance schedule
The daily type of AgendaType, is divided into: single daily, many people schedule
AgendaSimpleData inherits AgendaBaseData(schedule simple entity)
Adeditive attribute is: WorkHours schedule planning duration
Organiger schedule promoter
AgendaState schedule state, in formulation, pending, carry out in, complete, cancel, close, [expression helps other people to formulate the pending of many people schedule] to be confirmed, wait for [representing that contributor comes into play]
CurrentTime current time
The EndTime schedule planning end time
AgendaDetailData inherits AgendaSimpleData(schedule details entity)
Adeditive attribute is: the general introduction of Outline schedule
Many people of TopicForDiscussionData(schedule agenda entity)
Attribute is: KeyID agenda ID
DisplayName agenda title
The BeginTime agenda time started
WorkHours agenda duration
State agenda state
Many people of ParticipatorInfo(schedule participant entity)
Attribute is: KeyID participant ID
DisplayName participant's name
RoleID participates in this role
RoleName role's title
Many people of MultiuserAgendaData(schedule entity)
Attribute is: many people of KeyId schedule ID value
The list of List<TopicForDiscussionData> agenda
List<ParticipatorInfo> participant list
In the present embodiment, can obtain by AgendaManager all schedule Back ground Informations list that a certain user makes, also can obtain and the list of a certain user-dependent all schedule Back ground Informations, also can obtain a certain user all schedule Back ground Informations list of some day, also can obtain all schedule Back ground Informations list of a week at a certain user place some day, also can obtain front and back all schedule Back ground Informations list of two weeks at a certain user place some day, also can obtain all schedule Back ground Informations list that a certain employee is making a certain task, can also obtain simple information or the details of a certain schedule, can also create calendar information, current schedule can also be set according to demand, now whether system can point out user to force to set, can also obtain details or the action message of a certain user or multiple users' schedule.
In the present embodiment, resource management server can obtain movable relevant information by ActivityManager, and said process can be realized by calling resource management server, finally transforms to be suitable for the needs of terminal data entity by entity.Now, the schedule entity of encapsulation comprises:
ActivityBase(removable foundation entity)
Attribute is: the movable ID value of KeyID
DisplayName activity name
The movable GUID value of ActivityGuid
TimePoint time point
Agenda activity association calendar information
Task activity association mission bit stream
Longitude longitude
Latitude latitude, residing position when longitude and latitude is used for determining user's executed activity
ActivityItem inherits the movable entity of ActivityBase()
Adeditive attribute is: Summary sums up
TempData user's storing history data
ActivityStart inherits the movable entity that starts of ActivityItem()
Adeditive attribute is: ActivityType Activity Type, be divided into real-time activity, afterwards movable, mobile phone terminal is movable, mobile phone terminal is afterwards movable
The input of InputResource resource
The movable executor of Worker
The job site of WorkPlace activity
The participation type of ParticipateType activity, is divided into people's execution and many people and carries out
The person ID of OrganigerID active organization value
The movable time started of ActuallyBeginTime
ActivityFinish inherits ActivityItem(activity end entity)
Adeditive attribute is: the output of OutputResource resource
The movable total duration of WorkHours
The satisfaction of Satisfaction activity
The ActuallyEndTime activity end time
ActivityCompelled inherits ActivityItem(and forces the movable entity of submitting to)
Adeditive attribute is: the input of InputResource resource
The movable executor of Worker
WorkPlace active operation place
The output of OutputResource resource
Satisfaction activity satisfaction
ActivityState active state
The movable type that participates in of ParticipationType
OrganigerID organizer ID
The movable submission time of forcing of ComplledTime
ActivitySuspended inherits the ActivityItem(entity of staying off the feet)
Adeditive attribute is: the movable time out point of SuspendedTime
ActivityContinue succession ActivityItem(stays off the feet and proceeds entity)
Adeditive attribute is: the time point that ContinueTime continues
ActivityAfterwards inherits ActivityItem (afterwards movable)
Adeditive attribute is: the input of InputResource resource
Worker executor
WorkPlace job site
The movable time started of ActuallyBeginTime
The ActuallyEndTime activity end time
FullActivity inherits the movable complete time-sequencing list of ActivityBase()
Adeditive attribute is: LinkedList<ActivityItem> m_Activities splits a whole activity to come, and the beginning of activity, movable time-out, movable continuation, movable pressure are submitted to, the end of activity.Between them, determined and belonged to same activity by GUID, LinkedList<ActivityItem> arranges them by order before and after the time, deposit in internal memory
The details of ActivityDetailData(activity)
Attribute is: the movable ID of KeyID
DisplayName activity name
Task activity association task
Agenda activity association schedule
The general introduction of Summary activity
The movable time started of BeginTime
The EndTime activity end time
In the present embodiment, can obtain all activities of this schedule according to task ID and schedule ID by ActivityManager, and be converted into the list demonstration of mobile terminal activity; Also can obtain movable details, also can obtain a certain user all effort scales on the same day, also can submit activity data to, can also obtain all effort scales under a certain task that a certain user carries out, can also continue to carry out the activity suspending, the effort scale of all time-outs of a certain user can also be obtained, the effort scale of all time-outs under a certain task or all effort scales can also be obtained.
In the present embodiment, resource management server can, by the CalendarManager service log user number of tasks on the same day, day number of passes, movable number, can also judge according to of that month total task number, schedule sum and movable sum the busy extent on the same day.The entity of CalendarManager service encapsulates can comprise: MonthCalendar and DayCalendar.Specific object is as follows:
The busy degree on DayCalendar:BusyDegree same day
The schedule sum on AgendaAmount same day
The activity sum on ActivityAmount same day
The days of MonthCalendar:CurrentDate current time
The total task number of TaskSum this month
The schedule sum of AgendaSum this month
The activity sum of ActivitySum this month
Dictionary<int, the set of the schedule of the every day of DayCalendar> this month
In the present embodiment, resource management server can obtain the information that organizational structure is relevant by OrganizationManager, and said process can be realized by calling resource management server, finally transforms the needs with practical terminal data entity by entity.Now, the schedule entity of encapsulation comprises:
OrganizationData(organization object)
Attribute is: KeyID organization id
DisplayName organization name
ParentOrgId father's organization name
List<OrganizationData> subgroup is knitted set
The employee of OrganEmployeeData(department entity)
Attribute is: KeyID employee ID
DisplayName employee's name
PositionName position title
Whether IsMyLower is certain employee's subordinate
CurrentState employee's current state
CurrentTask employee's current task
The current schedule of CurrentAgenda employee
The current activity of being engaged in of CurrentActivity employee
AllOrganEmployeeData inherits OrganEmployeeData(employee's details)
Adeditive attribute is: Department department entity, comprises the ID value of department and the title of department
CompanyDepartmentData(corporate department entity)
Attribute is: KeyID corporate department ID value
DisplayName corporate department title
The ID of ParentDepartmentID father department value
CompanyStaffData(company personnel entity)
Attribute is: KeyId ID value
DisplayName name
The state that CurrentState is current
The position that StaffPosition is current
DepartmentID affiliated function
The CompanyStaffStateData(company personnel ontology of states)
Attribute is: KeyID Id value
DisplayName employee's name
The logging status that CurrentState is current
Current carrying out of the task of CurrentTask
The current schedule of carrying out of CurrentAgenda
The current activity of carrying out of CurrentActivity
In the present embodiment, can obtain organizational structure by OrganizationManager; Also can obtain according to the ID value of department all employee list of this department; Also can obtain employee's view, this employee's view both can only present organizational structure information, also can present the task list information reporting; Can also obtain all employee information of company; Can also obtain all department informations of company; Can also obtain according to the ID of department all employee information of this department; Can also check according to instruction user's state.
Step 105, terminal server sends response message by message push to client.
In the present embodiment, for realizing message push, the base class of message push can be PushNotificationMessage, and three kinds of propelling movement modes of encapsulation can comprise RawPushNotificationMessage, ToastPushNotificationMessage and TilePushNotificationMessage.Wherein, base class PushNotificationMessage is abstract class, can forbid that user carries out instantiation to it, and allow subclass to carry out the covering of abstract method to it simultaneously.
In the present embodiment, can in base class, define the constant value of the maximum amount of message of message push, comprise the capacity value of message header and message.Wherein, message header can comprise following constant: MessageId, BatchingInterval, NotificationStatus, DeviceConnectionStatus, SubscriptionStatus and WindowsPhoneTarget; The value of above-mentioned constant is made as respectively " X-MessageID ", " X-NotificationClass ", " X-NotificationStatus ", " X-DeviceConnectionStatus ", " X-SubscriptionStatus " and " X-WindowsPhone-Target "; The value of the constant comprising by above-mentioned message value can be distinguished different message request.
In the present embodiment, can also in base class, define three fields, be respectively _ sync, _ payload and _ sendPriority.Wherein, _ sync is privately owned read-only object object, represents synchronous bearer control; _ payload is privately owned byte array, represents the content of message byte; _ sendPriority is privately owned MessageSendPriority enumeration type, represents the priority that message sends; Three values that this MessageSendPriority comprises are respectively High, Normal, Low; In the time that the value of MessageSendPriority is High, message should push at once; In the time that the value of MessageSendPriority is Normal, message should push within the default short-term time (as 450s); In the time that the value of MessageSendPriority is Low, message should push within the default long-term time (as 900s).
In the present embodiment, five attributes be can also in base class, define, Id, SendPriority, Payload, NotificationClassId and IsDirty comprised.Wherein, Id is read-only GUID type, is the ID value of message uniqueness; SendPriority is the priority that sends message, in the time arranging, need to first carry out the certification that safety arranges; Payload is the byte content of carrying, also needs to carry out the certification that safety arranges in the time arranging; NotificationClassId is the ID value of abstract read-only Notification class; IsDirty is the value of bool type, represents in the time that the attribute of message changes, and the content of carrying is by the value of statistical indicant that occurs to rebuild.
To sum up, the constructed fuction of base class can be protected PushNotificationMessage (MessageSendPriority sendPriority=MessageSendPriority.Normal) { Id=Guid.NewGuid (); SendPriority=sendPriority; IsDirty=true; , transmission rank that can setup message in this constructed fuction is Normal.Wherein, whether the method for protected type is mainly to have defined SafeSet<T>, identical with value before for validation value, in this protected type, can define altogether 4 privately owned methods, comprise: private MessageSendResult SendSynchronously (byte[] payload, Uri uri, HttpWebRequest request), private void SendAsynchronously (byte[] payload, Uri uri, HttpWebRequest request, Action<MessageSendResult> sent, Action<MessageSendResult> error), private byte[] GetOrCreatePayload (), private HttpWebRequest CreateWebRequest (Uri uri, byte[] payload), represent that respectively synchronous message passing arrives destination address, by HttpWebRequest method asynchronous transmission message to destination address, create message bearing and verify its size and create HTTPWebRequest.
In the present embodiment, in base class, can encapsulate two publicly-owned methods, comprise: synchronous message passing and asynchronous transmission message.In this base class heavy duty the method for the method of message bearing and the user self-defined message head of initial message request, and defined the abstract method whether checking message bearing content crosses the border.
In the present embodiment, class RawPushNotificationMessage<T> represents a kind of mode of Raw message push; Two constant RawMessageHeadersSize and MaxPayloadSize in such, are defined; Wherein, RawMessageHeadersSize is privately owned, and initialization value is 116, represents to calculate the size of Raw message header; MaxPayloadSize is publicly-owned constant, and initialization value is MaxMessageSize – RawMessageHeadersSize, represents the maximum bearing capacity of Raw message push.Such attribute comprises two public T RawData { get; Set; And protected override int NotificationClassId{get { return 3; , the byte-sized of Raw message is obtained or is arranged in representative respectively, and the ID of the class of Raw message push.The method of such heavily loaded base class, comprises and creates message bearing and checking message bearing byte content, makes message pass through the form sequence of stream, so that transmit operation afterwards.
To sum up, the constructed fuction of class is public RawPushNotificationMessage (MessageSendPriority sendPriority=MessageSendPriority.Normal): base (sendPriority) { }, and transmission rank that can setup message in this constructed fuction is Normal.
In the present embodiment, class TilePushNotificationMessage has represented the mode that a kind of header message pushes.In such, define 5 constants, having comprised: private const int TileMessageHeadersSize=146; Public const int MaxPayloadSize=MaxMessageSize-TileMessageHeadersSize; Public const int MinCount=0; Public const int MaxCount=99; Private const string WindowsPhoneTarget=" token "; Above-mentioned constant represents respectively and calculates the size of title head, maximum bearing capacity, message number minimum value, message number maximum, the target WindowsPhone character string mark that header message pushes.In such, can define three fields, comprise: private Uri _ backgroundImageUri; Private int _ count=MinCount; Private string _ title; Above-mentioned field represents that respectively background picture acts on behalf of path, one and be presented at value, the title content character string of the integer type on title the address path of mobile terminal or one.In such, can define 4 property values, comprise: BackgroundImageUri, Count, Title, NotificationClassId; Above-mentioned property value is respectively Uri type, obtain _ backgroundImageUri value, while setting, need carry out safety certification, int type, obtain _ count value, while setting, need carry out safety certification, string type, obtain _ title value, the ID value that need carry out safety certification, return messages transmission class while setting is 1.The method that has override three accumulation in such, comprising: protected override byte[] OnCreatePayload (), protected override void OnInitializeRequest (System.Net.HttpWebRequest request), protected override void VerifyPayloadSize (byte[] payload).In OnCreatePayload, write while becoming a mandarin and utilize XmlWriter to write following mark,
writer.WriteStartElement("wp",?"Notification",?"WPNotification");
writer.WriteStartElement("wp",?"Tile",?"WPNotification");
writer.WriteStartElement("wp",?"BackgroundImage",?"WPNotification");
writer.WriteStartElement("wp",?"Count",?"WPNotification");
writer.WriteStartElement("wp",?"Title",?"WPNotification")。
To sum up, the constructed fuction of class TilePushNotificationMessage can be: public TilePushNotificationMessage (MessageSendPriority sendPriority=MessageSendPriority.Normal): base (sendPriority) { }, transmission rank that can setup message in this constructed fuction is Normal.
In the present embodiment, class ToastPushNotificationMessage represents that a kind of message of Toast mode sends.The variable defining in such comprises respectively: private const int ToastMessageHeadersSize=146; Public const int MaxPayloadSize=MaxMessageSize-ToastMessageHeadersSize; Private const string WindowsPhoneTarget=" toast "; Above-mentioned variable represents respectively the size of Toast message header, the maximum bearing capacity of Toast message, the character string of destination mobile terminal.In such, defined two privately owned character string fields, having comprised: _ title and _ subTitle; Above-mentioned character string represents respectively after application program flag icons the title of the wide line character string title that shows, non-runic that title shows below.In such, define three attributes, having comprised: public string Title, public string SubTitle, protected override int NotificationClassId; Above-mentioned attribute represents respectively and obtains main title, need carry out safety certification while arranging, obtains subtitle, and the ID value that need to carry out safety certification, return messages class while setting is 2.In such, override three methods, having comprised: protected override byte[] OnCreatePayload (), protected override void OnInitializeRequest (HttpWebRequest request), protected override void VerifyPayloadSize (byte[] payload).In OnCreatePayload, write while becoming a mandarin, utilize XmlWriter to write following mark:
writer.WriteStartElement("wp",?"Notification",?"WPNotification");
writer.WriteStartElement("wp",?"Toast",?"WPNotification");
writer.WriteStartElement("wp",?"Text1",?"WPNotification");
writer.WriteValue(Title);
writer.WriteStartElement("wp",?"Text2",?"WPNotification")。
To sum up, the constructed fuction of class can be public ToastPushNotificationMessage (MessageSendPriority sendPriority=MessageSendPriority.Normal): base (sendPriority) { }, and transmission rank that can setup message in this constructed fuction is Normal.
Step 106, client is upgraded according to response message.
In the present embodiment, terminal server and resource management server can all adopt WCF service, and resource management server can adopt serverhost to dispose; Terminal server can load by IIS, integrated with resource management server.Can realize by the way terminal server and resource management server in different server deploy; And after loading service, terminal server and resource management server are shared same region of memory.
The method for managing resource that the present embodiment provides, is the conflict in minimizing work, is divided into two parts of client and server, and this server comprises terminal server and resource management server; Mobile terminal, terminal server and resource management server alternately as shown in Figure 2.Wherein, client is mainly concentrated the drafting at each interface, the encapsulation in space; Server centered various logic functions.Because various logic functions all concentrates on server, make client only need call the feature operation of service completion logic, thereby in the time that user terminal mobile terminal sends variation, can not modify to server, only need amendment client, be convenient to one of function and make peace and call, improved the reusability of server.
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment bis-:
As shown in Figure 3, the method for managing resource that the embodiment of the present invention provides, similar to shown in Fig. 1 of the method, difference is, the method for managing resource that the present embodiment provides also comprises:
Step 107, terminal server sends prompting message according to heartbeat mechanism to client.
In the present embodiment, step 107 can send prompting message by the client resource management information forward direction client of mobile terminal user; Also can be user after the client resource management information by mobile terminal, client upgrades forward direction client and sends prompting message; Can also after client is upgraded, send prompting message to client, this is not restricted.After in this step 107, heartbeat mechanism is the interval set time, system starts the predetermined operation of thread execution automatically; This heartbeat mechanism can be opened in the time that service starts, and in the time that service is closed or be abnormal, stops.
In the present embodiment, can define there is automatic release characteristics can not derived class HeartBeat, attribute in such comprises: heartbeat thread private Thread m_MainThread, heartbeat is set and whether stops private bool m_Stoped=false, interlude section public TimeSpan Interval is set.In constructed fuction, user is imported Interval into eartbeat interval is set, and starts thread MainThread simultaneously, triggers heartbeat event.
In the present embodiment, terminal server can be made up of message push mechanism, heartbeat mechanism, event center, automatic reminding, the activity memory management of task schedule and User Status memory management.Wherein, event center is core, and heartbeat mechanism, message push mechanism response events are carried out behind center, task schedule activity memory management, User Status memory management and automatic reminding are all realized and the transmission of event center by event, message push mechanism is that terminal server passes through the client of message channel PUSH message to mobile terminal, facilitates the active communication of terminal server and client, calls without client is passive, heartbeat mechanism is each set time, starts a thread (as started automatic reminding function thread), in the time that the needs interval set time starts certain function, can use this mechanism, thereby without certain thread of a direct-open, be beneficial to saving memory source, event center is triggering and the registration of encapsulation event, utilizes succession event execution sequence to carry out the design of optimizational function level, automatic reminding is to utilize heartbeat mechanism, the interval set time starts related linear program, after terminal server logical operation, by message channel by prompting message information pushing to client, the prompting message information pushing by message channel can be inter-related task, schedule or movable etc. prompting, task schedule activity memory management is in memory management, taking task as core, all schedules and activity all launch (while increasing a task newly as user with task, internal memory will change), when service starts, all carrying out of tasks are imported in internal memory, and the schedule of carrying out is associated with corresponding task, in internal memory, only preserve the activity that online user carries out, and activity must be to carry out in the situation that having determined current task, it is the situation that has shielded free activity in cellular service, after user's off-line, in internal memory, this user's activation record will be cleared up, User Status memory management is in internal memory, to preserve user online status, user agent safeguards, current carrying out of the task of user, the current schedule of carrying out of user, the current activity of carrying out of user, when user reaches the standard grade and rolls off the production line, switch current task, switch current schedule, carry out different when movable, all will there is corresponding variation in the User Status of preserving in internal memory, information in database also will be upgraded simultaneously, like this can the current state of quick obtaining user, need not from database, obtain and analyze accordingly, speed and the accuracy of state of obtaining User Status are greatly improved.
In the present embodiment, likening task to a room is that example describes, multiple rooms of initialization first when mobile terminal service starts, and user wants to be engaged in a certain when movable, first needs to select a room (selecting to carry out a task); Schedule is the plan of putting on desk in room, and user can also can be engaged in activity not according to plan after entering room according to schedule; In the time needing to be engaged in another activity midway, may belong to same task with the activity of current execution, also may not belong to same task; In the time not belonging to same task, user need, suspending after the activity of carrying out, walk out current room, after target approach room (having switched current task), carries out another activity again; Relation and the state of having safeguarded like this activity of task schedule in the time that needs obtain relevant information, need not obtain, and can directly from internal memory, obtain from database, have improved the speed of obtaining.
In the present embodiment, event center is clobal, and the register method of event is add { EventContext.Instance.m_EventHandlerList.AddHandler (typeof (T), value); Event is joined in the list of EventHandlerList, trigger to facilitate successively.Remove { EventContext.Instance.m_EventHandlerList.RemoveHandler (typeof (T), value); Event is deleted from the list of EventHandlerList, to nullify certain event.This event can be multistage event, while making Event triggered, can successively trigger.
In the present embodiment, memory management can comprise: the management of User Status, the memory management of task schedule activity and agency's memory management.Class ProxyCreater, for user agent's establishment, can be defined as follows object: private readonly static object m_PropertyObject=new object () in such; Private readonly Dictionary<string, object> m_Servers=new Dictionary<string, object> (); Private readonly IProxyCreaterOwner m_Owner; Above-mentioned object represents respectively Subscriber Application Barring Lock, for depositing agency's set.Wherein, IProxyCreaterOwner is that interface definition is as follows: be the callback object object KernelCallback { get of kernel service; And represent the IDictionary<string of WCF message header set, object> WCFMessageHeader { get; .
In the present embodiment, class needs the method for three constructed fuctions of heavy duty, comprising: static ProxyCreater (): ProxyConnectionPool.EnableConnectionPool=false is set; Private ProxyCreater () { }: represent not allow the instantiation of this object printenv transmission.Internal ProxyCreater (IProxyCreaterOwner owner): represent this type of binding IP roxyCreaterOwner interface object.In such, the main method of announcing comprises: public IKernelServer GetKernelInstance (), public T GetServerInstance<T> () where T: class; Said method represents respectively to obtain kernel service object and obtains T service object.Wherein, while creating kernel service object, can use dynamic proxy to create.
In the present embodiment, class SystemMemoryState has inherited interface IProxyCreaterOwner, IcallbackOwner and IDisposable; For safeguarding agency that memory system is all and user's call back function.Class CustomerMemoryState has inherited interface IProxyCreaterOwner, IcallbackOwner and IDisposable; For maintenance system user's current state, comprise current performed task schedule activity and historical act, the agency who logs in state, user and call back function.Class CMSContext is used for safeguarding SystemMemoryState and CustomerMemoryState.Class TAAContext is the total memory object of task schedule activity, for all pending tasks with carrying out of initialization system internal memory.Class TaskMemoryData is task internal storage data object, in Task data object, preserves the calendar information under all tasks, preserves all action messages under associated calendar information.
In the present embodiment, task object entity is: public long KeyID; Public string DisplayName; Public DateTime BeginTime; Public DateTime EndTime.Above-mentioned entity is defined as respectively the ID value of task, title, the time started of task and the end time of task of task.
In the present embodiment, schedule object entity is: public long KeyID; Public string DisplayName; Public long WorkerID; Public long TaskID; Public DateTime BeginTime; Public DateTime EndTime.Above-mentioned entity is defined as respectively ID value, the time started of schedule and the end time of schedule of the task of the ID value of schedule, the title of schedule, the employee ID that carries out schedule, association.
In the present embodiment, moving object entity is: public long KeyID; Public string DisplayName; Public string ActivityGuid; Public long TaskID; Public long AgendaID; Public long ExecutorID; Public virtual EnumActivityType ActivityType; Public DateTime TimePoint.Above-mentioned entity is defined as respectively movable ID value, movable title, movable GUID value, movable corresponding relevant task ID and movable corresponding relevant schedule ID value.
In the present embodiment, in order to facilitate the management of memory object, Reseal List set and LinkedList set, succession IEnumerable<T>.Be implemented as follows: first define event (ListDatasChangedEventArgs<ObjTypeGreatT.Gre aT.GT), the attribute that increases data and delete data is set, abstract class ListDatas<T> inherits IEnumerable<T>, in class, defining two private objects is respectively: private readonly List<T> m_datas=new List<T> () is in order to deposit collective data, public event EventHandler<ListDatasChangedEventArgsLEssT .LTssT.LTT>> DatasChanged, it is the data variation event of (comprise and increase and delete).The method of definition data variation, when after registered events, trigger data changes ListDatasChangedEventArgs event.Definition method for packing, data increase and data are deleted, and call respectively corresponding onDatasChanged method.Can also define additive method, for completing the operation oneself needing, after adding data, interpolation, call onDatasAdded method, so that relevant position response is carried out data and added operation logic simultaneously.
In the present embodiment, before encapsulation LinkedListDatas<T>, first define LinkedListDatasChangedType to represent, the interpolation of chained list and deletion action; Define the event that linked list data changes simultaneously; for LinkedListDatasChangedEventArgs<ObjTypeGrea tT.GreaT.GT inherits EventArgs, internal data is: public LinkedListDatasChangedType ChangedType { get; Private set; Represent change type, public ObjType Data { get; Private set; Represent change data content.Wherein, LinkedListDatas<T> inherits IEnumerable<T>, in class, define a private variable and a publicly-owned variation is respectively: private readonly LinkedList<T> m_datas=new LinkedList<T> (), in order to deposit the data T in chained list, public event EventHandler<LinkedListDatasChangedEventArg s<T>> DatasChanged is in order to represent the data of data variation.Can also define the triggering method of data variation event, or other method is to meet the needs of self, as public LinkedListNode<T> AddAfter (LinkedListNode<T> node, T value), public LinkedListNode<T> AddBefore (LinkedListNode<T> node, T value), public LinkedListNode<T> AddFirst (T value), public LinkedListNode<T> AddLast (T value), represent respectively to add data after certain node of chained list, before certain node of chained list, add data, node data is added in beginning at chained list, node data is added in ending at chained list.
The method for managing resource providing by the present embodiment, client can be received the prompting message of the hommization that terminal server sends in time, to carry out relevant necessary operation, as task starts, task finishes, the prompting of milestone.
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment tri-:
As shown in Figure 4, a kind of method for managing resource of the embodiment of the present invention, comprising:
Step 401, by the client resource management information of mobile terminal.This step is similar to the step 101 shown in Fig. 1, and this is no longer going to repeat them.
Step 402, the customer end adopted dynamic proxy of mobile terminal passes through WCF service call access terminal server, and sends resource management information to terminal server.
Step 403, terminal server adopts dynamic proxy by WCF service call access resources management server, and sends this resource management information to this resource management server.
In the present embodiment, send resource management information and the process to resource management server transmission resource management information to terminal server respectively by step 402 and step 403, similar to step 103 to the step 102 shown in Fig. 1, difference is, in order to prevent making a mistake while using static agent to call resource management server, cause the resource management server value of readjustment to change, make the value returned inaccurate, and then cause terminal server and normally communication effectively of resource management server, in the present embodiment, send resource management information and send resource management information to resource management server to terminal server and complete by dynamic proxy.
In the present embodiment, dynamic proxy can be divided into four parts, comprising: WCF acts on behalf of dynamicizer, Client Agent object, the inner interface encapsulating and method, the Buffer Pool of base class.This Client Agent object comprises: IClientBase, WCFReusableClientProxy<T>, WCFReusableFaultWrapperChannelProxy<TGreatT .GreaT.GT, WCFReusableFaultWrapperClientProxy<TGreatT. GreaT.GT.
In the present embodiment, IClientBase has defined the hiding attribute of home agent, is releasable object, comprises following content: event ProxyCreatedHandler ProxyCreated, represents when a new agency is created and trigger; Event ProxyMenthodCallHandler ProxyMethodCalling; ClientCredentials ClientCredentials { obtain client certificate and visit a method by get} representative; { the target end address of attachable WCF service is obtained in get} representative to ServiceEndpoint Endpoint; { the target end address of current attachable WCF service is obtained in get} representative to ServiceEndpoint CurrentEndpoint; { IClientChannel now carrying out is obtained in get} representative to IClientChannel InnerChannel; { get} represents the connection status that service broker's object is current to CommunicationState State; Void Abort () represents the method for the state-transition triggering at once in the time that current service connection status is closed; Void Close () represents the conversion occurring when current service connection status is closed; Void Open () represents the conversion occurring when current service connection status is opened; Object Tag { get; User-defined agency's object tag is preserved in set} representative; WCFReusableClientProxy<T> is abstract class, has inherited IClientBase simultaneously.
In the present embodiment, the field of stating in IClientBase comprises: protected T cachedProxy, private readonly string configName, private readonly Binding binding, private readonly EndpointAddress remoteAddress, private readonly InstanceContext callbackInstance, private OperationContext m_OperationContext, protected volatile bool manuallyClosed, private static readonly Type _ instanceType, above-mentioned field represents respectively to act on behalf of the context of title, bound object, agent address object, readjustment constant, the agent operation of Buffer object, configuration, manually bool value, the constant type object of closing.
In the present embodiment, two attributes in IClientBase, have been defined and are respectively used to obtain the value of cachedProxy value and configName.The method defining in this IClientBase mainly comprises: protected void CloseProxyBecauseOfException (), protected void AssureProxy (), protected virtual T CreateProxyInstance (); Said method represent respectively in the time makeing mistakes, close agency, when not acting on behalf of when available, create a new agency, create and act on behalf of constant.
To sum up, the constructed fuction of IClientBase comprises respectively: static WCFReusableClientProxy (), protected WCFReusableClientProxy (string configName), protected WCFReusableClientProxy (Binding binding, EndpointAddress remoteAddress): this (null, binding, remoteAddress), protected WCFReusableClientProxy (InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress).
In the present embodiment, WCFReusableFaultWrapperClientProxy<TGreatT. GreaT.GT is abstract class, has inherited WCFReusableClientProxy<T>.In such, define abnormal that empty method HandleFault<TFaultDetail> causes when makeing mistakes.Such constructed fuction comprises: protected WCFReusableFaultWrapperClientProxy (string configName): base (configName) { }; Protected WCFReusableFaultWrapperClientProxy (Binding binding, EndpointAddress remoteAddress): base (binding, remoteAddress) { }; Protected WCFReusableFaultWrapperClientProxy (InstanceContext callbackInstance, Binding binding, EndpointAddress remoteAddress): base (callbackInstance, binding, remoteAddress) { }.
In the present embodiment, WCFReusableFaultWrapperChannelProxy<TGreatT .GreaT.GT class is abstract class, inherits the GreaT.GT in WCFReusableFaultWrapperClientProxy<TGreatT..In such, there are two privately owned fields; comprise: private static readonly Dictionary<string; ChannelFactory<T>GreatT.GreaT .GT factoryCache=new Dictionary<string, ChannelFactory<T>GreatT.GreaT .GT (); Private ChannelFactory<T> factory; Above-mentioned field represents respectively buffer memory and the channel factory class of channel factory class; In such, can also comprise the method private void AssureFactory () of demo plant class.Four methods that such comprises base class, are respectively: protected override T CreateProxyInstance (); Public override ClientCredentials ClientCredentials; Public override ServiceEndpoint CurrentEndpoint; Public override ServiceEndpoint Endpoint; Public override IClientChannel InnerChannel.Interface and the method for such inner encapsulation comprise: AbstractClassBuilder<TInterfaceGreatT.GreaT .GT, ITypeBuilder, ProxyBuilder, WCFProxyClassBuilder<TInterfaceGreatT.GreaT .GT, WCFReusableFaultWrapperChannelProxyClassBuilderLEssT.LTs sT.LTTInterface>, WCFReusableProxyClassBuilder<TInterfaceGrea tT.GreaT.GT.
In the present embodiment, above-mentioned ITypeBuilder is interface, and inside has defined unique method and returned to Type type, and for translation type, this translation type is Type GenerateType (string className).
In the present embodiment, above-mentioned AbstractClassBuilder<TInterfaceGreatT.GreaT .GT is abstract class, inherit in interface ITypeBuilder, the privately owned field defining in such comprises: private const string ASSEMBLY_NAME=" WCF.DynamicClientProxy. ", private const MethodAttributes defaultMethodAttributes=MethodAttributes.Public | MethodAttributes.Virtual | MethodAttributes.Final | MethodAttributes.NewSlot, private static bool saveGeneratedAssembly, private AssemblyBuilder assemblyBuilder, private AssemblyName assemblyName, private ModuleBuilder moduleBuilder, private readonly Type baseClassType, private string generatedAssemblyName, private string generatedClassName, above-mentioned field represent respectively title, the method for procedure set attribute, arrange the procedure set of preserving conversion to hard disk, definition AssemblyBuilder object, definition AssemblyName object, definition ModuleBuilder object, defined read-only parent type, conversion program set name claims, changes class title.The method defining in this AbstractClassBuilder<TInterfaceGreatT.GreaT .GT class comprises: private void GenerateAssembly (), private Type GenerateTypeImplementation (), public void SaveGeneratedAssembly (), protected virtual void GenerateMethodImpl (TypeBuilder builder), protected virtual void GenerateMethodImpl (TypeBuilder builder, Type currentType), protected abstract void GenerateMethodImpl (MethodInfo method, Type[] parameterTypes, ILGenerator iLGenerator), protected bool IsVoidMethod (MethodInfo methodInfo), protected MethodInfo GetMethodFromBaseClass (string methodName), private void GenerateConstructor (TypeBuilder builder), said method represents respectively conversion program collection, changes the type of similar ClientBase<ITheInterface>, preserve the type change, read the interface of statement and for each statement shine upon a method, heavily loaded GenerateMethodImpl method, for the second time heavily loaded GenerateMethodImpl method, verify be whether return to the method for void type, acquisition methods, transformed structure function from base class.;
Therefore, such constructed fuction is protected AbstractClassBuilder (Type baseClassType) { this.baseClassType=baseClassType; , when initialization, be provided with the type of base class.
In the present embodiment, above-mentioned WCFReusableProxyClassBuilder<TInterfaceGrea tT.GreaT.GT inherits the .GT in class AbstractClassBuilder<TInterfaceGreatT.GreaT, and such has override the GenerateMethodImpl method of parent.Therefore, such constructed fuction is public WCFReusableProxyClassBuilder (): base (typeof (WCFReusableClientProxy<TInterfaceGreatT.Gre aT.GT)); Public WCFReusableProxyClassBuilder (Type baseClassType): base (baseClassType).
In the present embodiment; above-mentioned ProxyBuilder is agency's establishment and a static class of buffer memory; two read-only fields of static state that define in such are respectively: private static readonly IDictionary<string; Type> generatedTypes=new Dictionary<string, Type> (); Private static readonly object generateLock=new object (), this generatedTypes is for storing the dictionary of translation type, and generateLock is used for storing Subscriber Application Barring Lock.The method defining in such comprises: public static Type BuildType<TInterface, TBuilder> (); Where TInterface: class; Where TBuilder: ITypeBuilder, new (); Private static Type TryGetType (string className); Private static string GetTypeName<TType> (string classNameSuffix).
In the present embodiment, above-mentioned WCFProxyClassBuilder<TInterfaceGreatT.GreaT .GT inherits the .GT in class AbstractClassBuilder<TInterfaceGreatT.GreaT.In such, override the method GenerateMethodImpl of parent, for protected override void GenerateMethodImpl (MethodInfo method, Type[] parameterTypes, ILGenerator iLGenerator).Implementation procedure in method can comprise: first obtain the detailed attributes of ClientBase, then obtain the channel of base class, the buffering area of preparing to deposit element, with the access after facilitating, visits channel by interface, finally submits to and issues.
Therefore, such constructed fuction is: public WCFProxyClassBuilder (): base (typeof (ClientBase<TInterface>)) { }.
In the present embodiment, above-mentioned WCFReusableFaultWrapperChannelProxyClassBuilderLEssT.LTs sT.LTTInterface> inherits the nterface> in WCFReusableFaultWrapperProxyClassBuilder<TI, representative creates agency by ChannelFactory, and not passes through ClientBase.Therefore, in such, only constructed fuction is: public WCFReusableFaultWrapperChannelProxyClassBuilder (): base (typeof (WCFReusableFaultWrapperChannelProxy<TInterf ace>)) { }.
In the present embodiment, above-mentioned WCFReusableFaultWrapperProxyClassBuilder<TI nterface> inherits the tT.GreaT.GT in WCFReusableProxyClassBuilder<TInterfaceGrea, representative is inherited in WCFAbstractClientProxy.cs and has been created a class, in the time that passage makes a mistake, automatic Reconstruction is acted on behalf of for binding a WCF agency simultaneously.In such, override the GenerateMethodImpl method of parent; Buffer Pool mainly comprises: ProxyConnectionPool, WcfConnectionPoolHandler.Wherein, ProxyConnectionPool is can releasing object, has inherited IDisposable, this ProxyConnectionPool represents a connection pool, can obtain the dynamic proxy of all establishments, works as the operation of release dynamics agency when HttpConnection finishes or WCF has operated simultaneously, the field defining in this ProxyConnectionPool can comprise: private const string HttpContextPoolKey=" WCF.ProxyConnectionPool ", private readonly Dictionary<IClientBase, IClientBase> _ openProxies=new Dictionary<IClientBase, IClientBase> (), private readonly Dictionary<Type, IClientBase> _ openProxiesByType=new Dictionary<Type, IClientBase> (), private static bool _ enableConnectionPool, above-mentioned field represents respectively the agency of the keyword in http protocol pond, all agencies who opens, all types of opening, the bool value that keeps thread pool to connect.The method defining in this ProxyConnectionPool comprises: public static void Register<T> (T connection), internal static T RequestFromPool<T> () where T: class, static void clientBase_ProxyCreated (IClientBase proxy), private void InternalRegister (IClientBase clientBase), private void DisposeAllConnections (), said method can ensure no matter be HTTPContext request or WCF operation, all will only have a connection for each access.The attribute that can define in this ProxyConnectionPool comprises: public static ProxyConnectionPool Current, private static ProxyConnectionPool _ proxyConnectionPool; Above-mentioned attribute represents that respectively current thread pool connects the line city being connected with agency.This ProxyConnectionPool can also have the support of an inner classes, for class ProxyConnectionPoolExtension inherits in class IExtension<OperationContext>, for separating of with EXPANDING DISPLAY AREA OperationContext.This WcfConnectionPoolHandler inherits in class IHttpModule, and WCF connection pool is controlled in representative, registers the EndRequest event of HttpApplication, for when have new agency to connect, by connection current release when this type of initialization.WCF agency's dynamicizer is realized in WCFClientProxy<TInterface>, two methods having announced for creating dynamic proxy comprise: public static TInterface GetInstance (string uri, Binding binding, object callback), public static TInterface GetInstance (string uri, Binding binding), and the method for also having stated the establishment of auxiliary dynamic proxy in such, comprising: public static TInterface GetReusableFaultUnwrappingInstance (string configName), internal static Type GetInstanceType (), private static TInterface GetInstance (string configName), private static TInterface GetReusableInstance (string configName), the creation method of above-mentioned auxiliary dynamic proxy represents respectively and returns to one by the new example of special interface and the initialized Client Agent of particular profile, return to the class object of a type type, represent that one by fixed interface and particular profile initialization agency out, return to one by the new agency of special interface and particular profile initialization Client Agent out, this is also a simplified example of inheriting in ClientBase simultaneously, return to one by the new agency of special interface and particular profile initialization Client Agent out, this acts on behalf of in the time that needs are cleared up self simultaneously, can reuse.
Step 404 is to step 406, and resource management server is adjusted back to terminal server and sent corresponding response message by WCF, and sends this response message to client, and client is upgraded.Said process is similar to step 106 to the step 104 shown in Fig. 1, and this is no longer going to repeat them.
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment tetra-:
As shown in Figure 5, the method for managing resource that the embodiment of the present invention provides, difference is, when the client of mobile terminal is during to terminal server Transmit message, the method for managing resource that the present embodiment provides can also comprise:
Step 108, the client of mobile terminal is divided into little block file according to preset rules by file;
Step 109, adds respectively mark according to default marking convention to each fritter file, and sends the file after mark to terminal server;
Step 110, terminal server passes through WCF service call access resources management server, and sends the file after mark to resource management server;
Step 111, the file after mark is combined rear storage by resource management server.
In the present embodiment, upload for the ease of file, can first a file declustering be become to some fritters by said method, and send after mark.Wherein, while splitting file, both can carry out according to fixed size, and also can be split as fixed block, this is not restricted.
In the present embodiment, blocks of files entity (AttachmentData) is as follows:
Attribute is: the ID value of FileID region unit
FileName file name
The time that AddedTime file adds
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment five:
As shown in Figure 6, the method for managing resource that the embodiment of the present invention provides, the method is similar to the method shown in Fig. 1, and difference is, also comprises:
Step 112, terminal server sends prompting message to client;
Step 113, client shows according to prompting message.
In the present embodiment, can remind from trend client push by above-mentioned steps, this prompting can for task starts, end be reminded, schedule starts end prompting or prompting etc. is submitted in movable pressure to.
In the present embodiment, the base class ReminderCollection that first encapsulation messages is reminded.The field defining in this base class comprises the thread protected Thread m_Thread reminding for initiation message, protected readonly object m_lock=new object () that other threads disturb when locking, prevent that thread from carrying out the operation of certain prompting message.In the constructed fuction of this base class, can be by heartbeat event and prompting message event, to ensure that prompting message is after the set time, corresponding thread starts automatically, prompting message user's operation meeting initiating system internal memory or the state variation of database.The response mode of two of this base class event can be made as to empty method, so that the overriding of subclass.
In the present embodiment, the prompting classes such as RTasksCollection, RAgendasCollection, RActivityCollection can be inherited to above-mentioned base class, above-mentioned override respectively _ eventCenterRemindUpdate_EventHandler of prompting class method, add oneself prompting upgrade after operation logic.The prompting of this prompting class can comprise: the prompting of the beginning of task, the prompting that task finishes.The prompting of schedule be divided into schedule start remind, schedule finish remind.
In the present embodiment, can be in the time of each prompting, the response of monitoring client, if arbitrary client has response, nullifies the prompting of this message; If client, all without response, is being reminded the prompting message that enters next heartbeat mechanism after full three times.
In the present embodiment, can be by determining whether prompting by releasing object RemindRules.This attribute defining in can releasing object comprises: private readonly Dictionary<ObjectStatus; List<RemindTimeSpan>GreatT.Gr eaT.GT m_rules=new Dictionary<ObjectStatus, List<RemindTimeSpan>GreatT.Gr eaT.GT (), public long CustomerID { get; Private set; , private ObjectType m_ObjectType; Above-mentioned attribute represents respectively to deposit user's prompting rule, user's Id value, the type (task, schedule, activity, chat etc.) of reminder message.
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment six:
As shown in Figure 7, the method for managing resource that the embodiment of the present invention provides, similar to shown in Fig. 1 of the method, difference is that the method that the present embodiment provides can also comprise:
Step 114, terminal server arranges the lock and the time delay that send response message;
Step 115, when client arrives response message, sends feedback information to terminal server;
Step 116, if terminal server receives feedback information in delay time, discharges and locks and upgrade pre-stored intersection record;
Step 117, does not receive feedback information if terminal server exceedes delay time, discharges lock.
In the present embodiment, can when mutual, lock and time delay timeout be set at the client of mobile terminal and terminal server; Client, in the time receiving response message, sends feedback information to terminal server; When terminal server receives feedback information in delay time, discharge and lock and upgrade time delay record; Terminal server does not receive feedback information when exceeding delay time, directly discharges lock.By said process, can realize client data and upgrade timely and effectively.For example, in the time that terminal server sends reminder message, after client end response, terminal server can stop again reminding operation, and the relevant record of update notifying.
In the present embodiment, after terminal server PUSH message, do not wait for that client end response directly carries out subsequent operation, cannot acknowledge message whether be successfully pushed to the problem of client, the technical scheme that the present embodiment provides can adopt method synchronization mechanism.Can be by following three object implementation methods synchronous, comprising: MethodSynchronizationContext, MethodSyncResult, MethodSynchronizer.
In the present embodiment, above-mentioned MethodSynchronizer is the data entity of synchronization mechanism, mainly comprises following attribute: private bool m_IsTimeout, public object Result, public Exception Exception, public bool IsTimeout; Above-mentioned attribute represents respectively overtime bool value, the result of returning, abnormal information, overtime property value.Therefore, such constructed fuction is public MethodSyncResult (object result, bool isTimeoutReturn), public MethodSyncResult (Exception exp).
In the present embodiment, above-mentioned class MethodSynchronizationContext is used for safeguarding MethodSynchronizer set, in such, define set private readonly Dictionary<object, MethodSynchronizer> m_Buffer=new Dictionary<object, MethodSynchronizer> () is for depositing MethodSynchronizer; In order to ensure such uniqueness, defconstant Instance is: public static readonly MethodSynchronizationContext Instance=new MethodSynchronizationContext ().Index totally three methods of registering MethodSynchronizer object, cancellation MethodSynchronizer object, setting up MethodSynchronizer object can be provided in such.
In the present embodiment, class MethodSynchronizer is releasable object, for carry out the synchronous of implementation method by ManualResetEvent thread.The object defining in such comprises: public string GUID_MSObj; Private readonly ManualResetEvent m_ManualResetEvent=new ManualResetEvent (false); Private object m_returnObj=null; Private bool m_isDisposed=false; Above-mentioned object represents respectively: the unique identification GUID of class, read-only ManualResetEvent object, the object returning, judge whether discharge bool value.
In the present embodiment, in class, heavily loaded constructed fuction comprises: public MethodSynchronizer (): this (Guid.NewGuid () .ToString ()) { }; Protected MethodSynchronizer (string guid) { }.In such, method comprises: public void Dispose (); Public MethodSyncResult MethodCall (Delegate call); Public MethodSyncResult MethodCall (Delegate call, params object[] args); Public virtual bool MethodReturn (object returnObj); Public static bool MethodReturn (string guidKey, object returnObj); Protected virtual void onMethodCallReturn (MethodSyncResult result); Protected virtual void onDispose ().By said method, utilize the synchronizing function of ManualResetEvent object implementation method.
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment seven:
As shown in Figure 8, the method for managing resource that the embodiment of the present invention provides, similar to shown in Fig. 1 of the method, difference is, the method that the present embodiment provides, also comprises:
Step 118, sends to terminal server the username and password that user inputs by client;
Step 119, terminal server authenticates username and password, when authentication success, sends server address and the port after encrypting to client;
Step 120, client is encrypted server address and port after encrypting, obtains visit information.
Now, step 102 is specially, and the client of mobile terminal is passed through WCF service access terminal server according to visit information.
In the present embodiment, in order to improve the fail safe of server, server address and port can be put into authority by the mode of encrypting, and make client directly realize login by the mode of load authorization file.The key of encrypting can be DESCryptoServiceProvider des=new DESCryptoServiceProvider (); Des.Key=new byte[] { 0x01,0x02,0x03,0x05,0x05,0x06,0x07,0x08 }; Des.IV=new byte[] { 0x01,0x02,0x03,0x05,0x05,0x06,0x07,0x08 }.
In the present embodiment, service can be divided into mobile terminal service and the main service of resource management, when client login, can be by server address and the kernel service of port access mobile terminal, organizational information, current mobile terminal IP address, current mobile terminal name, user name, password will be delivered to mobile terminal service background by kernel service simultaneously, mate with the username and password of lane database, if it fails to match, point out user's user name password mistake, if the match is successful, first mobile terminal service will judge by the contrast of online user in internal memory whether user logs in by other mobile terminals, if judge, mobile terminal is not online, mobile terminal service will be carried out logon operation (by organizational information with the main service communication of resource management, current mobile terminal IP address, current mobile terminal name, user name is passed to the main service background of resource management, mate with the information of lane database, if the same login successfully and these user profile are kept in the internal memory of server, otherwise return to corresponding prompting failure information to client).If judge, mobile terminal is online, whether mobile terminal service end points out user to force to log in propelling movement online message on current mobile terminal, if user selects to force to log in, mobile terminal service end will be nullified online mobile terminal state so, and push force roll off the production line message to destination mobile terminal, then logon operation is carried out in the main service communication of mobile terminal service and resource management.If the non-selected pressure of user logs in, there is not any variation in server state, and client exits log-in interface.
In the present embodiment, the entity that user logs in is LoginResult, after user logs in successfully, has defined again entity LoginSucceed in system.Wherein in LoginResult entity, define attribute Result (for logging in result), be defined as virtual type, to facilitate overriding of subclass.Two of constructed fuction heavy duties, a printenv, another is using Result as parameter.LoginSucceed inherits LoginResult, overrides the Result of parent in entity, is set to return log in successfully, and other attribute comprises as follows: public string OnlineKey; Public long CustomerID; Public string DisplayName; Above-mentioned attribute is distinguished the online unique identification Key of representative of consumer, user's ID value, user's name.When user logs in successfully, by the LoginSucceed of branch entity, client will be preserved the information of entity by document form, recording user current state, and the related data in entity is got in convenient operation afterwards.In internal memory, also relevant data will be preserved simultaneously; In the time of user log off, authenticate by message header, according to user's ID value, the login of first nullifying resource management server place, after nullifying successfully, then carries out user log off operation in cellular service.Nullify when resource management service, only need call the method for the user log off that resource management service provides, and without any operation of carrying out resource management internal memory related management.In the time carrying out cellular service cancellation, first need the information in Update Table storehouse, user's state is made as to 0, the data in internal memory also will be revised simultaneously, according to user's ID, in CMSContext, will nullify CustomerMemoryState object.After user log off, his information will not preserved in internal memory.In the time that user logins again, in internal memory by recovering his relevant information, such as pending task schedule, current state (comprising logging status, current task, current schedule, current active).Obtaining of user's head portrait, is mainly the method by calling resource management service, obtains the byte stream of image by the method for resource management, then passes to client.
In the present embodiment, in order to carry out compatibility with resource management service, cellular service end provides the address of all services of Gains resources management service end, in the time that just starting, client just need call the method, the address of all services is kept to client by document form, with the call operation after facilitating, complete correlation function.User can obtain according to employee's ID the current state of relevant employee, while carrying out this operation, first must carry out the certification of authority, and subordinate cannot obtain higher level and obtain current state.Whether there is authority acquiring user's current state, verify according to the tactful system in SSEIS completely.
The method for managing resource that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment eight:
As shown in Figure 9, the resource management client that the embodiment of the present invention provides, comprising:
Information receiving module 901, need to use resource management service time, receives resource management information for user;
Access modules 902, for passing through WCF service call access terminal server, and sends described resource management information to described terminal server, makes described terminal server obtain corresponding response message from resource management server;
Response receiver module 903, for receiving described terminal server by the response message of message push;
Update module 904, for upgrading according to described response message.
In the present embodiment, realize the process of resource management by information receiving module 901, access modules 902, response receiver module 903 and update module 904, what provide to the embodiment of the present invention one is similar, and this is no longer going to repeat them.
Further, as shown in figure 10, the resource management client that the present embodiment provides, also comprises:
Remind receiver module 905, the prompting message sending according to heartbeat mechanism for receiving terminal server.
In the present embodiment, terminal server can send prompting message to client according to heartbeat mechanism, the prompting message that resource management client can be sent according to heartbeat mechanism by prompting receiver module 905 receiving terminal servers.Terminal server sends the process of prompting message, and what provide to the embodiment of the present invention two is similar, and this is no longer going to repeat them.
Further, the resource management client that the present embodiment provides, access modules, can also be specifically for adopting dynamic proxy by WCF service call access terminal server.
In the present embodiment, resource management client can adopt dynamic proxy to pass through WCF service call access terminal server; Terminal server also can adopt dynamic proxy to pass through WCF service call access resources management server.It is similar that the process of employing dynamic proxy provides to the embodiment of the present invention three, and this is no longer going to repeat them.
Further, as shown in figure 11, resource management client in the present embodiment, during to terminal server Transmit message, can also comprise:
Split module 906, for described file being divided into little block file according to preset rules;
Mark sending module 907, for according to default marking convention, each fritter file being added respectively to mark, and sends the file after mark to described terminal server, makes resource management server combine rear storage according to the file after mark.
In the present embodiment, realize the process of resource management server combination storage by splitting module 906 and mark sending module 907, what provide to the embodiment of the present invention four is similar, and this is no longer going to repeat them.
Further, as shown in figure 12, the resource management client that the present embodiment provides, can also comprise:
Message transmission module 908, the prompting message sending for receiving described terminal server;
Display module 909, for showing according to described prompting message.
In the present embodiment, the process of reminding by message transmission module 908 and display module 909 display messages, what provide to the embodiment of the present invention five is similar, and this is no longer going to repeat them.
Further, as shown in figure 13, the resource management client that the present embodiment provides, can also comprise:
Login sending module 910, for send the username and password of user's input to terminal server, authenticates described terminal server, when authentication success, returns to server address and port after encryption;
Deciphering module 911, is decrypted for the server address to after described encryption and port, obtains visit information;
Described access modules 902, specifically for passing through WCF service access terminal server according to described visit information.
In the present embodiment, by the mode of said process access terminal server, what provide to the embodiment of the present invention seven is similar, and this is no longer going to repeat them.
The resource management client that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
embodiment nine:
As shown in figure 14, the resource management system that the embodiment of the present invention provides, comprising:
Resource management client 1401, need to use resource management service time, receives resource management information for user; By WCF service call access terminal server, and send described resource management information to described terminal server; Upgrade according to response message;
Described terminal server 1402, the described resource management information sending for receiving described client; By WCF service call access resources management server, and send described resource management information to described resource management server; Send described response message by message push to described client;
Described resource management server 1403, for being adjusted back to described terminal server and sent corresponding response message by WCF.
Realize the process of resource management by resource management client 1401, terminal server 1402 and resource management server 1403, with the similar process that the embodiment of the present invention one to seven provides, this is no longer going to repeat them.
The resource management system that the embodiment of the present invention provides, can be in the client input resource management information of mobile terminal, and mutual by with terminal server and resource management server, realizes resource management.The technical scheme that the embodiment of the present invention provides, owing to realizing resource management by mobile terminal, has solved prior art and can not realize at any time and to link up or the operation such as the report of working condition, is not easy to the problem that user uses.
Method for managing resource, client and system that the embodiment of the present invention provides, can be applied on the mobile terminals such as mobile phone.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited to this, any be familiar with those skilled in the art the present invention disclose technical scope in; can expect easily changing or replacing, within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (15)

1. a method for managing resource, is characterized in that, comprising:
When user need to use resource management service, by the client resource management information of mobile terminal;
The client of described mobile terminal is passed through WCF service call access terminal server, and sends described resource management information to described terminal server;
Described terminal server passes through WCF service call access resources management server, and sends described resource management information to described resource management server;
Described resource management server is adjusted back to described terminal server and is sent corresponding response message by WCF;
Described terminal server sends described response message by message push to described client;
Described client is upgraded according to described response message.
2. method for managing resource according to claim 1, is characterized in that, also comprises:
Described terminal server sends prompting message according to heartbeat mechanism to described client.
3. method for managing resource according to claim 1, is characterized in that,
The client of described mobile terminal, by WCF service call access terminal server, comprising: the customer end adopted dynamic proxy of described mobile terminal is by WCF service call access terminal server;
Described terminal server, by WCF service call access resources management server, comprising: described terminal server adopts dynamic proxy by WCF service call access resources management server.
4. method for managing resource according to claim 1, is characterized in that,
Described resource management server adopts serverhost to dispose;
Described terminal server by IIS load, with described resource management server integrated.
5. method for managing resource according to claim 1, is characterized in that, the client of described mobile terminal is during to described terminal server Transmit message, and described method also comprises:
The client of described mobile terminal is divided into little block file according to preset rules by described file;
According to default marking convention, each fritter file is added respectively to mark, and send the file after mark to described terminal server;
Described terminal server passes through WCF service call access resources management server, and sends the file after described mark to described resource management server;
The file after described mark is combined rear storage by described resource management server.
6. method for managing resource according to claim 1, is characterized in that, also comprises:
Described terminal server sends prompting message to described client;
Described client shows according to described prompting message.
7. method for managing resource according to claim 1, is characterized in that, described method also comprises:
Described terminal server arranges the lock and the time delay that send described response message;
When described client arrives described response message, send feedback information to described terminal server;
If described terminal server receives described feedback information in delay time, discharge and lock and upgrade pre-stored intersection record;
Do not receive described feedback information if described terminal server exceedes delay time, discharge lock.
8. method for managing resource according to claim 1, is characterized in that, described method also comprises:
Send the username and password of user's input to terminal server by described client;
Described terminal server authenticates described username and password, when authentication success, sends server address and the port after encrypting to described client;
Server address and the port of described client after to described encryption is decrypted, and obtains visit information;
The client of described mobile terminal, by WCF service call access terminal server, comprising: the client of described mobile terminal is passed through WCF service access terminal server according to described visit information.
9. a resource management client, is characterized in that, comprising:
Information receiving module, need to use resource management service time, receives resource management information for user;
Access modules, for passing through WCF service call access terminal server, and sends described resource management information to described terminal server, makes described terminal server obtain corresponding response message from resource management server;
Response receiver module, for receiving described terminal server by the response message of message push;
Update module, for upgrading according to described response message.
10. resource management client according to claim 9, is characterized in that, also comprises:
Remind receiver module, the prompting message sending according to heartbeat mechanism for receiving terminal server.
11. resource management clients according to claim 9, is characterized in that,
Described access modules, specifically for adopting dynamic proxy by WCF service call access terminal server.
12. resource management clients according to claim 9, is characterized in that, during to terminal server Transmit message, described device also comprises:
Split module, for described file being divided into little block file according to preset rules;
Mark sending module, for according to default marking convention, each fritter file being added respectively to mark, and sends the file after mark to described terminal server, resource management server can be turned round and look at according to the file after mark and combine rear storage.
13. resource management clients according to claim 9, is characterized in that, also comprise:
Message transmission module, the prompting message sending for receiving described terminal server;
Display module, for showing according to described prompting message.
14. resource management clients according to claim 9, is characterized in that, also comprise:
Login sending module, for send the username and password of user's input to terminal server, authenticates described terminal server, when authentication success, returns to server address and port after encryption;
Deciphering module, is decrypted for the server address to after described encryption and port, obtains visit information;
Described access modules, specifically for passing through WCF service access terminal server according to described visit information.
15. 1 kinds of resource management systems, is characterized in that, comprising:
Resource management client, need to use resource management service time, receives resource management information for user; By WCF service call access terminal server, and send described resource management information to described terminal server; Upgrade according to response message;
Described terminal server, the described resource management information sending for receiving described client; By WCF service call access resources management server, and send described resource management information to described resource management server; Send described response message by message push to described client;
Described resource management server, for being adjusted back to described terminal server and sent corresponding response message by WCF.
CN201210531417.1A 2012-12-11 2012-12-11 Resource management method, client and system Pending CN103873343A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210531417.1A CN103873343A (en) 2012-12-11 2012-12-11 Resource management method, client and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210531417.1A CN103873343A (en) 2012-12-11 2012-12-11 Resource management method, client and system

Publications (1)

Publication Number Publication Date
CN103873343A true CN103873343A (en) 2014-06-18

Family

ID=50911485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210531417.1A Pending CN103873343A (en) 2012-12-11 2012-12-11 Resource management method, client and system

Country Status (1)

Country Link
CN (1) CN103873343A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486382A (en) * 2014-11-27 2015-04-01 珠海格力电器股份有限公司 Method and system for creating WCF (Windows Communication Foundation) duplex communication service
CN105468506A (en) * 2014-09-02 2016-04-06 腾讯科技(深圳)有限公司 Application management method, device and terminal
CN113050949A (en) * 2021-03-23 2021-06-29 上海万向区块链股份公司 JAVA-based method and system for preventing data confusion after execution of parent-child dependence JOB

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176427A1 (en) * 2001-05-28 2002-11-28 Mitsuhiro Noda Gateway apparatus with LAC function
CN101771928A (en) * 2008-12-30 2010-07-07 中国移动通信集团公司 Method and system and proxy server for Webpage transmitting
CN101848437A (en) * 2010-04-14 2010-09-29 北京神州泰岳软件股份有限公司 Data requesting method of mobile phone browser based on USSD

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020176427A1 (en) * 2001-05-28 2002-11-28 Mitsuhiro Noda Gateway apparatus with LAC function
CN101771928A (en) * 2008-12-30 2010-07-07 中国移动通信集团公司 Method and system and proxy server for Webpage transmitting
CN101848437A (en) * 2010-04-14 2010-09-29 北京神州泰岳软件股份有限公司 Data requesting method of mobile phone browser based on USSD

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468506A (en) * 2014-09-02 2016-04-06 腾讯科技(深圳)有限公司 Application management method, device and terminal
CN104486382A (en) * 2014-11-27 2015-04-01 珠海格力电器股份有限公司 Method and system for creating WCF (Windows Communication Foundation) duplex communication service
CN104486382B (en) * 2014-11-27 2017-09-22 珠海格力电器股份有限公司 The creation method and system of a kind of WCF duplex communications services
CN113050949A (en) * 2021-03-23 2021-06-29 上海万向区块链股份公司 JAVA-based method and system for preventing data confusion after execution of parent-child dependence JOB

Similar Documents

Publication Publication Date Title
US20220172149A1 (en) System of standardized api interpretation for inter application communication
EP3422269A1 (en) Centralized consent management
US9589250B2 (en) System and method for asset registration workflows utilizing an eventing infrastructure in a metadata repository
US20090082051A1 (en) Mobile group data distribution
US11310065B2 (en) Methods and apparatuses for determining a user status avatar for rendering within a group-based communication interface
CN106651073A (en) Task distribution management system and method thereof
US11888908B2 (en) Integrated workspace on a communication platform
CN108492003A (en) The system of the processing automated process of distribution optimization
US11757811B2 (en) System and method for processing user messages among organizations
US20150058927A1 (en) Second screen mediation
CN103873343A (en) Resource management method, client and system
CN101258482B (en) Availability data service
US20160379171A1 (en) Crowd-source calendar sharing
US20190005597A1 (en) Incident response systems and methods
US11632375B2 (en) Autonomous data source discovery
US20140304221A1 (en) Collaboration computer system
Chen Web service based mobile worker supporting system for construction industry applications
US11659021B2 (en) Asynchronous distributed modular function calling
KR20140072362A (en) Method and system for providing closed type group messaging services
Karastoyanova et al. Service-based integration of human users in workflow-driven scientific experiments
KR102653486B1 (en) Method and system for managing schedule
CN114338059A (en) Application opening method, device, terminal and storage medium
CN116501221A (en) Task processing method, device, equipment and storage medium
CN117632395A (en) Workflow processing method, device, apparatus, storage medium and program product
ADNAN MAIL MANAGEMENT SYSTEM

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20140618