public class MRepoPropertiesRegistry extends MPropertiesRegistry
optimizeIt, reg
Constructor and Description |
---|
MRepoPropertiesRegistry(MAppProperties prop)
construct properties registry for repository properties.
|
MRepoPropertiesRegistry(com.tibco.infra.repository.RepoClient repoClient)
construct properties registry based on RepoClient.
|
MRepoPropertiesRegistry(java.lang.String repoUrl)
construct properties registry for repository properties.
|
MRepoPropertiesRegistry(java.lang.String repoUrl,
java.lang.String tix,
java.lang.String username,
java.lang.String password) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
commit()
Encapsulates commit() of RepoClient
|
void |
destroy()
Encapsulates destroy() of RepoClient
|
java.lang.String |
getClientVariable(java.lang.String name) |
java.lang.String[][] |
getClientVariables() |
MPropertiesRegistry |
getDefaultRegistry()
returns the default MPropertiesRegistry
|
java.lang.String |
getGlobalVariable(java.lang.String name) |
java.lang.String[][] |
getGlobalVariables() |
com.tibco.infra.repository.RepoNode |
getNode(com.tibco.infra.base.GlobalName url)
INTERNAL USE: Encapsulates getNode() of RepoClient
|
com.tibco.infra.repository.RepoNode |
getNode(com.tibco.infra.base.GlobalName url,
boolean getData,
boolean recurse,
boolean chaseRef,
boolean lockIt) |
int |
getOperationTimeout()
Get the current timeout value (in milliseconds) to server connection
|
com.tibco.infra.repository.RepoClient |
getRepoClient()
INTERNAL USE: fetch the repo client handle
|
MProperties |
newProperties(java.lang.String url)
Creates new MRepoProperties, links are not chased, values are
not pre-fetched
|
MProperties |
newProperties(java.lang.String url,
boolean chaseRef)
Creates new MRepoProperties with chaseRef
|
MProperties |
newProperties(java.lang.String url,
boolean chaseRef,
boolean doSubstitution)
Creates new MRepoProperties with chaseRef
|
MProperties |
newSettableProperties(java.lang.String url)
create settable props with autocreatePath & lock at start and no chaseRef
|
MProperties |
newSettableProperties(java.lang.String url,
boolean chaseRef)
Creates a new settable MProperties, if no existing, would create it automatically.
|
MProperties |
newSettableProperties(java.lang.String url,
boolean chaseRef,
boolean doSubstitution) |
MProperties |
newSettableProperties(java.lang.String url,
boolean chaseRef,
boolean isLocked,
boolean autoCreatePath)
Creates prop settable, the url should always point to RepoObject in repo.
|
MProperties |
newSettableProperties(java.lang.String url,
boolean chaseRef,
boolean isLocked,
boolean autoCreatePath,
boolean doSubstitution) |
void |
removeProperties(java.lang.String url)
Delete the properties pointed to by the url
|
void |
rollback()
Encapsulates rollback() of RepoClient
|
void |
setDefaultRegistry(MPropertiesRegistry reg)
Set the default MPropertiesRegistry, can only be set once
|
void |
setOperationTimeout(int milliSecs)
Set the timeout value (in milliseconds) to server connection
|
createDefaultRegistry, createRegistry, setFetchFast
public MRepoPropertiesRegistry(com.tibco.infra.repository.RepoClient repoClient) throws MException
MException
public MRepoPropertiesRegistry(java.lang.String repoUrl) throws MException
MException
public MRepoPropertiesRegistry(MAppProperties prop) throws MException
MException
public MRepoPropertiesRegistry(java.lang.String repoUrl, java.lang.String tix, java.lang.String username, java.lang.String password) throws MException
MException
public void commit() throws MException
commit
in class MPropertiesRegistry
MException
- if the repository instance associated with this MPropropertiesRegistry
is not available for some reason.MPropertiesRegistry.rollback()
public void destroy()
destroy
in class MPropertiesRegistry
public MPropertiesRegistry getDefaultRegistry()
getDefaultRegistry
in class MPropertiesRegistry
public com.tibco.infra.repository.RepoNode getNode(com.tibco.infra.base.GlobalName url) throws MException
MException
public com.tibco.infra.repository.RepoNode getNode(com.tibco.infra.base.GlobalName url, boolean getData, boolean recurse, boolean chaseRef, boolean lockIt) throws MException
MException
public int getOperationTimeout() throws MException
getOperationTimeout
in class MPropertiesRegistry
MException
public com.tibco.infra.repository.RepoClient getRepoClient()
public MProperties newProperties(java.lang.String url) throws MException
newProperties
in class MPropertiesRegistry
url
- URL for the adapter instance description object that stores the
information encapsulated by this MProperties
.MException
MPropertiesRegistry.newSettableProperties(String)
public MProperties newProperties(java.lang.String url, boolean chaseRef) throws MException
newProperties
in class MPropertiesRegistry
url
- URL for the adapter instance description object that stores the
information encapsulated by this MProperties
.chaseRef
- If the value of this parameter is true, the system
follows all pointers from association list values to TIBCO Repository objects
and uploads the information in each object into the repository.
If false, links are not followed.MException
MPropertiesRegistry.newSettableProperties(String)
public MProperties newProperties(java.lang.String url, boolean chaseRef, boolean doSubstitution) throws MException
MException
public MProperties newSettableProperties(java.lang.String url) throws MException
newSettableProperties
in class MPropertiesRegistry
url
- The URL for the adapter instance description object that stores the
information. The url parameter must refer to a TIBCO Repository object node.MException
MPropertiesRegistry.newProperties(String)
public MProperties newSettableProperties(java.lang.String url, boolean chaseRef) throws MException
newSettableProperties
in class MPropertiesRegistry
url
- The URL for the adapter instance description object that stores the
information. The url parameter must refer to a TIBCO Repository object node.chaseRef
- If the value of this parameter is true, the system follows all
pointers from association list values to TIBCO Repository objects and uploads
the information in each object into the repository. If false, links are not followed.
Note: For Repository 3.0 based MProperties
, url must
refer to an object node, and there is no link chasing.
MException
MPropertiesRegistry.newProperties(String)
public MProperties newSettableProperties(java.lang.String url, boolean chaseRef, boolean doSubstitution) throws MException
MException
public MProperties newSettableProperties(java.lang.String url, boolean chaseRef, boolean isLocked, boolean autoCreatePath) throws MException
MException
public MProperties newSettableProperties(java.lang.String url, boolean chaseRef, boolean isLocked, boolean autoCreatePath, boolean doSubstitution) throws MException
MException
public void removeProperties(java.lang.String url) throws MException
removeProperties
in class MPropertiesRegistry
MException
public void rollback() throws MException
rollback
in class MPropertiesRegistry
MException
MPropertiesRegistry.commit()
public void setDefaultRegistry(MPropertiesRegistry reg) throws MException
setDefaultRegistry
in class MPropertiesRegistry
MException
public void setOperationTimeout(int milliSecs) throws MException
setOperationTimeout
in class MPropertiesRegistry
MException
public void clear()
clear
in class MPropertiesRegistry
public java.lang.String[][] getGlobalVariables() throws MException
MException
public java.lang.String getGlobalVariable(java.lang.String name) throws MException
MException
public java.lang.String[][] getClientVariables()
public java.lang.String getClientVariable(java.lang.String name) throws MException
MException