public List<Endpoint> getEndpoints(SessionInformation sessionInformation) { return SALSessions.getInstance().getChildEndpoints(sessionInformation); }
public List<Endpoint> getEndpoints(SessionInformation sessionInformation) { return SALSessions.getInstance().getChildEndpoints(sessionInformation); }
@Override public void applicationMemberRemoved(Member member) { // remove the sessions bound with this member SALSessions.getInstance().removeSessionsOfMember(member); String subDomain = member.getProperties().getProperty("subDomain"); if ((subDomain == null && Constants.DEFAULT_SUB_DOMAIN.equals(this.subDomain)) || subDomain.equals(this.subDomain)) { super.applicationMemberRemoved(member); } } }
/** * Searches for "Set-Cookie" HTTP header in the message context. If found and that given * session ID is not already in the session map update the session map by mapping the cookie * to the endpoint. * * @param synCtx MessageContext possibly containing the "Set-Cookie" HTTP header. */ public void updateSession(MessageContext synCtx) { String sessionId = extractSessionID(synCtx, SET_COOKIE); if (sessionId != null) { if (log.isDebugEnabled()) { log.debug("Found the HTTP header 'Set-Cookie: " + sessionId + "' for updating the session"); log.debug("Using the session id '" + sessionId + "' extracted from the Set-Cookie header "); } SALSessions.getInstance().updateSession(synCtx, sessionId); } }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx, COOKIE)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx, COOKIE)); }
/** * Searches for "Set-Cookie" HTTP header in the message context. If found and that given * session ID is not already in the session map update the session map by mapping the cookie * to the endpoint. * * @param synCtx MessageContext possibly containing the "Set-Cookie" HTTP header. */ public void updateSession(MessageContext synCtx) { SessionCookie cookie = extractSessionCookie(synCtx, SET_COOKIE); if (cookie != null) { if (log.isDebugEnabled()) { log.debug("Found the HTTP header [Set-Cookie]: " + cookie.toString() + "' for updating the session"); } SALSessions.getInstance().updateSession(synCtx, cookie); } }
/** * Gives the endpoint based on the service group context ID of the request message. * * @param synCtx Request MessageContext, possibly containing a service group context ID. * @return Endpoint associated with the soap session, if current message is a soap session * message and if current message is not the first message of the session. Returns null, * if an Endpoint could not be found for the session. */ public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public void updateSession(MessageContext synCtx) { SALSessions.getInstance().updateSession(synCtx, extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession(extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
/** * Gives the endpoint based on the service group context ID of the request message. * * @param synCtx Request MessageContext, possibly containing a service group context ID. * @return Endpoint associated with the soap session, if current message is a soap session * message and if current message is not the first message of the session. Returns null, * if an Endpoint could not be found for the session. */ public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), QNAME_SERVICE_GROUP_ID)); }
public void unbind(MessageContext synCtx) { SALSessions.getInstance().removeSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public SessionInformation getSession(MessageContext synCtx) { return SALSessions.getInstance().getSession( extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void updateSession(MessageContext synCtx) { SALSessions.getInstance().updateSession(synCtx, extractSessionID(synCtx.getEnvelope().getHeader(), CSID_QNAME)); }
public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); if (!initialized) { super.init(synapseEnvironment); // Initialize the SAL Sessions if already has not been initialized. SALSessions salSessions = SALSessions.getInstance(); if (!salSessions.isInitialized()) { salSessions.initialize(isClusteringEnabled, cc); } //For each root level SAL endpoints , all children are registered // This is for cluttering as in clustering only endpoint names are replicated // and it needs way to pick endpoints by name if (isClusteringEnabled && (this.getParentEndpoint() == null || !(this.getParentEndpoint() instanceof SALoadbalanceEndpoint))) { SALSessions.getInstance().registerChildren(this, getChildren()); } } }
@Override public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); if (!initialized) { super.init(synapseEnvironment); if (algorithmContext == null) { algorithmContext = new AlgorithmContext(isClusteringEnabled, cc, getName()); } // Initialize the SAL Sessions if already has not been initialized. SALSessions salSessions = SALSessions.getInstance(); if (!salSessions.isInitialized()) { salSessions.initialize(isClusteringEnabled, cc); } } log.info("Dynamic load balance endpoint initialized"); }
@Override public void init(SynapseEnvironment synapseEnvironment) { ConfigurationContext cc = ((Axis2SynapseEnvironment) synapseEnvironment).getAxis2ConfigurationContext(); if (!initialized) { super.init(synapseEnvironment); if (algorithmContext == null) { algorithmContext = new AlgorithmContext(isClusteringEnabled, cc, getName()); } // Initialize the SAL Sessions if already has not been initialized. SALSessions salSessions = SALSessions.getInstance(); if (!salSessions.isInitialized()) { salSessions.initialize(isClusteringEnabled, cc); } } log.info("Dynamic load balance endpoint initialized"); }