public interface CacheIF
extends org.dmd.dmc.DmcNameResolverIF
The interface methods are broken down into the following areas:
| Modifier and Type | Method and Description |
|---|---|
Collection<org.dmd.dmw.DmwNamedObjectWrapper> |
addListener(CacheListener listener)
Adds the specified listener to the cache.
|
void |
addNameGenerator(NameGeneratorIF ng)
Adds the specified name generator to the cache.
|
void |
addObject(org.dmd.dmw.DmwNamedObjectWrapper obj)
This method is used to add a new object to the cache during the initialization
phase of the plugins.
|
void |
create(org.dmd.dmw.DmwNamedObjectWrapper obj,
org.dmd.dmp.server.extended.Request request) |
void |
createAndNotify(org.dmd.dmw.DmwNamedObjectWrapper obj) |
void |
delete(org.dmd.dmc.DmcObjectName name,
org.dmd.dmp.server.extended.Request request) |
void |
delete(org.dmd.dmw.DmwNamedObjectWrapper obj) |
void |
deleteAndNotify(org.dmd.dmc.DmcObjectName name) |
void |
deleteAndNotify(org.dmd.dmw.DmwNamedObjectWrapper obj) |
void |
dumpObjects(PrintStream ps)
Dumps all cached objects to the specified PrintStream.
|
org.dmd.dmw.DmwNamedObjectWrapper |
get(org.dmd.dmc.DmcObjectName name)
Returns the specified object if it exists.
|
Collection<org.dmd.dmw.DmwHierarchicObjectWrapper> |
getAll(org.dmd.dmc.DmcHierarchicObjectName name) |
Collection<org.dmd.dmw.DmwNamedObjectWrapper> |
getIndex(org.dmd.dmc.DmcClassInfo ci) |
int |
getIndexSize(org.dmd.dmc.DmcClassInfo ci) |
Collection<org.dmd.dmw.DmwHierarchicObjectWrapper> |
getNext(org.dmd.dmc.DmcHierarchicObjectName name) |
long |
getNextListenerID()
This method is called when a new CacheListener is instantiated.
|
boolean |
hasIndex(org.dmd.dmc.DmcClassInfo dci) |
void |
maintainIndex(org.dmd.dmc.DmcClassInfo cd)
Indexing is a generally useful mechanism that allows for rapid access to
objects of a particular type.
|
void |
queueCreateRequest(org.dmd.dmp.server.extended.CreateRequest request)
Queues a CreateRequest for processing in the order in which it arrived.
|
void |
queueDeleteRequest(org.dmd.dmp.server.extended.DeleteRequest request)
Queues a DeleteRequest for processing in the order in which it arrived.
|
void |
queueEvent(org.dmd.dmp.server.extended.DMPEvent event)
Queues an event from a remote source for processing by the cache.
|
void |
queueSetRequest(org.dmd.dmp.server.extended.SetRequest request)
Queues a SetRequest for processing in the order in which it arrived.
|
CacheRegistration |
register(SessionIF session)
If you are going to perform operations against a cache, you will need a
unique registration against that cache.
|
void |
removeListener(CacheListener listener)
Removes the specified listener from the cache.
|
void |
removeListenersForSession(SessionIF session)
Removes all cache listeners associated with the specified session.
|
void |
set(org.dmd.dmc.DmcObjectName name,
org.dmd.dms.generated.types.DmcTypeModifierMV modifier,
org.dmd.dmp.server.extended.Request request) |
void |
set(org.dmd.dmw.DmwNamedObjectWrapper obj) |
void |
setAndNotify(org.dmd.dmw.DmwNamedObjectWrapper obj) |
CacheRegistration register(SessionIF session)
session - the session that's registering against the cachevoid addObject(org.dmd.dmw.DmwNamedObjectWrapper obj)
throws org.dmd.util.exceptions.ResultException
obj - the object to be added.org.dmd.util.exceptions.ResultExceptionvoid create(org.dmd.dmw.DmwNamedObjectWrapper obj,
org.dmd.dmp.server.extended.Request request)
throws org.dmd.util.exceptions.ResultException
org.dmd.util.exceptions.ResultExceptionvoid createAndNotify(org.dmd.dmw.DmwNamedObjectWrapper obj)
throws org.dmd.util.exceptions.ResultException
org.dmd.util.exceptions.ResultExceptionvoid delete(org.dmd.dmw.DmwNamedObjectWrapper obj)
void deleteAndNotify(org.dmd.dmw.DmwNamedObjectWrapper obj)
void delete(org.dmd.dmc.DmcObjectName name,
org.dmd.dmp.server.extended.Request request)
throws org.dmd.util.exceptions.ResultException
org.dmd.util.exceptions.ResultExceptionvoid deleteAndNotify(org.dmd.dmc.DmcObjectName name)
void set(org.dmd.dmw.DmwNamedObjectWrapper obj) throws org.dmd.util.exceptions.ResultException
org.dmd.util.exceptions.ResultExceptionvoid set(org.dmd.dmc.DmcObjectName name,
org.dmd.dms.generated.types.DmcTypeModifierMV modifier,
org.dmd.dmp.server.extended.Request request)
throws org.dmd.util.exceptions.ResultException
org.dmd.util.exceptions.ResultExceptionvoid setAndNotify(org.dmd.dmw.DmwNamedObjectWrapper obj)
throws org.dmd.util.exceptions.ResultException
org.dmd.util.exceptions.ResultExceptionvoid queueSetRequest(org.dmd.dmp.server.extended.SetRequest request)
request - the request to be processedvoid queueCreateRequest(org.dmd.dmp.server.extended.CreateRequest request)
request - the request to be processedvoid queueDeleteRequest(org.dmd.dmp.server.extended.DeleteRequest request)
request - the request to be processedvoid queueEvent(org.dmd.dmp.server.extended.DMPEvent event)
event - the event to be processedlong getNextListenerID()
Collection<org.dmd.dmw.DmwNamedObjectWrapper> addListener(CacheListener listener)
listener - the cache listenervoid removeListener(CacheListener listener)
listener - the listener to be removed.void removeListenersForSession(SessionIF session)
sessionID - the sessionorg.dmd.dmw.DmwNamedObjectWrapper get(org.dmd.dmc.DmcObjectName name)
name - the name of the object to be retrieved.Collection<org.dmd.dmw.DmwHierarchicObjectWrapper> getNext(org.dmd.dmc.DmcHierarchicObjectName name)
name - the name of the parent object.Collection<org.dmd.dmw.DmwHierarchicObjectWrapper> getAll(org.dmd.dmc.DmcHierarchicObjectName name)
name - the root of the tree to be retrievedvoid maintainIndex(org.dmd.dmc.DmcClassInfo cd)
cd - The class info of the class from the DMSAGboolean hasIndex(org.dmd.dmc.DmcClassInfo dci)
dci - the class to check for.int getIndexSize(org.dmd.dmc.DmcClassInfo ci)
ci - the class whose index you want to check.Collection<org.dmd.dmw.DmwNamedObjectWrapper> getIndex(org.dmd.dmc.DmcClassInfo ci)
ci - the class for which you want the indexed values.void addNameGenerator(NameGeneratorIF ng)
ng - void dumpObjects(PrintStream ps)
Copyright © 2019. All rights reserved.