bea.jolt
Class JoltRepository
java.lang.Object
|
+--bea.jolt.JoltRepository
- public class JoltRepository
- extends java.lang.Object
This class provides access and control to the repository of
service definitions. It also provides caching and pre-loading the
cache to improve the performance. It also allows the repository to
be shared with other sessions.
- See Also:
JoltDefinition
|
Method Summary |
boolean |
flushDefinition(java.lang.String type,
java.lang.String name)
Flush a definition from the cache. |
JoltDefinition |
getDefinition(java.lang.String type,
java.lang.String name)
Get a definition of a given type and name from the Jolt Repository. |
void |
setCache(java.util.Enumeration cache)
Preload the data into the cache for this repository. |
void |
shareCache(JoltRepository rep)
Share the cached data from this repository with the repositories
from other sessions. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
setCache
public void setCache(java.util.Enumeration cache)
- Preload the data into the cache for this repository.
- Parameters:
cache - An enumeration of the service definitions in string.
shareCache
public void shareCache(JoltRepository rep)
- Share the cached data from this repository with the repositories
from other sessions. This feature is designed to support session
pooling.
- Parameters:
rep - Repository object from another session.
getDefinition
public JoltDefinition getDefinition(java.lang.String type,
java.lang.String name)
throws DefinitionException
- Get a definition of a given type and name from the Jolt Repository.
The retrieved definition will be put into the cache.
- Parameters:
type - "SVC" for service, "QUEUE" for queue...name - The name of the definition- Returns:
- JoltDefinition object or null if it does not exist.
- Throws:
DefinitionException - Malformed definition.- See Also:
JoltDefinition
flushDefinition
public boolean flushDefinition(java.lang.String type,
java.lang.String name)
- Flush a definition from the cache.
- Parameters:
type - "SVC" for service, "QUEUE" for queue...name - The name of the definition- Returns:
- True if flush is successful; false if no such definition.