public class LocalDObjectMgr extends PresentsDObjectMgr
PresentsDObjectMgr.LongRunnable, PresentsDObjectMgr.StatsRunQueue.AsExecutor| Constructor and Description |
|---|
LocalDObjectMgr(ReportManager repmgr)
Creates the dobjmgr and prepares it for operation.
|
| Modifier and Type | Method and Description |
|---|---|
DObjectManager |
getClientDObjectMgr(int clientOid)
Creates a
DObjectManager that posts directly to this local object manager, but first
sets the source oid of all events to properly identify them with the supplied client oid. |
boolean |
isDispatchThread()
Returns true if the thread invoking this method is the same thread that is doing distributed
object event dispatch.
|
void |
postEvent(DEvent event)
Posts a distributed object event into the system.
|
void |
postRunnable(Runnable unit)
Posts a self-contained unit of code that should be run on the distributed object manager
thread at the next available opportunity.
|
clearProxyObject, clearUnitProfiles, destroyObject, dumpUnitProfiles, execute, getNextEventId, getObject, getStats, getUnitProfInterval, harshShutdown, isManager, isRunning, newInterval, objectAdded, objectDestroyed, objectRemoved, queueIsEmpty, refuseEventThread, registerObject, registerProxyObject, removedLastSubscriber, requireEventThread, run, setDefaultAccessController, setUnitProfInterval, subscribeToObject, unsubscribeFromObject@Inject public LocalDObjectMgr(ReportManager repmgr)
public DObjectManager getClientDObjectMgr(int clientOid)
DObjectManager that posts directly to this local object manager, but first
sets the source oid of all events to properly identify them with the supplied client oid.
Normally this oid setting happens when an event is received on the server over the network,
but in local mode we have to do it by hand.public boolean isDispatchThread()
PresentsDObjectMgrisDispatchThread in interface RunQueueisDispatchThread in class PresentsDObjectMgrpublic void postEvent(DEvent event)
DObjectManagerAttributeChangedEvent can be constructed and posted directly. This
is true for all event types and is useful for situations where one doesn't have access to
the object in question, but needs to affect some event.
This event will be forwarded to the ultimate manager of the object (on the client, this means it will be forwarded to the server) where it will be checked for validity and then applied to the object and dispatched to all its subscribers.
postEvent in interface DObjectManagerpostEvent in class PresentsDObjectMgrevent - The event to be dispatched.public void postRunnable(Runnable unit)
PresentsDObjectMgrpostRunnable in interface RunQueuepostRunnable in class PresentsDObjectMgrCopyright © 2015. All rights reserved.