Simias::Server::Service Class Reference

Class the handles presence as a service. More...

Inheritance diagram for Simias::Server::Service:

Inheritance graph
[legend]
Collaboration diagram for Simias::Server::Service:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Service ()
 Initializes a new instance of the object class.
void Start ()
 Starts the thread service.
void Resume ()
 Resumes a paused service.
void ExtractMemberPoliciesOnMaster ()
 It removes All User's POBox . Before that it extracts all the policy related information from User's POBox and store them as part of member object. This is used in cases where server is upgraded from a lower version to 3.7 . Even if server is not upgraded, whenever server is restarted, this code will remove POBox for all users. It does not search those policies which were not present in earlier version. e.g sharing.
void ExtractMemberPolicies (string domainID, Member member, ShallowNode sn, bool OnMaster)
 Extracts all the member policies from POBox and stores them as part of member object on master . No aggregation is done.
bool CommitOnMaster (string domainID, Member member, ShallowNode sn)
 Commits the member object on master server, will be called by slave.
void GetRuleForPolicyID (POBox.POBox poBox, string PolicyID, ref Member member)
 Given an poBox object , it will return the rule for a PolicyID only one rule is returned.
int GetValueForPolicyID (POBox.POBox poBox, string PolicyID, string PolicyTag)
 Given an poBox object , it will return the value for a PolicyID , and PolicyTag . Only one value is returned.
void Pause ()
 Pauses a service's execution.
int Custom (int message, string data)
 Custom.
void Stop ()
 Stops the service from executing.


Detailed Description

Class the handles presence as a service.


Constructor & Destructor Documentation

Simias::Server::Service::Service (  )  [inline]

Initializes a new instance of the object class.


Member Function Documentation

void Simias::Server::Service::Start (  )  [inline]

Starts the thread service.

Implements Simias::Service::IThreadService.

void Simias::Server::Service::Resume (  )  [inline]

Resumes a paused service.

Implements Simias::Service::IThreadService.

void Simias::Server::Service::ExtractMemberPoliciesOnMaster (  )  [inline]

It removes All User's POBox . Before that it extracts all the policy related information from User's POBox and store them as part of member object. This is used in cases where server is upgraded from a lower version to 3.7 . Even if server is not upgraded, whenever server is restarted, this code will remove POBox for all users. It does not search those policies which were not present in earlier version. e.g sharing.

void Simias::Server::Service::ExtractMemberPolicies ( string  domainID,
Member  member,
ShallowNode  sn,
bool  OnMaster 
) [inline]

Extracts all the member policies from POBox and stores them as part of member object on master . No aggregation is done.

bool Simias::Server::Service::CommitOnMaster ( string  domainID,
Member  member,
ShallowNode  sn 
) [inline]

Commits the member object on master server, will be called by slave.

Parameters:
domainID domain id
member member object to be committed
sn shallow node object, but currently unused
Returns:
true if success

void Simias::Server::Service::GetRuleForPolicyID ( POBox.POBox  poBox,
string  PolicyID,
ref Member  member 
) [inline]

Given an poBox object , it will return the rule for a PolicyID only one rule is returned.

int Simias::Server::Service::GetValueForPolicyID ( POBox.POBox  poBox,
string  PolicyID,
string  PolicyTag 
) [inline]

Given an poBox object , it will return the value for a PolicyID , and PolicyTag . Only one value is returned.

void Simias::Server::Service::Pause (  )  [inline]

Pauses a service's execution.

Implements Simias::Service::IThreadService.

int Simias::Server::Service::Custom ( int  message,
string  data 
) [inline]

Custom.

Parameters:
message 
data 

Implements Simias::Service::IThreadService.

void Simias::Server::Service::Stop (  )  [inline]

Stops the service from executing.

Implements Simias::Service::IThreadService.


The documentation for this class was generated from the following file:

Generated on Wed Apr 8 14:51:35 2009 for simias by  doxygen 1.5.6