|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||
com.sas.services.information.AbstractRepository2
public abstract class AbstractRepository2
| Nested Class Summary | |
|---|---|
class |
AbstractRepository2.SmartTypeHelper
The purpose of this class is effeciently assist with the determination of the "smart metadata type" for a particular class name. |
| Field Summary | |
|---|---|
protected java.lang.String |
_domain
|
protected java.lang.String |
_host
|
protected boolean |
_isDestroyed
|
protected java.lang.String |
_isName
|
protected java.util.ArrayList |
_listeners
|
protected org.apache.logging.log4j.Logger |
_logger
|
protected int |
_portInt
|
protected java.lang.String |
_principal
|
protected java.lang.String |
_uniqueId
|
protected java.lang.String |
_url
|
protected UserContextInterface |
_user
|
protected java.lang.Exception |
closeStack
|
| Fields inherited from interface com.sas.services.information.RepositoryInterface |
|---|
PROFILE_BEST, PROFILE_NO, PROFILE_POSSIBLE |
| Constructor Summary | |
|---|---|
protected |
AbstractRepository2()
|
protected |
AbstractRepository2(java.lang.Class theClass)
|
| Method Summary | |
|---|---|
void |
addListener(RepositoryListenerInterface listener)
Add a listener to receive event notifications from the repository instance. |
void |
close()
Close the connection and get rid of the cache. |
java.lang.String |
getDomain()
Get the domain for this repository. |
java.lang.String |
getHost()
Get the name of the host this repository is running on. |
static InformationServiceInterface |
getInformationService()
Return a handle to the Information Service. |
java.lang.String |
getISName()
Get the Information Service configuration name for this repository if it exists. |
int |
getPort()
Get the port number of the server this repository is using. |
java.lang.String |
getPrincipal()
Get the principal name this instance connected with. |
protected java.lang.String |
getSmartType(java.lang.String key,
AbstractRepository2.SmartTypeHelper helper,
java.util.Map rawData,
org.apache.logging.log4j.Logger logger)
|
MetadataInterface |
getTrackedObject(int trackingId)
Get a cached object by its tracking ID. |
java.lang.String |
getUniqueId()
Get a unique identifier for this repository instance. |
java.lang.String |
getUrl()
Get the URL that represents the specific instance for a repository. |
UserContextInterface |
getUserContext()
Get the UserContext this repository was connected for. |
boolean |
isDestroyed()
Check if the repostiory instance has been closed. |
protected void |
notifyListeners(int event)
Notify listeners that a repository event has occurred (close, disconnect, reconnect). |
protected void |
pulseCheck()
|
void |
removeListener(RepositoryListenerInterface listener)
Remove a listener from the list of active event listeners for this repository. |
void |
setDomain(java.lang.String domain)
Set the security domain for this repository. |
void |
setISName(java.lang.String name)
Set the name that was used to connect to the repository. |
void |
setUserContext(UserContextInterface user)
Set the UserContext that this repository belongs to. |
| Methods inherited from interface com.sas.services.information.RepositoryInterface |
|---|
addEntity, addRootFolder, browseFetch, browseFolder, browseFolderRecursive, browseObjectByPath, browseSearch, connect, connect, connectWithProxy, deleteEntity, factoryProcess, factoryTest, fetch, fetch, fetchByUrl, fromByteArry, getBase, getCacheStatistics, getEvaluator, getFactoryKey, getIdentity, getObjectByPath, getObjectByPath, getObjectByPath, getObjectByPathString, getRootFolder, getRootFolders, getServer, getUser, isEqual, isProfileRepository, makeRootFolder, narrow, newChild, newMetadata, newMetadata, newMetadataByModel, produceDefaultMetadata, refreshAllData, refreshEntity, removeRootFolder, search, searchTree, searchTree, searchTreeFromBase, searchTreeFromBaseWithScope, setUser, toByteArray |
| Field Detail |
|---|
protected java.lang.String _isName
protected boolean _isDestroyed
protected java.lang.Exception closeStack
protected UserContextInterface _user
protected org.apache.logging.log4j.Logger _logger
protected java.lang.String _url
protected java.lang.String _domain
protected java.lang.String _host
protected java.lang.String _principal
protected int _portInt
protected java.util.ArrayList _listeners
protected java.lang.String _uniqueId
| Constructor Detail |
|---|
protected AbstractRepository2()
throws java.rmi.RemoteException
java.rmi.RemoteException
protected AbstractRepository2(java.lang.Class theClass)
throws java.rmi.RemoteException
java.rmi.RemoteException| Method Detail |
|---|
public void close()
throws java.rmi.RemoteException
RepositoryInterface
close in interface RepositoryInterfacejava.rmi.RemoteException - in the event of network errors.
public static InformationServiceInterface getInformationService()
throws java.rmi.RemoteException
java.rmi.RemoteException - in the event of remote object failure.
public void setISName(java.lang.String name)
throws java.rmi.RemoteException
RepositoryInterface
setISName in interface RepositoryInterfacename - The name that was used to connect to the repository. This name
should match the Information Service RepositoryDef name.
java.rmi.RemoteException
public java.lang.String getISName()
throws java.rmi.RemoteException
getISName in interface RepositoryInterfacejava.rmi.RemoteException - in the event of remote object failure.
public void setUserContext(UserContextInterface user)
throws java.rmi.RemoteException
setUserContext in interface RepositoryInterfaceuser - The UserContext this repository was connected for.
java.rmi.RemoteException - In the event of network failure.
public UserContextInterface getUserContext()
throws java.rmi.RemoteException
getUserContext in interface RepositoryInterfacejava.rmi.RemoteException - in the event of network failure.
public java.lang.String getUrl()
throws java.rmi.RemoteException
RepositoryInterface
getUrl in interface RepositoryInterfacejava.rmi.RemoteException - in the event of network errors.public java.lang.String getDomain()
getDomain in interface RepositoryInterface
public void setDomain(java.lang.String domain)
throws java.rmi.RemoteException
setDomain in interface RepositoryInterfacedomain - The security domain this server instance uses for
authentication.
java.rmi.RemoteException - in the event of network errors.
public java.lang.String getHost()
throws java.rmi.RemoteException
RepositoryInterface
getHost in interface RepositoryInterfacejava.rmi.RemoteException - in the event of network errors.
public int getPort()
throws java.rmi.RemoteException
RepositoryInterface
getPort in interface RepositoryInterfacejava.rmi.RemoteException - in the event of network errors.
public java.lang.String getPrincipal()
throws java.rmi.RemoteException
RepositoryInterface
getPrincipal in interface RepositoryInterfacejava.rmi.RemoteException - in the event of network errors.
public MetadataInterface getTrackedObject(int trackingId)
throws java.rmi.RemoteException
RepositoryInterface
getTrackedObject in interface RepositoryInterfacetrackingId - The id of the desired metadata object.
null if the object isn't available in the cache.
java.rmi.RemoteException - in the event of network errors.
public void addListener(RepositoryListenerInterface listener)
throws ServiceException,
java.rmi.RemoteException
addListener in interface RepositoryInterfacelistener - The object to add to the repository's list of
event listeners.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of network errors.
public void removeListener(RepositoryListenerInterface listener)
throws ServiceException,
java.rmi.RemoteException
removeListener in interface RepositoryInterfacelistener - The object to remove from the repository's list of
event listeners.
ServiceException - if a repository error occurs.
java.rmi.RemoteException - in the event of network errors.
protected void notifyListeners(int event)
throws java.rmi.RemoteException
event - The type of event that occurred.
java.rmi.RemoteException
public java.lang.String getUniqueId()
throws java.rmi.RemoteException
RepositoryInterface
getUniqueId in interface RepositoryInterfacejava.rmi.RemoteException - In the event of remote object failure.
public boolean isDestroyed()
throws java.rmi.RemoteException
RepositoryInterface
isDestroyed in interface RepositoryInterfacejava.rmi.RemoteException - In the event of remote object failure.
protected java.lang.String getSmartType(java.lang.String key,
AbstractRepository2.SmartTypeHelper helper,
java.util.Map rawData,
org.apache.logging.log4j.Logger logger)
protected void pulseCheck()
throws ServiceException
ServiceException
|
| Foundation |
|
| |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||||||