This document is archived and information here might be outdated.  Recommended version.


ServerDirectoryInfo Class (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (Server)  

ServerDirectoryInfo Class

The ServerDirectoryInfo object which provides access to properties of a server output directory.

ServerDirectoryInfo is a non-creatable object. References to non-creatable objects must be obtained through other objects.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Supported Platforms

Windows, Solaris, Linux

Interfaces

Interfaces Description
IServerDirectoryInfo Provides access to properties of a server directory.
IServerDirectoryInfo2 Provides access to properties of a server directory.

Remarks

A ServerDirectory is a location on a file system that the GIS server is configured to clean up files it writes. By definitition, a server directory can be written to by all container machines.

The GIS server hosts and manages server objects, and other ArcObjects for use in applicaitons. In many cases, the use of those objects requires writing output to files. For example, when a map server object draws a map, it writes images to disk on the server machine. Other appllications may write their own data, for example an application that checks out data from a geodatabase may write the check out personal geodatabase to disk on the server.

Typically, these files are transient and need only be available to the applicaiton for a short time, for example, the time for the application to draw the map, or the time required to download the check out database. As applicaitons do their work and write out data, thes files can accumulate quickly. The GIS server will automatically clean up its output if that output is written to a server directory.

Files in a server directory can be cleaned based on file age, or based on when the file was last accessed. The maximum file age or time since last accessed is a property of a server directory. If the ClenaingMode is esriDCAbsolute, then all files created by the GIS server that are older than the maximum age are automatically cleaned up by the GIS server. If the ClenaingMode is esriDCSliding, then all files created by the GIS server that have not been access for a duration defined by maximum age are automatically cleaned up by the GIS server.

Users and developers who are not administrators also need access to the list of server server directories and the set of their properties that are necessary for programming applications that use them as locations to write output. Users that are members of the agsusers user group, but are not members of the agsadmin user group can get information about server directories using the GetServerDirectoryInfos method on IServerObjectManager to get the IServerDirectoryInfo interface.

See Also

IAGSServerConnectionAdmin Interface | IAGSServerConnectionName Interface | IAGSServerObjectName Interface | IAGSServerConnectionFactory Interface | IAGSServerObject Interface | IAGSServerConnection Interface | AGSServerConnectionFactory Class | AGSServerConnectionName Class | AGSServerConnection Class | IAGSEnumServerObjectName Interface | AGSServerObjectName Class | GISServerConnection Class | IServerObjectManager Interface | IServerObjectTypeInfo Interface | IEnumServerObjectConfigurationInfo Interface | IServerObject Interface | IServerObjectAdmin Interface | IGISServerConnection Interface | IServerObjectConfigurationInfo Interface | IEnumServerObjectTypeInfo Interface | IServerObjectType Interface | IEnumServerObjectConfiguration Interface | IEnumServerObjectType Interface | IEnumServerMachine Interface | IServerContext Interface | IServerMachine Interface | IServerObjectConfiguration Interface | ServerContext Class | ServerDirectory Class | ServerDirectoryInfo Class | ServerMachine Class | ServerObject Class | ServerObjectAdmin Class | IEnumServerDirectory Interface | ServerObjectConfiguration Class | ServerObjectConfigurationInfo Class | ServerObjectConfigurationStatus Class | ServerObjectManager Class | ServerObjectTypeInfo Class | ServerObjectType Class | ServerObjectAdmin Class | ServerDirectoryInfo Class