SharePoint learning notes-architecture series-Server Object Model of SharePoint 3. Service hierarchy

Source: Internet
Author: User
Tags cfsi

We have looked at the object model of the Sharepoint Server.Physical objectLevel(Physical objects hierarchy) and object contentLevel(Content hierarchy) related classes,Here let's take a look at the service hierarchy, including the representationWeb service, Windows Service, other types of services (icomingemailservice, usageservice, outboundmailservice), service instances, and the configured field range instance (CFCI) of the service ).

Related class diagrams of the Service hierarchy:

 

Spservice class

The SharePoint foundation service is represented by a Class inherited from spservice.

There are already several such classes in the object model. You can create new classes from the spservice and some of its derived classes. These classes provide related members for you to obtain the services they are currently running.

The service inheritance tree (solid border indicates a sealed class), for example:

In addition to the content inherited from sppersistedobject, spservice also provides members to obtain information about the job being executed by the Service. Each derived type provides additional functions related to its specific type.

 

Spserviceapplication class

If a service conforms to the service application of SharePointProgramAccording to the Framework (Service Application Framework) specification, the spservice object has the applications attribute to store CFSI of all services running in the server farm (configured field range instantiation ).

The CFSI of a service is represented by an object of A Class inherited from the spserviceapplication class. The object model already has some classes derived from spserviceapplication, And you can assign new classes from spserviceapplication and Its Derived classes.

The CFSI inheritance tree (solid border indicates the sealing class) is as follows:

 

In addition to the content inherited from sppersistedupgradableobject, its members mainly store the settings for CFSI settings and access permissions.

Spserviceinstance attributes

Each spservice object has an instances attribute, which stores all service instances running on each server in the server farm.

These instances that carry a specific CFSI are stored in the serviceinstances attribute of the spserviceapplication object that represents CFSI. Each CFSI instance running on any server cannot exceed one, but a given service can have multiple CFSI instances and can run on the same server.

In addition, a given CFSI (and a given service) can run on multiple servers. In this case, each server has its own actual CFSI instance (a running process ).

If the service does not have CFSI, it still has instances on each running server, but there cannot be more than one instance on the given server.

Each actual instance can be regarded as both a service instance and a CFSI instance of the service (if any CFSI is available ).

Each instance is represented by an object of A Class derived from spserviceinstance.

The inheritance tree of spserviceinstance is almost completely parallel to that of spservice.

The service instance inheritance tree (solid border indicates the sealing class), for example:

In addition to the content inherited from sppersistedobject, spserviceinstance also provides members to start and stop services on the server. Each derived type provides additional functions related to its specific type.

 

Sploadbalancerserviceinstance class

The sploadbalancerserviceinstance class is not used by the Server Load balancer software or hardware. It does not represent the instance of application discovery and Load balancer service.

It is a base class that developers can use with spwindowsservice to develop Load Balancing document conversion services, such as services that enable end users to view PDF documents in HTML format.

Displays the relationship between the main base classes of the service application framework of SharePoint Foundation.

The solid arrow points from a parent class to the subclass type saved in the parent class property set.

The dotted arrow indicates that the spserviceinstance class represents a process running on the server. In a sense, this process "instantiates" services in the server farm scope represented by the spservice class.

 

The objects listed below are saved in the configuration database because they all inherit from the sppersistedobject class:

    • spservice
    • spserviceapplication
    • spserviceinstance
    • spserviceproxy
    • spserviceapplicationproxy

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.