A repository is a collection
of related metadata objects. Each repository is registered in the
SAS Repository Manager, which is also a SAS Metadata Repository. The
SAS Metadata Server can access only those repositories that are registered
in the SAS Repository Manager. There is one SAS Repository Manager
for a SAS Metadata Server.
By default, the GetRepositories
method gets
Identifying Metadata, the description, and the default namespace
for the SAS Repository Manager and each repository that is registered
in the SAS Repository Manager.
When issued with the
OMI_ALL (1) flag set, the GetRepositories method also gets the following
attributes for each repository:
the pathname of the
physical directory where the repository is located.
RepositoryFormat= “
number”
a numeric double value
indicating the format level of the repository. (For example, 11.0.)
RepositoryType= “FOUNDATION | CUSTOM | PROJECT”
Access= “OMS_FULL | OMS_READONLY | OMS_ADMIN | OMS_OFFLINE”
a descriptor that indicates
the access mode that the administrator set for the repository.
Specifies the repository
is available to all users for Read and Write access.
Specifies the repository
is only to be read.
Specifies the repository
is available only to users who have administrative status on the SAS
Metadata Server.
Specifies the repository
is unavailable to all users.
PauseState= “
empty-string | ADMIN | ADMIN(READONLY) | OFFLINE”
Reports a repository
state change as the result of a server pause. This attribute is set
by the Pause method and cleared by the Resume method. The value is
usually the server Pause value (ADMIN or OFFLINE), unless the repository
is registered with a less restrictive Access value.
Indicates the SAS Metadata
Server is online. It has not been paused by the Pause method. The
repository can be accessed in its intended access mode.
Indicates this repository
has been downgraded to an ADMIN state by a server pause. Only users
who have administrative status on the server can read and write to
this repository.
Indicates this repository
has been downgraded to an ADMIN state by a server pause. Its intended
state is READONLY. It is available for reading only to users who have
administrative status on the server.
Indicates the repository
is not available to any users because the SAS Metadata Server has
been paused to an OFFLINE state or the repository is registered with
Access="OMS_OFFLINE".
CurrentAccess= “READONLY | OFFLINE”
The SAS Metadata Server
manages two copies of repositories: a memory version and a disk version.
The memory version enables updates to be made available to clients
before the disk version is updated. This attribute is set by the SAS
Metadata Server on the memory version of the repository when the repository
cannot be updated by the server because the repository has an incompatible
repository format or has encountered an I/O error. This attribute
is not stored in the disk version of the repository. When a problem
is encountered, valid values are READONLY and OFFLINE. When the SAS
Metadata Server can access a repository as intended, GetRepositories
returns a CurrentAccess value that matches the repository's Access
attribute.
The additional attributes
that are retrieved by OMI_ALL are available in the standard interface
and the DoRequest method when the method is issued on a SAS Metadata
Server that is ONLINE or paused to an ADMIN state. A GetRepositories
method that is issued on a SAS Metadata Server that is paused to an
OFFLINE state returns an error, unless the method is issued in the
standard interface.