Package com.sas.services.information
Class OMIChildServer
java.lang.Object
java.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
com.sas.services.information.OMIServer
com.sas.services.information.OMIChildServer
- All Implemented Interfaces:
com.sas.metadata.remote.MdConnectionListener,com.sas.metadata.remote.MdFactoryListener,com.sas.metadata.remote.MdObjectListener,com.sas.metadata.remote.MdStoreIDChangeListener,com.sas.metadata.remote.MdStoreListener,ChildServerInterface,MetadataServerInterface,ServerInterface,Serializable,Remote,EventListener
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.sas.services.information.OMIServer
OMIServer.cVetoableChangeListener, OMIServer.OMIKey -
Field Summary
Fields inherited from class com.sas.services.information.OMIServer
_cache, _cnxnAdmin, _cnxnHandle, _cnxnSync, _explicitIdGrpsMap, _foundationReposName, _id2NameMap, _isDestroyed, _logger, _mdfactory, _mdstore, _name, _person, _repositories, _subNum, _typeMap, _url, BIP_COMPONENTNAME, ROOT_CLASSIDENTIFIERFields inherited from class java.rmi.server.RemoteObject
refFields inherited from interface com.sas.services.information.ServerInterface
DEFAULT_SERVER_NAME, SERVER_VERSION_913_SP3, SERVER_VERSION_913_SP4, SERVER_VERSION_920, SERVER_VERSION_930, SERVER_VERSION_UNKNOWN -
Constructor Summary
ConstructorsConstructorDescriptionOMIChildServer(com.sas.metadata.remote.MdFactory mdfactory, com.sas.metadata.remote.MdObjectStore mdstore, MetadataServerInterface parent, int childnum) OMIChildServer(com.sas.metadata.remote.MdFactory mdfactory, com.sas.metadata.remote.MdObjectStore mdstore, MetadataServerInterface parent, int childnum, Class theClass) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidcommit()Commit the changes in this child to its parent.voiddestroy()Close the connections and release all resources in use by this server instance.fetch(String repositoryKey) Fetch an object from the metadat based on its URI.fetch(String repositoryKey, boolean bypassCache) Fetch an object from the repository given the repository key.StringgetHost()Get the host name of the server.intgetPort()Get the server's TCP port number.ListgetRepositories(boolean getAll) Get a List of the requested repositories from this Server.getRepository(String name) Get a named repository managed by this server.voidrollback()Roll back the changes in this child repository by deleting the cache without flushing it to the parent.Methods inherited from class com.sas.services.information.OMIServer
addMetadataConnectionListener, addToCache, applyACTToObj, attemptConnection, browseFetch, browseFolder, browseFolderRecursive, browseSearch, browseSearch, browseSearch, browseSearch, cachePath, clearPendingChanges, connect, connect, connect, connect, createAccessControTemplate, createMetadata, debug, debug, debug, deleteEntities, deleteEntity, deleteEntity, deleteInternalPassword, destroyAccessControlTemplate, encodePassword, error, error, executeRequest, factoryProcess, flush, flushAllCachedObjects, freeCredentials, fromByteArray, generatePassword, getAccessControlTemplateAttribs, getAccessControlTemplateList, getACTsOnObj, getApplicationActionsAuthorizations, getApplicationActionsAuthorizations, getAuthorizations, getAuthorizationsForObjects, getAuthorizationsOnObj, getClusterConnections, getCountNoSecurity, getCreateDate, getCredentials, getDomain, getEnterprisePolicies, getExplicitIdentityGroup, getFoundationRepository, getHomeFolder, getHomeFolder, getIdentitiesOnObj, getIdentity, getIdentityInfo, getInternalDomain, getInternalLoginSitePolicies, getInternalLoginUserInfo, getLoginsForAuthDomain, getMdFactory, getModifiedDate, getName, getObjectByPath, getObjectByPathFilter, getObjectByPathNew, getObjectStore, getPerson, getProtocol, getRepositories, getRepositoryId, getRepositoryInfo, getRepositoryInfoById, getRepositoryName, getRepositoryNames, getRootFolder, getServerVersion, getSubNum, getTypeDescriptor, getTypeDescriptors, getTypeDictionaryMap, getUrl, getUserContext, info, info, info, isAuthorized, isAuthorizedWithConditions, isConnected, isUserAuthorized, loadExplicitIdentityGroups, loadRepositoryData, loadTypes, loadTypes, makeChainedMessage, makeKey, MdObjectModified, MdObjectsAdded, MdObjectsCreated, MdObjectsDeleted, MdObjectsModified, MdObjectsModified, MdObjectsRemoved, MdStoreIDChange, newChild, newChild, newMetadata, notify, pulseCheck, reconnect, refreshAllData, refreshEntity, reloadRepositoryData, removeACTFromObj, removeMetadataConnectionListener, RepositoryDeleted, search, search, search, setAccessControlTemplateAttribs, setAuthorizationsOnObj, setInternalLoginUserOptions, setInternalPassword, setSelfInternalPassword, toByteArray, warn, warn, warnMethods inherited from class java.rmi.server.UnicastRemoteObject
clone, exportObject, exportObject, exportObject, exportObject, exportObject, unexportObjectMethods inherited from class java.rmi.server.RemoteServer
getClientHost, getLog, setLogMethods inherited from class java.rmi.server.RemoteObject
equals, getRef, hashCode, toString, toStubMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.sas.services.information.ServerInterface
addToCache, browseFetch, browseFolder, browseFolderRecursive, browseSearch, browseSearch, browseSearch, browseSearch, clearPendingChanges, connect, connect, connect, connect, debug, debug, debug, deleteEntity, error, error, executeRequest, factoryProcess, flush, fromByteArray, generatePassword, getDomain, getExplicitIdentityGroup, getFoundationRepository, getHomeFolder, getHomeFolder, getIdentity, getName, getObjectByPath, getObjectByPathFilter, getPerson, getProtocol, getRepositories, getRepositoryInfo, getRepositoryName, getRepositoryNames, getRootFolder, getServerVersion, getTypeDescriptor, getTypeDescriptors, getUserContext, info, info, info, isAuthorized, isConnected, isUserAuthorized, loadTypes, loadTypes, newChild, newChild, newMetadata, reconnect, refreshAllData, refreshEntity, search, search, search, toByteArray, warn, warn, warn
-
Constructor Details
-
OMIChildServer
public OMIChildServer() throws RemoteException- Throws:
RemoteException
-
OMIChildServer
public OMIChildServer(com.sas.metadata.remote.MdFactory mdfactory, com.sas.metadata.remote.MdObjectStore mdstore, MetadataServerInterface parent, int childnum) throws RemoteException - Throws:
RemoteException
-
OMIChildServer
public OMIChildServer(com.sas.metadata.remote.MdFactory mdfactory, com.sas.metadata.remote.MdObjectStore mdstore, MetadataServerInterface parent, int childnum, Class theClass) throws RemoteException - Throws:
RemoteException
-
-
Method Details
-
getHost
Description copied from interface:ServerInterfaceGet the host name of the server.- Specified by:
getHostin interfaceServerInterface- Overrides:
getHostin classOMIServer- Returns:
- The server's DNS host name.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
getPort
Description copied from interface:ServerInterfaceGet the server's TCP port number.- Specified by:
getPortin interfaceServerInterface- Overrides:
getPortin classOMIServer- Returns:
- The TCP port number the server is listening on.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
destroy
Description copied from interface:ServerInterfaceClose the connections and release all resources in use by this server instance.- Specified by:
destroyin interfaceServerInterface- Overrides:
destroyin classOMIServer- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
commit
Description copied from interface:ChildServerInterfaceCommit the changes in this child to its parent. If an exception is thrown during the commit, you must call rollback to close the transaction.- Specified by:
commitin interfaceChildServerInterface- Throws:
ServiceException- if unable to commit the changes to the parent.RemoteException- if a network anomaly is encountered.
-
rollback
Description copied from interface:ChildServerInterfaceRoll back the changes in this child repository by deleting the cache without flushing it to the parent.- Specified by:
rollbackin interfaceChildServerInterface- Throws:
ServiceException- if unable to rollback.RemoteException- if a network anomaly is encountered.
-
close
public void close() throws RemoteException- Throws:
RemoteException
-
getRepository
Description copied from interface:ServerInterfaceGet a named repository managed by this server.- Specified by:
getRepositoryin interfaceServerInterface- Overrides:
getRepositoryin classOMIServer- Parameters:
name- The name of the repository to return.- Returns:
- A RepositoryInterface for the named repository, or null if a repository with that name wasn't found.
- Throws:
ServiceException- If a server error occured.RemoteException- In the event of remote object failure.
-
getRepositories
Description copied from interface:ServerInterfaceGet a List of the requested repositories from this Server. This method returns a List of RepositoryInterface instances that have been explicitly requested via theServerInterface.getRepository(String)method, unless the getAll parameter is true; then all of the repositories managed by the server are returned.- Specified by:
getRepositoriesin interfaceServerInterface- Overrides:
getRepositoriesin classOMIServer- Parameters:
getAll- If true, all of the repositories managed by the server are returned. Otherwise, only the explicitly requested repositories are returned.- Returns:
- A List of RepositoryInterface objects.
- Throws:
ServiceException- If a service level error occurs.RemoteException- In the event of remote object failure.
-
fetch
Description copied from interface:ServerInterfaceFetch an object from the metadat based on its URI.- Specified by:
fetchin interfaceServerInterface- Overrides:
fetchin classOMIServer- Parameters:
repositoryKey- When the SASDS URI is supported, this will be that String. Until then, this should be the entity key (obtained via the MetadataInterface.getEntityKey method) or the repository key (obtained via the MetadataInterface.getReposKey method);- Returns:
- The metadata object that was fetched.
- Throws:
ServiceException- If no object matching the URI was found, or some other error occurred.RemoteException- In the event of remote object failure.
-
fetch
public MetadataInterface fetch(String repositoryKey, boolean bypassCache) throws ServiceException, RemoteException Description copied from class:OMIServerFetch an object from the repository given the repository key. If thebypassCacheflag is set then the cache will not be checked before retrieving the object from the server. If the flag is not set, then the behaviour is the same as thefetchmethod.- Specified by:
fetchin interfaceServerInterface- Overrides:
fetchin classOMIServer- Parameters:
repositoryKey- The identifier for the object from the repository. This should be formatted as the repository ID followed by a slash, then the repository specific type. This string can be obtained using the Metadata.getReposKey method.bypassCache- Boolean flag determines whether the cache should be checked for the object before forcing a trip to the server or not.- Returns:
- The object matching the repository ID, or null.
- Throws:
ServiceException- if a repository error occurs.RemoteException- in the event of network errors.
-