|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.sas.services.information.OMIChildServer
public class OMIChildServer
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_CLASSIDENTIFIER |
Fields 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 | |
---|---|
OMIChildServer()
|
|
OMIChildServer(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,
java.lang.Class theClass)
|
Method Summary | |
---|---|
void |
close()
|
void |
commit()
Commit the changes in this child to its parent. |
void |
destroy()
Close the connections and release all resources in use by this server instance. |
MetadataInterface |
fetch(java.lang.String repositoryKey)
Fetch an object from the metadat based on its URI. |
MetadataInterface |
fetch(java.lang.String repositoryKey,
boolean bypassCache)
Fetch an object from the repository given the repository key. |
java.util.List |
getRepositories(boolean getAll)
Get a List of the requested repositories from this Server. |
RepositoryInterface |
getRepository(java.lang.String name)
Get a named repository managed by this server. |
void |
rollback()
Roll back the changes in this child repository by deleting the cache without flushing it to the parent. |
Methods inherited from interface com.sas.services.information.ServerInterface |
---|
addToCache, browseFetch, browseFolder, browseFolderRecursive, browseSearch, browseSearch, browseSearch, browseSearch, clearPendingChanges, connect, connect, debug, debug, debug, deleteEntity, error, error, executeRequest, factoryProcess, flush, fromByteArray, generatePassword, getDomain, getExplicitIdentityGroup, getFoundationRepository, getHomeFolder, getHomeFolder, getHost, getIdentity, getName, getObjectByPath, getObjectByPathFilter, getPerson, getPort, getProtocol, getRepositories, getRepositoryInfo, getRepositoryName, getRepositoryNames, getRootFolder, getServerVersion, getTypeDescriptor, getUserContext, info, info, info, isAuthorized, isUserAuthorized, loadTypes, loadTypes, newChild, newChild, newMetadata, reconnect, refreshAllData, refreshEntity, search, search, search, toByteArray, warn, warn, warn |
Constructor Detail |
---|
public OMIChildServer() throws java.rmi.RemoteException
java.rmi.RemoteException
public OMIChildServer(com.sas.metadata.remote.MdFactory mdfactory, com.sas.metadata.remote.MdObjectStore mdstore, MetadataServerInterface parent, int childnum) throws java.rmi.RemoteException
java.rmi.RemoteException
public OMIChildServer(com.sas.metadata.remote.MdFactory mdfactory, com.sas.metadata.remote.MdObjectStore mdstore, MetadataServerInterface parent, int childnum, java.lang.Class theClass) throws java.rmi.RemoteException
java.rmi.RemoteException
Method Detail |
---|
public void destroy() throws ServiceException, java.rmi.RemoteException
ServerInterface
destroy
in interface ServerInterface
destroy
in class OMIServer
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public void commit() throws ServiceException, java.rmi.RemoteException
ChildServerInterface
commit
in interface ChildServerInterface
ServiceException
- if unable to commit the changes to the parent.
java.rmi.RemoteException
- if a network anomaly is encountered.public void rollback() throws ServiceException, java.rmi.RemoteException
ChildServerInterface
rollback
in interface ChildServerInterface
ServiceException
- if unable to rollback.
java.rmi.RemoteException
- if a network anomaly is encountered.public void close() throws java.rmi.RemoteException
java.rmi.RemoteException
public RepositoryInterface getRepository(java.lang.String name) throws ServiceException, java.rmi.RemoteException
ServerInterface
getRepository
in interface ServerInterface
getRepository
in class OMIServer
name
- The name of the repository to return.
ServiceException
- If a server error occured.
java.rmi.RemoteException
- In the event of remote object failure.public java.util.List getRepositories(boolean getAll) throws ServiceException, java.rmi.RemoteException
ServerInterface
ServerInterface.getRepository(String)
method,
unless the getAll parameter is true; then all of the repositories
managed by the server are returned.
getRepositories
in interface ServerInterface
getRepositories
in class OMIServer
getAll
- If true, all of the repositories managed by the server
are returned. Otherwise, only the explicitly requested repositories
are returned.
ServiceException
- If a service level error occurs.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface fetch(java.lang.String repositoryKey) throws ServiceException, java.rmi.RemoteException
ServerInterface
fetch
in interface ServerInterface
fetch
in class OMIServer
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);
ServiceException
- If no object matching the URI was found, or some other error occurred.
java.rmi.RemoteException
- In the event of remote object failure.public MetadataInterface fetch(java.lang.String repositoryKey, boolean bypassCache) throws ServiceException, java.rmi.RemoteException
OMIServer
bypassCache
flag 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 the
fetch
method.
fetch
in interface ServerInterface
fetch
in class OMIServer
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.
ServiceException
- if a repository error occurs.
java.rmi.RemoteException
- in the event of network errors.
|
Foundation |
|
| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |