/** * INTERNAL: Merge the changes to all objects to the parent. */ protected void mergeChangesIntoParent() { if (this.classesToBeInvalidated != null) { // get identityMap of the parent ServerSession IdentityMapAccessor accessor = this.getParentIdentityMapSession(null, false, true).getIdentityMapAccessor(); Iterator<Class> iterator = this.classesToBeInvalidated.iterator(); while (iterator.hasNext()) { accessor.invalidateClass(iterator.next(), false); } this.classesToBeInvalidated = null; } super.mergeChangesIntoParent(); }
/** * INTERNAL: Merge the changes to all objects to the parent. */ protected void mergeChangesIntoParent() { if (this.classesToBeInvalidated != null) { // get identityMap of the parent ServerSession for(ClassDescriptor classToBeInvalidated : classesToBeInvalidated) { IdentityMapAccessor accessor = this.getParentIdentityMapSession(classToBeInvalidated, false, true).getIdentityMapAccessor(); accessor.invalidateClass(classToBeInvalidated.getJavaClass(), false); // 312503: invalidate subtree rooted at classToBeInvalidated } this.classesToBeInvalidated = null; } super.mergeChangesIntoParent(); }
/** * INTERNAL: Merge the changes to all objects to the parent. */ protected void mergeChangesIntoParent() { if (this.classesToBeInvalidated != null) { // get identityMap of the parent ServerSession for(ClassDescriptor classToBeInvalidated : classesToBeInvalidated) { IdentityMapAccessor accessor = this.getParentIdentityMapSession(classToBeInvalidated, false, true).getIdentityMapAccessor(); accessor.invalidateClass(classToBeInvalidated.getJavaClass(), false); // 312503: invalidate subtree rooted at classToBeInvalidated } this.classesToBeInvalidated = null; } super.mergeChangesIntoParent(); }
/** * This method is used to invalidate the identity maps in the session. */ public synchronized void invalidateAllIdentityMaps() { Vector classesRegistered = getSession().getIdentityMapAccessorInstance().getIdentityMapManager().getClassesRegistered(); String registeredClassName; Class registeredClass; if (classesRegistered.isEmpty()) { ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_no_identity_maps_in_session"); } //get each identity map, and invalidate for (int index = 0; index < classesRegistered.size(); index++) { registeredClassName = (String)classesRegistered.elementAt(index); registeredClass = (Class)getSession().getDatasourcePlatform().getConversionManager() .convertObject(registeredClassName, ClassConstants.CLASS); getSession().getIdentityMapAccessor().invalidateClass(registeredClass); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_identity_map_invalidated", registeredClassName); } }
/** * This method is used to invalidate the identity maps in the session. */ public synchronized void invalidateAllIdentityMaps() { Vector classesRegistered = getSession().getIdentityMapAccessorInstance().getIdentityMapManager().getClassesRegistered(); String registeredClassName; Class registeredClass; if (classesRegistered.isEmpty()) { ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_no_identity_maps_in_session"); } //get each identity map, and invalidate for (int index = 0; index < classesRegistered.size(); index++) { registeredClassName = (String)classesRegistered.elementAt(index); registeredClass = (Class)getSession().getDatasourcePlatform().getConversionManager() .convertObject(registeredClassName, ClassConstants.CLASS); getSession().getIdentityMapAccessor().invalidateClass(registeredClass); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_identity_map_invalidated", registeredClassName); } }
/** * This method is used to invalidate the identity maps specified by className. * * @param className the fully qualified classname identifying the identity map to invalidate * @param recurse Boolean indicating if we want to invalidate the children identity maps too */ public synchronized void invalidateIdentityMap(String className, Boolean recurse) throws ClassNotFoundException { Class registeredClass; //get identity map, and invalidate registeredClass = (Class)getSession().getDatasourcePlatform().getConversionManager() .convertObject(className, ClassConstants.CLASS); getSession().getIdentityMapAccessor().invalidateClass(registeredClass); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_identity_map_invalidated", className); }
/** * This method is used to invalidate the identity maps specified by className. * * @param className the fully qualified classname identifying the identity map to invalidate * @param recurse Boolean indicating if we want to invalidate the children identity maps too */ public synchronized void invalidateIdentityMap(String className, Boolean recurse) throws ClassNotFoundException { Class registeredClass; //get identity map, and invalidate registeredClass = (Class)getSession().getDatasourcePlatform().getConversionManager() .convertObject(className, ClassConstants.CLASS); getSession().getIdentityMapAccessor().invalidateClass(registeredClass); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_identity_map_invalidated", className); }
/** * This method is used to invalidate the identity maps specified by className. * * @param className the fully qualified classname identifying the identity map to invalidate * @param recurse Boolean indicating if we want to invalidate the children identity maps too */ public synchronized void invalidateIdentityMap(String className, Boolean recurse) throws ClassNotFoundException { Class registeredClass; //get identity map, and invalidate registeredClass = (Class)getSession().getDatasourcePlatform().getConversionManager() .convertObject(className, ClassConstants.CLASS); getSession().getIdentityMapAccessor().invalidateClass(registeredClass); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_identity_map_invalidated", className); }
/** * This method is used to invalidate the identity maps in the session. */ public synchronized void invalidateAllIdentityMaps() { Vector classesRegistered = getSession().getIdentityMapAccessorInstance().getIdentityMapManager().getClassesRegistered(); String registeredClassName; Class registeredClass; if (classesRegistered.isEmpty()) { getSession().getSessionLog().info("There are no Identity Maps in this session"); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_no_identity_maps_in_session"); } //get each identity map, and invalidate for (int index = 0; index < classesRegistered.size(); index++) { registeredClassName = (String)classesRegistered.elementAt(index); registeredClass = (Class)getSession().getDatasourcePlatform().getConversionManager() .convertObject(registeredClassName, ClassConstants.CLASS); getSession().getIdentityMapAccessor().invalidateClass(registeredClass); ((AbstractSession)session).log(SessionLog.INFO, SessionLog.SERVER, "jmx_mbean_runtime_services_identity_map_invalidated", registeredClassName); } }
getAccessor().invalidateClass(candidateAssignableDescriptor.getJavaClass()); } else {
getAccessor().invalidateClass(classToEvict, invalidateRecursively);