private WadiInstance(Instance instance, Session session) { this.instance = instance; this.session = session; session.addState(SESSION_KEY_ENTRY, instance); }
@Override public void complete(HttpSession session) { ClusteredSession clusteredSession = (ClusteredSession) session; clusteredSession.session.onEndAccess(); }
public void endAccess() { session.addState(SESSION_KEY_ENTRY, this); session.onEndAccess(); }
public WADIClusteredValve(WADISessionManager sessionManager) { super(sessionManager.getNode().getName()); this.wadiManager = sessionManager.getManager(); }
public ClusteredManager(SessionManager sessionManager) { if (null == sessionManager) { throw new IllegalArgumentException("sessionManager is required"); } this.sessionManager = sessionManager; nodeName = sessionManager.getNode().getName(); router = newRouter(nodeName); sessionManager.registerListener(new MigrationListener()); }
public void release() { session.release(); }
protected void invokeLocally() throws ClusteredInvocationException { try { next.handle(target, baseRequest, request, response); } catch (IOException e) { throw new ClusteredInvocationException(e); } catch (ServletException e) { //WHAT DO I DO HERE??? throw new ClusteredInvocationException(e); } }
public void onLeave(Node leavingNode, Set<Node> newHostingNodes) { String leavingNodeName = leavingNode.getName(); localTracker.unregisterNetworkConnectorLocations(leavingNodeName); } });
protected ClusteredSession(org.apache.geronimo.clustering.Session session) { super(System.currentTimeMillis(), 0L, session.getSessionId()); this.session = session; }
protected void notifyInboundSessionMigration(org.codehaus.wadi.core.session.Session session) { for (SessionListener listener : listeners) { listener.notifyInboundSessionMigration(new WADISessionAdaptor(session)); } }
protected void notifyOutboundSessionMigration(org.codehaus.wadi.core.session.Session session) { for (SessionListener listener : listeners) { WADISessionAdaptor adaptor = WADISessionAdaptor.retrieveAdaptor(session); listener.notifyOutboundSessionMigration(adaptor); } }
public void onMembershipChanged(org.codehaus.wadi.group.Cluster cluster, Set joiners, Set leavers) { Set<Node> joinerNodes = wrapAsNode(joiners); Set<Node> leaverNodes = wrapAsNode(leavers); listener.onMembershipChanged(BasicWADICluster.this, joinerNodes, leaverNodes); }
public void onListenerRegistration(org.codehaus.wadi.group.Cluster cluster, Set existing) { Set<Node> existingNodes = wrapAsNode(existing); listener.onListenerRegistration(BasicWADICluster.this, existingNodes); }
protected void notifySessionDestruction(org.codehaus.wadi.core.session.Session session) { for (SessionListener listener : listeners) { WADISessionAdaptor adaptor = WADISessionAdaptor.retrieveAdaptor(session); listener.notifySessionDestruction(adaptor); } }
@Override public void invalidate() throws IllegalStateException { super.invalidate(); session.release(); } }
@Override public void complete(HttpSession session) { ClusteredSession clusteredSession = (ClusteredSession) session; clusteredSession.session.onEndAccess(); }
protected void invokeLocally() throws ClusteredInvocationException { try { next.handle(target, baseRequest, request, response); } catch (IOException e) { throw new ClusteredInvocationException(e); } catch (ServletException e) { //WHAT DO I DO HERE??? throw new ClusteredInvocationException(e); } }
@Override public void invalidate() throws IllegalStateException { super.invalidate(); session.release(); } }
@Override public void endAccess() { super.endAccess(); session.onEndAccess(); } }
@Override public void invalidate() throws IllegalStateException { super.invalidate(); session.release(); }