Examples of JxtaReplicationSender


Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

                byte[] bytes = ReplicationUtil.getByteArray(expiredIds);
                loadAdvisoryState.setState(bytes);
            } catch(IOException ex) {}
        }
       
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        //sender.sendOverPropagatedPipe(loadAdvisoryState, instanceName, false);
        sender.sendReplicationAdvisoryState(loadAdvisoryState, instanceName);

    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

                loadReceivedState.setState(bytes);
            } catch (IOException ex) {
            }
        }

        JxtaReplicationSender sender
                = JxtaReplicationSender.createInstance();
        sender.sendOverPropagatedPipe(loadReceivedState, instanceName, false);
    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)getSipSessionManager();
        String theCommand = mgr.LOAD_SAS_COMMAND;
        ReplicationState loadState
            = ReplicationState.createUnicastLoadState(MODE_SIP, id, this.getApplicationId(), ReplicationUtil.parseLong(version), mgr.getInstanceName(), theCommand);
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        ReplicationState returnState
            = sender.sendReplicationLoadState(loadState, instanceName, useReplicationUnicastLoadBatching);
        return returnState;
    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)getSipSessionManager();
        String theCommand = mgr.MESSAGE_LOAD_ADVISORY_SERVLET_TIMER;
        ReplicationState loadAdvisoryState
            = ReplicationState.createUnicastLoadAdvisoryState(MODE_SIP, id, this.getApplicationId(), 0L, mgr.getInstanceName(), theCommand);
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        //sender.sendOverPropagatedPipe(loadAdvisoryState, instanceName, false);
        sender.sendReplicationAdvisoryState(loadAdvisoryState, instanceName);

    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

        String theCommand = mgr.MESSAGE_BROADCAST_LOAD_RECEIVED_SERVLET_TIMER;
        ReplicationState loadReceivedState =
            ReplicationState.createBroadcastLoadReceivedState(MODE_SIP, id, this.getApplicationId(), 0L, mgr.getInstanceName(), theCommand);
  loadReceivedState.setProperty(
      ReplicationState.IGNORE_REMOVE_INSTANCE_NAME, bekey);
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        sender.sendOverPropagatedPipe(loadReceivedState, instanceName, false);
        //if we want to batch unicast load acks use next line
        //sender.sendReplicationReceivedState(loadReceivedState, instanceName);
    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)getSipSessionManager();
        String theCommand = mgr.LOAD_SERVLET_TIMER_COMMAND;
        ReplicationState loadState
            = ReplicationState.createUnicastLoadState(MODE_SIP, id, this.getApplicationId(), ReplicationUtil.parseLong(version), mgr.getInstanceName(), theCommand);
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        ReplicationState returnState
            = sender.sendReplicationLoadState(loadState, instanceName, useReplicationUnicastLoadBatching);
        return returnState;
    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

     * @param beKey the beKey
     */
    protected void sendLoadAcknowledgement(ReplicationState loadReceivedState, String beKey) {
        // Send acknowledgement of load receipt
        // No response to wait for in this case
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();

        ReplicationUtil repUtil = ReplicationUtil.createReplicationUtil();
        if ((beKey != null) && repUtil.isInstanceLoadBalancedByCLB()){
            loadReceivedState.setProperty(ReplicationState.IGNORE_REMOVE_INSTANCE_NAME,
                repUtil.getFailoverServerInstanceForBeKey(beKey));
        } else {
            ReplicationHealthChecker healthChecker = ReplicationHealthChecker.getInstance();
            String currentReplicaPartner = healthChecker.getCurrentPartnerInstanceName();
                loadReceivedState.setProperty(ReplicationState.IGNORE_REMOVE_INSTANCE_NAME,
                currentReplicaPartner);
        }
        sender.sendBroadcastQuery(loadReceivedState);
    }
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)getSipSessionManager();
        String theCommand = mgr.MESSAGE_BROADCAST_LOAD_RECEIVED_SIP_SESSION;
        ReplicationState loadReceivedState =
            ReplicationState.createBroadcastLoadReceivedState(MODE_SIP, id, this.getApplicationId(), 0L, mgr.getInstanceName(), theCommand);             
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        sender.sendOverPropagatedPipe(loadReceivedState, instanceName, false);
        //if we want to batch unicast load acks use next line
        //sender.sendReplicationReceivedState(loadReceivedState, instanceName);
    }   
View Full Code Here

Examples of com.sun.enterprise.ee.web.sessmgmt.JxtaReplicationSender

        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)getSipSessionManager();
        String theCommand = mgr.LOAD_SIP_SESSION_COMMAND;
        ReplicationState loadState
            = ReplicationState.createUnicastLoadState(MODE_SIP, id, this.getApplicationId(), ReplicationUtil.parseLong(version), mgr.getInstanceName(), theCommand);
        JxtaReplicationSender sender
            = JxtaReplicationSender.createInstance();
        ReplicationState returnState
            = sender.sendReplicationLoadState(loadState, instanceName, useReplicationUnicastLoadBatching);
        return returnState;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.