Examples of BackingStore


Examples of com.sun.appserv.ha.spi.BackingStore

    void _processExpiredDialogFragments() {
        //code assumes that isExpired works for this type of ReplicationState
        if (_logger.isLoggable(Level.FINE)) {
            _logger.fine("in " + this.getClass().getName() + ">>_process_ExpiredDF");
        }
        BackingStore dialogFragmentBackingStore
                = this.getDialogFragmentBackingStore();
        DialogFragmentExtraParams dialogFragmentExtraParamCriteria
                = DialogFragmentExtraParams.createSearchCriteriaAll(this);
        Collection<DialogFragmentExtraParams> dialogFragmentColl
                = dialogFragmentBackingStore.findByCriteria(
                null, dialogFragmentExtraParamCriteria);
        int count = 0;
        for (DialogFragmentExtraParams nextExtraParam : dialogFragmentColl) {
            if (_logger.isLoggable(Level.FINE)) {
                _logger.fine("in " + this.getClass().getName() + " nextExtraParam=" + nextExtraParam);
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

    public boolean isReplicationEnabled() {
        return isReplicationInitialized.get() && isReplicationStarted.get();
    }

    boolean isThirdPartyBackingStoreInUse() {
        BackingStore dialogFragmentBackingStore
            = getDialogFragmentBackingStore();
        return (!(dialogFragmentBackingStore instanceof JxtaBackingStoreImpl));
    }
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

        dialogFragmentIds.addAll(dialogFragmentIdsSet);
        return dialogFragmentIds;
    }

    List<FederatedQueryListElement> getDialogFragmentIdsThirdPartySPI(String owningInstanceName) {
        BackingStore backingStore
            = this.getDialogFragmentBackingStore();
        DialogFragmentExtraParams dfExtraParamCriteria
            = DialogFragmentExtraParams.createSearchCriteria(this, owningInstanceName);
        Collection<DialogFragmentExtraParams> dfColl
            = backingStore.findByCriteria(null, dfExtraParamCriteria);

        List<FederatedQueryListElement> dialogFragmentIds = new ArrayList();
        //using set to avoid dups
        HashSet dialogFragmentIdsSet = new HashSet();
        Iterator<DialogFragmentExtraParams> dfResults =
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

        throws BackingStoreException {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("SipApplicationSessionStoreImpl>>findSessionViaBroadcast " +
                    "id = " + id + " version = " + version);                      
        }       
        BackingStore replicator = this.getBackingStore();
        JxtaBackingStoreImpl jxtaReplicator = null;
        if(replicator instanceof JxtaBackingStoreImpl) {
            jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        }
        if(_logger.isLoggable(Level.FINE)) {
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

     *
     * @exception IOException
     */
    public void doSave(HASipApplicationSession haSas) throws IOException {
        byte[] sessionState = ReplicationUtil.getByteArray(haSas, isReplicationCompressionEnabled());
        BackingStore replicator = this.getBackingStore();
        SimpleMetadata simpleMetadata =       
            SimpleMetadataFactory.createSimpleMetadata(
                haSas.getVersion(),
                haSas.getInternalLastAccessedTime(),
                0L, //maxinactiveinterval
                sessionState,
                haSas.getExtraParameters() //containerExtraParam
            );
        simpleMetadata.setBeKey(haSas.getBeKey());
        simpleMetadata.setOwningInstanceName(ReplicationUtil.getInstanceName());
        try {       
            replicator.save(haSas.getId(), //id
                    simpleMetadata, haSas.isReplicated());
        } catch (BackingStoreException ex) {
            IOException ex1 =
                (IOException) new IOException("Error during save: " + ex.getMessage()).initCause(ex);
            throw ex1;
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

    }

    public ReplicationState getTransmitState(HASipApplicationSession haSas) throws IOException {
        SipTransactionPersistentManager mgr
            = (SipTransactionPersistentManager)this.getSipSessionManager();
        BackingStore replicator = mgr.getSipApplicationSessionBackingStore();
        if(!(replicator instanceof JxtaBackingStoreImpl)) {
            return null;
        }
        JxtaBackingStoreImpl jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        ReplicationState transmitState = null;
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

     */
    public void remove(String id) throws IOException {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("SipApplicationSessionStoreImpl>>remove" + " id: " + id);                      
        }
        BackingStore replicator = this.getBackingStore();
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("SipApplicationSessionStoreImpl>>remove: replicator: " + replicator);                      
        }       
        try {
            replicator.remove(id);
        } catch (BackingStoreException ex) {
            IOException ex1 =
                (IOException) new IOException("Error during remove: " + ex.getMessage()).initCause(ex);
            throw ex1;      
        }
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

     */
    public void remove(String id, String originatingInstanceName, int count) throws IOException {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("SipApplicationSessionStoreImpl>>remove" + " id: " + id + " originatingInstanceName: " + originatingInstanceName);                      
        }
        BackingStore replicator = this.getBackingStore();
        if(!(replicator instanceof JxtaBackingStoreImpl)) {
            return;
        }
        JxtaBackingStoreImpl jxtaReplicator
            = (JxtaBackingStoreImpl)replicator;
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

     * @param sas SipApplicationSession to be saved
     *
     * @exception IOException if an input/output error occurs
     */   
    public void updateContainerExtraParam(HASipApplicationSession sas) throws IOException {
        BackingStore replicator = this.getBackingStore();
        JxtaBackingStoreImpl jxtaReplicator = null;
        if(replicator instanceof JxtaBackingStoreImpl) {
            jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        }
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("SipApplicationSessionStoreImpl>>updateContainerExtraParam: replicator: " + replicator);                      
        }        
        try {
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(sas.getInternalLastAccessedTime(), //internallastaccesstime
                    sas.getVersion(), //version
                    sas.getExtraParameters());
            replicator.save(sas.getId(), smd, sas.isReplicated())//containerExtraParams
        } catch (BackingStoreException ex) {
            IOException ex1 =
                (IOException) new IOException("Error during updateContainerExtraParam: " + ex.getMessage()).initCause(ex);
            throw ex1;
        }
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore

    private ReplicationState findServletTimerViaBroadcast(String id, String version)
        throws BackingStoreException {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ServletTimerStoreImpl>>findServletTimerViaBroadcast");
        }
        BackingStore replicator = this.getBackingStore();
        JxtaBackingStoreImpl jxtaReplicator = null;
        if(replicator instanceof JxtaBackingStoreImpl) {
            jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        }
        if(_logger.isLoggable(Level.FINE)) {
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.