Package com.sas.metadata.remote
Interface MdOMRConnection
- All Superinterfaces:
Remote
@SASScope("ALL")
public interface MdOMRConnection
extends Remote
Used to manage connections the the SAS/Open Metadata Repository.
MdOMRConnection is used to make connections to servers and to hold the IOMI handle for I/O operations in the metadata classes. The MdOMRConnection instance is created when the factory is first initialized.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringStatic string for the hostname key stored in the credential mapstatic final StringStatic string for the password key stored in the credential mapstatic final StringStatic string for the port key stored in the credential mapstatic final StringStatic string for the security package list stored in the credential mapstatic final intThe metadata server connection is brokenstatic final intThe metadata server is working properlystatic final intThe metadata server is pausedstatic final StringStatic string for the SPN stored in the credential mapstatic final StringStatic string for the username key stored in the credential map -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseIMetadataTransportConnection(com.sas.meta.SASOMI.IMetadataTransport transportConnection) This method does nothing.voidcloseIOMConnection(com.sas.iom.SAS.IWorkspace workspace) This method does nothing.voidClose our handle to the IOMI interface()voidcloseISecurityAdminConnection(com.sas.meta.SASOMI.ISecurityAdmin secAdminConnection) This method does nothing.voidcloseISecurityConnection(com.sas.meta.SASOMI.ISecurity iSecurity) This method does nothing.voidcloseIServerConnection(com.sas.meta.SASOMI.IServer iServer) This method does nothing.voidImmediately closes the connection to the SAS Metadata Server which has been set as the CMRHandle.voiddisconnectIMetadataTransportConnection(com.sas.meta.SASOMI.IMetadataTransport transportConnection) Immediately disconnects a connection to a SAS Metadata Server.voiddisconnectIOMConnection(com.sas.iom.SAS.IWorkspace workspace) Immediately disconnects a connection to a SAS Workspace Server.voiddisconnectISecurityAdminConnection(com.sas.meta.SASOMI.ISecurityAdmin secAdminConnection) Immediately disconnects a connection to a SAS Metadata Server.voiddisconnectISecurityConnection(com.sas.meta.SASOMI.ISecurity iSecurity) Immediately disconnects a connection to a SAS Metadata Server.voiddisconnectIServerConnection(com.sas.meta.SASOMI.IServer iServer) Immediately disconnects a connection to a SAS Metadata Server.voiddisconnectOMRConnection(com.sas.meta.SASOMI.IOMI iOMI) Immediately disconnects a connection to a SAS Metadata Server.com.sas.meta.SASOMI.IOMIReturns the IOMI connection for this connection object.PropertiesGets certain properties of the CMR connection.Simple accessor for the singleton query engine object.com.sas.services.connection.ConnectionResourcesGet resources to be used during connection to IOM servers.Map<String, String> Returns the map of credentials for OMR connection, if map key size is 0, then there have been no successfull connections.StringDeprecated.Deprecated as of 9.2.getIdentityOfUserConnected(MdStore store, String reposID) Returns the Identity object for the user currently connected to the server.com.sas.iom.SAS.IWorkspaceGet the first available IOM workspace handle.com.sas.iom.SAS.IWorkspacegetIOMHandle(int index) Get the specified IOM workspace handle.LevelGet the level logging is set to for connectionsStringReturns a user-defined comment set by the administrator when the server was initially paused.intReturns the current platform version number.intgetPlatformVersion(com.sas.meta.SASOMI.IServer serverConn) Returns the current platform version number.StringGets the server's model version information as a string.StringgetServerModelVersion(com.sas.meta.SASOMI.IServer serverConn) Gets the server's model version information as a string.intReturns the status of the metadata server.intgetServerStatus(com.sas.meta.SASOMI.IServer serverConn) Returns the status of the metadata server.DocumentgetServerStatus(String request) Returns a server status request as a parsed XML document.StringgetServerVersion(com.sas.meta.SASOMI.IServer serverConn) Deprecated.Deprecated as of 9.2.intReturn the compatibility of the server to the client. 1 server is greater than client, -1 client is greater than server, and 0 is a matching version between client and server.intgetVersionCompatibility(com.sas.meta.SASOMI.IServer serverConn) Return the compatibility of the server to the client. 1 server is greater than client, -1 client is greater than server, and 0 is a matching version between client and server.booleanReturns true if the server is currently paused, either in an offline or admin state.com.sas.meta.SASOMI.IMetadataTransportmakeIMetadataTransportConnection(com.sas.meta.SASOMI.IOMI OMRConnection) Narrows a connection to a SAS Metadata Server to theIMetadataTransportinterface.com.sas.meta.SASOMI.IMetadataTransportmakeIMetadataTransportConnection(String Host, String Port, String Username, String Password) Makes a connection to the specified SAS Metadata Server and narrows it to theIMetadataTransportinterface.com.sas.meta.SASOMI.IMetadataTransportmakeIMetadataTransportConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) Makes a connection to the specified SAS Metadata Server and narrows it to theIMetadataTransportinterface.com.sas.iom.SAS.IWorkspacemakeIOMConnection(String Host, String Port, String Username, String Password) Makes a connection to the specified SAS Workspace Server.com.sas.iom.SAS.IWorkspacemakeIOMConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) Makes a connection to the specified SAS Workspace Server.com.sas.meta.SASOMI.ISecurityAdminmakeISecurityAdminConnection(String Host, String Port, String Username, String Password) Makes a connection to the specified SAS Metadata Server and narrows it to theISecurityAdmininterface.com.sas.meta.SASOMI.ISecurityAdminMakeISecurityAdminConnection(com.sas.meta.SASOMI.IOMI OMRConnection) Narrows a connection to a SAS Metadata Server to theISecurityAdmininterface.com.sas.meta.SASOMI.ISecurityAdminmakeISecurityAdminConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) Makes a connection to the specified SAS Metadata Server and narrows it to theISecurityinterface.com.sas.meta.SASOMI.ISecurity_1_1makeISecurityConnection(String Host, String Port, String Username, String Password) Makes a connection to the specified SAS Metadata Server and narrows it to theISecurity_1_1interface.com.sas.meta.SASOMI.ISecurity_1_1Narrows the internal connection to a SAS Metadata Server to theISecurity_1_1interface.com.sas.meta.SASOMI.ISecurity_1_1MakeISecurityConnection(com.sas.meta.SASOMI.IOMI OMRConnection) Narrows a connection to a SAS Metadata Server to theISecurity_1_1interface.com.sas.meta.SASOMI.ISecurity_1_1makeISecurityConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) Makes a connection to the specified SAS Metadata Server and narrows it to theISecurityinterface.com.sas.meta.SASOMI.IServermakeIServerConnection(String Host, String Port, String Username, String Password) Makes a connection to the specified SAS Metadata Server and narrows it to theIServerinterface.com.sas.meta.SASOMI.IServerNarrows a connection to a SAS Metadata Server to theIServerinterface.com.sas.meta.SASOMI.IServerMakeIServerConnection(com.sas.meta.SASOMI.IOMI OMRConnection) Narrows a connection to a SAS Metadata Server to theIServerinterface.com.sas.meta.SASOMI.IServermakeIServerConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) Makes a connection to the specified SAS Metadata Server and narrows it to theIServerinterface.com.sas.meta.SASOMI.IOMImakeOMRConnection(String host, String port, String user, String password) Connect to the metadata server.com.sas.meta.SASOMI.IOMImakeOMRConnectionUsingSecurityPackage(String host, String port, String securityPackageList, String spn) Connect to the metadata server using a security package such as Kerberos.voidsetCMRHandle(com.sas.meta.SASOMI.IOMI iomi) Set IOMI connection to be used by this connection object.voidsetConnectionResources(com.sas.services.connection.ConnectionResources cxResources) Set resources to be used during connection to IOM servers.voidsetIOMHandle(com.sas.iom.SAS.IWorkspace work) Add the IOM workspace handle to the IOM handle array.voidsetIOMHandle(com.sas.iom.SAS.IWorkspace work, int index) Add the IOM workspace handle in the IOM handle array at the specified indexvoidsetMessageLevel(Level inLevel) Set the logging level for connections.voidCheck if connected server is a version supported by this client.
-
Field Details
-
USERNAME_KEY
static final String USERNAME_KEYStatic string for the username key stored in the credential map- See Also:
-
PASSWORD_KEY
static final String PASSWORD_KEYStatic string for the password key stored in the credential map- See Also:
-
SECURITY_PACKAGE_LIST_KEY
static final String SECURITY_PACKAGE_LIST_KEYStatic string for the security package list stored in the credential map- See Also:
-
SPN_KEY
static final String SPN_KEYStatic string for the SPN stored in the credential map- See Also:
-
HOST_KEY
static final String HOST_KEYStatic string for the hostname key stored in the credential map- See Also:
-
PORT_KEY
static final String PORT_KEYStatic string for the port key stored in the credential map- See Also:
-
SERVER_STATUS_ERROR
static final int SERVER_STATUS_ERRORThe metadata server connection is broken- See Also:
-
SERVER_STATUS_OK
static final int SERVER_STATUS_OKThe metadata server is working properly- See Also:
-
SERVER_STATUS_PAUSED
static final int SERVER_STATUS_PAUSEDThe metadata server is paused- See Also:
-
-
Method Details
-
getConnection
Simple accessor for the singleton query engine object.- Returns:
- The singleton query engine shared be everyone.
- Throws:
RemoteException- for RMI errors
-
getCMRHandle
com.sas.meta.SASOMI.IOMI getCMRHandle() throws RemoteExceptionReturns the IOMI connection for this connection object.- Returns:
- the IOMI connection for this connection object
- Throws:
RemoteException- for RMI errors
-
setCMRHandle
void setCMRHandle(com.sas.meta.SASOMI.IOMI iomi) throws RemoteException Set IOMI connection to be used by this connection object. If you use this method, you may want to callvalidatePlatformVersion()when making the initial IOMI connection to validate the server version before continuing.- Parameters:
iomi- new IOMI connection- Throws:
RemoteException- for RMI errors
-
getIOMHandle
com.sas.iom.SAS.IWorkspace getIOMHandle(int index) throws RemoteException Get the specified IOM workspace handle.- Parameters:
index- is the index into the IOM workspace handle array. If the specified index is less than zero, the IOM workspace handle at location 0 is retrieved- Returns:
- IOM workspace handle at the specified index
- Throws:
RemoteException- for RMI errors
-
getIOMHandle
com.sas.iom.SAS.IWorkspace getIOMHandle() throws RemoteExceptionGet the first available IOM workspace handle.- Returns:
- the IOM workspace handle
- Throws:
RemoteException- for RMI errors
-
setIOMHandle
void setIOMHandle(com.sas.iom.SAS.IWorkspace work) throws RemoteException Add the IOM workspace handle to the IOM handle array.- Parameters:
work- IOM workspace handle- Throws:
RemoteException- for RMI errors
-
setIOMHandle
void setIOMHandle(com.sas.iom.SAS.IWorkspace work, int index) throws RemoteException Add the IOM workspace handle in the IOM handle array at the specified index- Parameters:
work- IOM workspace handleindex- offset in the available IOM workspace handle array- Throws:
RemoteException- for RMI errors
-
closeIOMHandle
void closeIOMHandle() throws RemoteExceptionClose our handle to the IOMI interface()- Throws:
RemoteException- for RMI errors
-
makeOMRConnection
com.sas.meta.SASOMI.IOMI makeOMRConnection(String host, String port, String user, String password) throws RemoteException, MdException Connect to the metadata server. The IOMI connection is set as the "CMR handle" or default IOMI connection for this MdOMRConnection object.- Parameters:
host- metadata server hostport- metadata server portuser- user namepassword- password- Returns:
- IOMI connection
- Throws:
UnsupportedPlatformVersionException- if connected server is not supportedMdException- if there is a problem connecting to the serverRemoteException- for RMI errors- See Also:
-
makeOMRConnectionUsingSecurityPackage
com.sas.meta.SASOMI.IOMI makeOMRConnectionUsingSecurityPackage(String host, String port, String securityPackageList, String spn) throws RemoteException, MdException Connect to the metadata server using a security package such as Kerberos. The IOMI connection is set as the "CMR handle" or default IOMI connection for this MdOMRConnection object. If securityPackageList isnull, thenBridgeServer.SECURITY_PACKAGE_LIST_DEFAULTwill be used. If spn isnull, then one will be generated.- Parameters:
host- metadata server hostport- metadata server portspn- server principal nameSecurityPackageList- comma-separated list of acceptable security packages- Returns:
- IOMI connection
- Throws:
UnsupportedPlatformVersionException- if connected server is not supportedMdException- if there is a problem connecting to the serverRemoteException- for RMI errors- See Also:
-
makeISecurityConnection
com.sas.meta.SASOMI.ISecurity_1_1 makeISecurityConnection(String Host, String Port, String Username, String Password) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theISecurity_1_1interface. Uses user name and password to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portUsername- user namePassword- password- Returns:
- ISecurity connection
- Throws:
MdException- if there is a problem making the connectionRemoteException- for RMI errors- See Also:
-
makeISecurityConnectionUsingSecurityPackage
com.sas.meta.SASOMI.ISecurity_1_1 makeISecurityConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theISecurityinterface. Uses a security package such as Kerberos to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portSecurityPackageList- security packages to use (ornullfor default)SPN- server principal name (ornullfor default)- Returns:
- ISecurity connection
- Throws:
MdException- if there is a problem making the connectionRemoteException- for RMI errors- See Also:
-
makeIServerConnection
com.sas.meta.SASOMI.IServer makeIServerConnection(String Host, String Port, String Username, String Password) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theIServerinterface. Uses user name and password to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portUsername- user namePassword- password- Throws:
MdException- if there is a problem making the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
makeIServerConnectionUsingSecurityPackage
com.sas.meta.SASOMI.IServer makeIServerConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theIServerinterface. Uses a security package such as Kerberos to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portSecurityPackageList- security packages to use (ornullfor default)SPN- server principal name (ornullfor default)- Returns:
- IServer connection
- Throws:
MdException- if there is a problem making the connectionRemoteException- for RMI errors- See Also:
-
MakeIServerConnection
Narrows a connection to a SAS Metadata Server to theIServerinterface.- Returns:
- a connection to a a SAS Metadata Server narrowed to the
IServerinterface - Throws:
MdException- if there is a problem narrowing the connectionRemoteException- for RMI errors
-
MakeIServerConnection
com.sas.meta.SASOMI.IServer MakeIServerConnection(com.sas.meta.SASOMI.IOMI OMRConnection) throws RemoteException, MdException Narrows a connection to a SAS Metadata Server to theIServerinterface.- Parameters:
OMRConnection- connection to a SAS Metadata Server- Returns:
- a connection to a a SAS Metadata Server narrowed to the
IServerinterface - Throws:
MdException- if there is a problem narrowing the connectionRemoteException- for RMI errors
-
closeIServerConnection
void closeIServerConnection(com.sas.meta.SASOMI.IServer iServer) throws RemoteException, MdException This method does nothing.- Parameters:
iServer- connection to SAS Metadata Server- Throws:
MdException- never thrownRemoteException- for RMI errors- See Also:
-
disconnectIServerConnection
void disconnectIServerConnection(com.sas.meta.SASOMI.IServer iServer) throws RemoteException, MdException Immediately disconnects a connection to a SAS Metadata Server.- Parameters:
iServer- the connection to close- Throws:
MdException- if there is a problem disconnecting from the serverRemoteException- for RMI errors- See Also:
-
MakeISecurityConnection
Narrows the internal connection to a SAS Metadata Server to theISecurity_1_1interface.- Returns:
- the internal connection to a a SAS Metadata Server narrowed to the
ISecurity_1_1interface - Throws:
MdException- if there is a problem narrowing the connectionRemoteException- if there is a problem communicating with the method implementation
-
MakeISecurityConnection
com.sas.meta.SASOMI.ISecurity_1_1 MakeISecurityConnection(com.sas.meta.SASOMI.IOMI OMRConnection) throws RemoteException, MdException Narrows a connection to a SAS Metadata Server to theISecurity_1_1interface.- Parameters:
OMRConnection- connection to a SAS Metadata Server- Returns:
- a connection to a a SAS Metadata Server narrowed to the
ISecurity_1_1interface - Throws:
MdException- if there is a problem narrowing the connectionRemoteException- if there is a problem communicating with the method implementation
-
closeISecurityConnection
void closeISecurityConnection(com.sas.meta.SASOMI.ISecurity iSecurity) throws RemoteException, MdException This method does nothing.- Parameters:
iSecurity- connection to a SAS Metadata Server- Throws:
RemoteException- never thrownMdException- never thrown- See Also:
-
disconnectISecurityConnection
void disconnectISecurityConnection(com.sas.meta.SASOMI.ISecurity iSecurity) throws RemoteException, MdException Immediately disconnects a connection to a SAS Metadata Server.- Parameters:
iSecurity- the connection to close- Throws:
MdException- if there is a problem disconnecting from the serverRemoteException- if there is a network problem communicating with the method implementation- See Also:
-
closeOMRConnection
void closeOMRConnection() throws RemoteExceptionImmediately closes the connection to the SAS Metadata Server which has been set as the CMRHandle.- Throws:
RemoteException- never thrownSystemException- if there is a problem closing the connection- See Also:
-
disconnectOMRConnection
Immediately disconnects a connection to a SAS Metadata Server.- Parameters:
iOMI- the connection to close- Throws:
MdException- if there is a problem disconnecting from the serverRemoteException- if there is a network problem communicating with the method implementation- See Also:
-
makeIOMConnection
com.sas.iom.SAS.IWorkspace makeIOMConnection(String Host, String Port, String Username, String Password) throws RemoteException, MdException Makes a connection to the specified SAS Workspace Server. Uses user name and password to authenticate the connection.- Parameters:
Host- SAS Workspace Server hostPort- SAS Workspace Server portUsername- user namePassword- password- Throws:
MdException- if there is a problem making the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
makeIOMConnectionUsingSecurityPackage
com.sas.iom.SAS.IWorkspace makeIOMConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) throws RemoteException, MdException Makes a connection to the specified SAS Workspace Server. Uses a security package such as Kerberos to authenticate the connection.- Parameters:
Host- SAS Workspace Server hostPort- SAS Workspace Server portSecurityPackageList- security packages to use (ornullfor default)SPN- server principal name (ornullfor default)- Throws:
MdException- if there is a problem making the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
closeIOMConnection
This method does nothing.- Parameters:
workspace- connection to a SAS Workspace Server- Throws:
RemoteException- never thrownMdException- never thrown- See Also:
-
disconnectIOMConnection
void disconnectIOMConnection(com.sas.iom.SAS.IWorkspace workspace) throws RemoteException, MdException Immediately disconnects a connection to a SAS Workspace Server.- Parameters:
workspace- the connection to close- Throws:
MdException- if there is a problem disconnecting from the serverRemoteException- if there is a network problem communicating with the method implementation- See Also:
-
MakeISecurityAdminConnection
com.sas.meta.SASOMI.ISecurityAdmin MakeISecurityAdminConnection(com.sas.meta.SASOMI.IOMI OMRConnection) throws RemoteException, MdException Narrows a connection to a SAS Metadata Server to theISecurityAdmininterface.- Parameters:
OMRConnection- connection to a SAS Metadata Server- Returns:
- a connection to a a SAS Metadata Server narrowed to the
ISecurityAdmininterface - Throws:
RemoteException- never thrownMdException- if there is a network problem
-
makeISecurityAdminConnection
com.sas.meta.SASOMI.ISecurityAdmin makeISecurityAdminConnection(String Host, String Port, String Username, String Password) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theISecurityAdmininterface. Uses user name and password to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portUsername- user namePassword- password- Throws:
MdException- if there is a problem narrowing the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
makeISecurityAdminConnectionUsingSecurityPackage
com.sas.meta.SASOMI.ISecurityAdmin makeISecurityAdminConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theISecurityinterface. Uses a security package such as Kerberos to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portSecurityPackageList- security packages to use (ornullfor default)SPN- server principal name (ornullfor default)- Throws:
MdException- if there is a problem making the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
closeISecurityAdminConnection
void closeISecurityAdminConnection(com.sas.meta.SASOMI.ISecurityAdmin secAdminConnection) throws RemoteException, MdException This method does nothing.- Parameters:
secAdminConnection- connection to a SAS Metadata Server- Throws:
RemoteException- never thrownMdException- never thrown- See Also:
-
disconnectISecurityAdminConnection
void disconnectISecurityAdminConnection(com.sas.meta.SASOMI.ISecurityAdmin secAdminConnection) throws RemoteException, MdException Immediately disconnects a connection to a SAS Metadata Server.- Parameters:
secAdminConnection- the connection to close- Throws:
MdException- if there is a problem disconnecting from the serverRemoteException- if there is a network problem communicating with the method implementation- See Also:
-
makeIMetadataTransportConnection
com.sas.meta.SASOMI.IMetadataTransport makeIMetadataTransportConnection(com.sas.meta.SASOMI.IOMI OMRConnection) throws RemoteException, MdException Narrows a connection to a SAS Metadata Server to theIMetadataTransportinterface.- Parameters:
OMRConnection- connection to a SAS Metadata Server- Returns:
- a connection to a a SAS Metadata Server narrowed to the
IMetadataTransportinterface - Throws:
RemoteException- never thrownMdException- if there is a network problem
-
makeIMetadataTransportConnection
com.sas.meta.SASOMI.IMetadataTransport makeIMetadataTransportConnection(String Host, String Port, String Username, String Password) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theIMetadataTransportinterface. Uses user name and password to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portUsername- user namePassword- password- Throws:
MdException- if there is a problem narrowing the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
makeIMetadataTransportConnectionUsingSecurityPackage
com.sas.meta.SASOMI.IMetadataTransport makeIMetadataTransportConnectionUsingSecurityPackage(String Host, String Port, String SecurityPackageList, String SPN) throws RemoteException, MdException Makes a connection to the specified SAS Metadata Server and narrows it to theIMetadataTransportinterface. Uses a security package such as Kerberos to authenticate the connection.- Parameters:
Host- SAS Metadata Server hostPort- SAS Metadata Server portSecurityPackageList- security packages to use (ornullfor default)SPN- server principal name (ornullfor default)- Throws:
MdException- if there is a problem making the connectionRemoteException- if there is a problem communicating with the method implementation- See Also:
-
closeIMetadataTransportConnection
void closeIMetadataTransportConnection(com.sas.meta.SASOMI.IMetadataTransport transportConnection) throws RemoteException, MdException This method does nothing.- Parameters:
transportConnection- connection to a SAS Metadata Server- Throws:
RemoteException- never thrownMdException- never thrown- See Also:
-
disconnectIMetadataTransportConnection
void disconnectIMetadataTransportConnection(com.sas.meta.SASOMI.IMetadataTransport transportConnection) throws RemoteException, MdException Immediately disconnects a connection to a SAS Metadata Server.- Parameters:
transportConnection- the connection to close- Throws:
MdException- if there is a problem disconnecting from the serverRemoteException- if there is a network problem communicating with the method implementation- See Also:
-
getCMRProperties
Gets certain properties of the CMR connection. These properties include "host", "port", and "domain".- Returns:
- properties of the CMR connection
- Throws:
MdException- if the domain cannot be determinedRemoteExceptionMdException
-
getPauseComment
Returns a user-defined comment set by the administrator when the server was initially paused. If a comment wasn't entered, or if the server is currently online, this method will return an empty string.- Returns:
- comment describing why the server is unavailable
- Throws:
MdExceptionRemoteException
-
isServerPaused
Returns true if the server is currently paused, either in an offline or admin state.- Returns:
- true if the server is paused, false otherwise
- Throws:
MdExceptionRemoteException
-
getServerStatus
Returns the status of the metadata server. Valid values are:SERVER_STATUS_ERRORSERVER_STATUS_OKSERVER_STATUS_PAUSED
- Returns:
- the status of the server
- Throws:
MdExceptionRemoteException
-
getServerStatus
Returns the status of the metadata server. Valid values are:SERVER_STATUS_ERRORSERVER_STATUS_OKSERVER_STATUS_PAUSED
- Returns:
- the status of the server
- Throws:
MdExceptionRemoteException
-
getServerStatus
Returns a server status request as a parsed XML document.- Parameters:
request- status elements. See Open Metadata Interface: Reference and Usage for documentation of syntax.- Returns:
- parsed status response
- Throws:
MdExceptionRemoteException
-
getVersionCompatibility
int getVersionCompatibility(com.sas.meta.SASOMI.IServer serverConn) throws MdException, RemoteException Return the compatibility of the server to the client. 1 server is greater than client, -1 client is greater than server, and 0 is a matching version between client and server.- Parameters:
serverConn-- Returns:
- int
- Throws:
MdExceptionRemoteException
-
getVersionCompatibility
Return the compatibility of the server to the client. 1 server is greater than client, -1 client is greater than server, and 0 is a matching version between client and server.- Parameters:
serverConn-- Returns:
- int
- Throws:
MdExceptionRemoteException
-
getServerModelVersion
Gets the server's model version information as a string.- Returns:
- String the metadata model version
- Throws:
MdExceptionRemoteException
-
getServerModelVersion
String getServerModelVersion(com.sas.meta.SASOMI.IServer serverConn) throws MdException, RemoteException Gets the server's model version information as a string.- Parameters:
serverConn-- Returns:
- String the metadata model version
- Throws:
MdExceptionRemoteException
-
getServerVersion
Deprecated.Deprecated as of 9.2. UsegetServerModelVersion(IServer).Gets the server version information as a string.- Parameters:
serverConn-- Returns:
- String
- Throws:
MdExceptionRemoteException
-
getCurrentServerVerion
Deprecated.Deprecated as of 9.2. UsegetServerModelVersion().Returns the server version using the current connection.- Returns:
- String
- Throws:
MdExceptionRemoteException
-
getPlatformVersion
Returns the current platform version number. The version number represents the current version of the platform. For example, for 9.1.3 Service Pack 3, the version number is 9133. If the version number is unknown, a value of 0 is returned.- Returns:
- the platform version as an integer
- Throws:
MdExceptionRemoteException- Since:
- 9.1.3 SP3
-
getPlatformVersion
Returns the current platform version number. The version number represents the current version of the platform. For example, for 9.1.3 Service Pack 3, the version number is 9133. If the version number is unknown, a value of 0 is returned.- Parameters:
serverConn- the IServer interface- Returns:
- the platform version as an integer
- Throws:
MdExceptionRemoteException- Since:
- 9.1.3 SP3
-
getIdentityOfUserConnected
Identity getIdentityOfUserConnected(MdStore store, String reposID) throws MdException, RemoteException Returns the Identity object for the user currently connected to the server. If the user is not associated to an Identity, the Identity for the PUBLIC group will be returned.A null value will be returned if the Identity could not be found at all.
- Parameters:
store- the object store to create the Identity inreposID- the repository connected to. This must be the full 17 character repository id. This will only be used if the an Identity for the user could not be found.- Returns:
- Identity object
- Throws:
MdExceptionRemoteException
-
getMessageLevel
Level getMessageLevel() throws RemoteExceptionGet the level logging is set to for connections- Returns:
- Level
- Throws:
RemoteException
-
setMessageLevel
void setMessageLevel(Level inLevel) throws RemoteException Set the logging level for connections.- Parameters:
inLevel-- Throws:
RemoteException
-
getCredentialMap
Map<String,String> getCredentialMap() throws RemoteExceptionReturns the map of credentials for OMR connection, if map key size is 0, then there have been no successfull connections.- Returns:
- Map
- Throws:
RemoteException
-
setConnectionResources
void setConnectionResources(com.sas.services.connection.ConnectionResources cxResources) throws RemoteException Set resources to be used during connection to IOM servers.- Parameters:
cxResources- resources to be used during connection to IOM servers.- Throws:
RemoteException- if a network error occurs
-
getConnectionResources
com.sas.services.connection.ConnectionResources getConnectionResources() throws RemoteExceptionGet resources to be used during connection to IOM servers.- Returns:
- resources to be used during connection to IOM servers.
- Throws:
RemoteException- if a network error occurs
-
validatePlatformVersion
Check if connected server is a version supported by this client. An UnsupportedPlatformVersionException will be thrown if the server is not supported. The exception will contain a message suitable for display to end users.- Throws:
UnsupportedPlatformVersionException- if connected server is not supportedMdException- if a server communication error occursRemoteException- for RMI errors
-