public RemoteCommitEventManager getRemoteCommitEventManager() { if (remoteEventManager == null) { remoteEventManager = new RemoteCommitEventManager(this); remoteProviderPlugin.configureEventManager(remoteEventManager); } return remoteEventManager; }
public void initialize(DataCacheManager mgr) { super.initialize(mgr); conf.getRemoteCommitEventManager().addInternalListener(this); }
public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Fire an event to local listeners only notifying them of a detected * stale record. * * @since 1.0.0 */ public void fireLocalStaleNotification(Object oid) { RemoteCommitEvent ev = new RemoteCommitEvent( RemoteCommitEvent.PAYLOAD_LOCAL_STALE_DETECTION, null, null, Collections.singleton(oid), null); fireEvent(ev); }
/** * Configure the remote event manager. */ public void configureEventManager(RemoteCommitEventManager mgr) { parseOptions(); if (_transmitPersIds != null) mgr.setTransmitPersistedObjectIds(_transmitPersIds.booleanValue()); }
/** * Close this manager and all registered listeners. */ public void close() { if (_provider != null) { _provider.close(); Collection listeners = getListeners(); for (Iterator itr = listeners.iterator(); itr.hasNext();) ((RemoteCommitListener) itr.next()).close(); } }
void initializeBroker(boolean managed, int connRetainMode, Broker broker, boolean fromDeserialization) { assertOpen(); makeReadOnly(); DelegatingStoreManager dsm = createDelegatingStoreManager(); ((BrokerImpl) broker).initialize(this, dsm, managed, connRetainMode, fromDeserialization); // if we're using remote events, register the event manager so // that it can broadcast commit notifications from the broker RemoteCommitEventManager remote = _conf.getRemoteCommitEventManager(); if (remote.areRemoteEventsEnabled()) broker.addTransactionListener(remote); loadPersistentTypes(broker.getClassLoader()); _brokers.add(broker); _conf.setReadOnly(Configuration.INIT_STATE_FROZEN); }
addClassNames = toClassNames(event.getPersistedTypes()); updates = toClassNames(event.getUpdatedTypes()); deletes = toClassNames(event.getDeletedTypes()); if (addClassNames == null && updates == null && deletes == null) return null;
/** * Fire an event to local listeners only notifying them of a detected * stale record. * * @since 1.0.0 */ public void fireLocalStaleNotification(Object oid) { RemoteCommitEvent ev = new RemoteCommitEvent( RemoteCommitEvent.PAYLOAD_LOCAL_STALE_DETECTION, null, null, Collections.singleton(oid), null); fireEvent(ev); }
/** * Configure the remote event manager. */ public void configureEventManager(RemoteCommitEventManager mgr) { parseOptions(); if (_transmitPersIds != null) mgr.setTransmitPersistedObjectIds(_transmitPersIds.booleanValue()); }
/** * Close this manager and all registered listeners. */ public void close() { if (_provider != null) { _provider.close(); Collection listeners = getListeners(); for (Iterator itr = listeners.iterator(); itr.hasNext();) ((RemoteCommitListener) itr.next()).close(); } }
void initializeBroker(boolean managed, int connRetainMode, Broker broker, boolean fromDeserialization) { assertOpen(); makeReadOnly(); DelegatingStoreManager dsm = createDelegatingStoreManager(); ((BrokerImpl) broker).initialize(this, dsm, managed, connRetainMode, fromDeserialization); // if we're using remote events, register the event manager so // that it can broadcast commit notifications from the broker RemoteCommitEventManager remote = _conf.getRemoteCommitEventManager(); if (remote.areRemoteEventsEnabled()) broker.addTransactionListener(remote); loadPersistentTypes(broker.getClassLoader()); _brokers.add(broker); _conf.setReadOnly(Configuration.INIT_STATE_FROZEN); }
addClassNames = toClassNames(event.getPersistedTypes()); updates = toClassNames(event.getUpdatedTypes()); deletes = toClassNames(event.getDeletedTypes()); if (addClassNames == null && updates == null && deletes == null) return null;
/** * Fire an event to local listeners only notifying them of a detected * stale record. * * @since 1.0.0 */ public void fireLocalStaleNotification(Object oid) { RemoteCommitEvent ev = new RemoteCommitEvent( RemoteCommitEvent.PAYLOAD_LOCAL_STALE_DETECTION, null, null, Collections.singleton(oid), null); fireEvent(ev); }
public void initialize(DataCacheManager mgr) { super.initialize(mgr); conf.getRemoteCommitEventManager().addInternalListener(this); }
public RemoteCommitEventManager getRemoteCommitEventManager() { if (remoteEventManager == null) { remoteEventManager = new RemoteCommitEventManager(this); remoteProviderPlugin.configureEventManager(remoteEventManager); } return remoteEventManager; }
public void afterCommit(TransactionEvent event) { if (_provider != null) { RemoteCommitEvent rce = createRemoteCommitEvent(event); if (rce != null) _provider.broadcast(rce); } }
/** * Configure the remote event manager. */ public void configureEventManager(RemoteCommitEventManager mgr) { parseOptions(); if (_transmitPersIds != null) mgr.setTransmitPersistedObjectIds(_transmitPersIds.booleanValue()); }