@Override public String getStatisticsName() { return getContextName().replace("/", ""); }
@Override public void load() throws ClassNotFoundException, IOException { doLoad(); ContextMapper.addContext(getContextName(), this); }
@Override public void unload() throws IOException { doUnload(); ContextMapper.removeContext(getContextName()); }
@Override @SuppressWarnings("unchecked") public void setOwner(Object manager) { if (manager instanceof DeltaSessionManager) { DeltaSessionManager sessionManager = (DeltaSessionManager) manager; this.manager = sessionManager; initializeRegion(sessionManager); this.hasDelta = false; this.applyRemotely = false; this.enableGatewayDeltaReplication = sessionManager.getEnableGatewayDeltaReplication(); this.preferDeserializedForm = sessionManager.getPreferDeserializedForm(); // Initialize transient variables if (this.listeners == null) { this.listeners = new ArrayList(); } if (this.notes == null) { this.notes = new Hashtable(); } contextName = ((DeltaSessionManager) manager).getContextName(); } else { throw new IllegalArgumentException(this + ": The Manager must be an AbstractManager"); } }
&& !getContextName().equals(session.getContextName())) { getLogger() .info(this + ": Session " + id + " rejected as container name and context do not match: " + getContextName() + " != " + session.getContextName()); session = null;
@Override public String getStatisticsName() { return getContextName().replace("/", ""); }
@Override public void load() throws ClassNotFoundException, IOException { doLoad(); ContextMapper.addContext(getContextName(), this); }
@Override public void unload() throws IOException { doUnload(); ContextMapper.removeContext(getContextName()); }
@SuppressWarnings("unchecked") public void setOwner(Object manager) { if (manager instanceof DeltaSessionManager) { DeltaSessionManager sessionManager = (DeltaSessionManager) manager; this.manager = sessionManager; initializeRegion(sessionManager); this.hasDelta = false; this.applyRemotely = false; this.enableGatewayDeltaReplication = sessionManager.getEnableGatewayDeltaReplication(); this.preferDeserializedForm = sessionManager.getPreferDeserializedForm(); // Initialize transient variables if (this.listeners == null) { this.listeners = new ArrayList(); } if (this.notes == null) { this.notes = new Hashtable(); } contextName = ((DeltaSessionManager) manager).getContextName(); } else { throw new IllegalArgumentException(this + ": The Manager must be an AbstractManager"); } }
&& !getContextName().equals(session.getContextName())) { getLogger() .info(this + ": Session " + id + " rejected as container name and context do not match: " + getContextName() + " != " + session.getContextName()); session = null;