Package com.sun.appserv.ha.spi

Examples of com.sun.appserv.ha.spi.BackingStore.save()


        if(beKey != null) {
            simpleMetadata.setBeKey(beKey);
        }
        try {
            HASession haSess = (HASession)session;
            replicator.save(session.getIdInternal(), //id
                    simpleMetadata, haSess.isPersistent())//TODO: Revist the last param
        } catch (BackingStoreException ex) {
            IOException ex1 =
                (IOException) new IOException("Error during save: " + ex.getMessage()).initCause(ex);
            throw ex1;
View Full Code Here


        String beKey = session.getBeKey();
        if(beKey != null) {
            simpleMetadata.setBeKey(beKey);
        }       
        try {       
            replicator.save(session.getIdInternal(), //id
                    simpleMetadata, !((HASession) session).isPersistent())//TODO: Revist the last param
        } catch (BackingStoreException ex) {
            IOException ex1 =
                (IOException) new IOException("Error during save: " + ex.getMessage()).initCause(ex);
            throw ex1;
View Full Code Here

                    ((BaseHASession)session).getLastAccessedTimeInternal(), //lastaccesstime
                    session.getVersion()); //version
            */
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(session.getVersion(),
                    ((BaseHASession)session).getLastAccessedTimeInternal());
            replicator.save(session.getIdInternal(), smd, !((HASession) session).isPersistent()); //version
        } catch (BackingStoreException ex) {
            //FIXME
        }
    }       
   
View Full Code Here

        }
        BackingStore replicator = parent.getBackingStore();
        SimpleMetadata simpleMetadata =
            createSimpleMetadata(ssoId, (HASingleSignOnEntry)ssoEntry);
        try {
            replicator.save(ssoId, //id
                            simpleMetadata, true)//TODO: Check last param
        } catch (BackingStoreException ex) {
            // FIXME evaluate log level
            if (_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE, " exception occurred in save", ex);
View Full Code Here

            _logger.fine("ReplicationSSOStore>>updateLastAccessTime: replicator: " + replicator);
        }        
        try {
            //FIXED: replicator.updateLastAccessTime(ssoId, lat, 0L);
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(lat, 0L);
            replicator.save(ssoId, smd, false);
        } catch (BackingStoreException ex) {
            // FIXME evaluate log level
            if (_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE, "exception occurred in remove", ex);
            }
View Full Code Here

        BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API save: replicator: " + replicator);
        SimpleMetadata simpleMetadata =
            createSimpleMetadata(sfsBean);
        try {
            replicator.save(sfsBean.getId().toString(), //id
                    simpleMetadata, sfsBean.isNew())//SimpleMetadata
        } catch (BackingStoreException ex) {
            //FIXME
        }
        //System.out.println("ReplicatedEjbStore>>save time = " + (System.currentTimeMillis() - tempStartTime));        
View Full Code Here

        BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API updateLastAccessTime: replicator: " + replicator);
        try {
            //FIXME when Mahesh fix for version comes in
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(0L, time);
            replicator.save(sessionKey.toString(), smd, false);
        } catch (BackingStoreException ex) {
            //FIXME
        }
       
    }    
View Full Code Here

        try {
            SimpleMetadata smd = SimpleMetadataFactory.createSimpleMetadata(
                    df.getInternalLastAccessedTime(), //lastaccesstime
                    df.getVersion(), //version
                    df.getExtraParameters());
            replicator.save(df.getDialogId(), smd, df.isReplicated());
        } catch (BackingStoreException ex) {
            IOException ex1 = (IOException)
                new IOException("Error during updateContainerExtraParam: " +
                                ex.getMessage()).initCause(ex);
            throw ex1;
View Full Code Here

                haDialogFragment.getExtraParameters() // containerExtraParam
            );
        simpleMetadata.setBeKey(haDialogFragment.getBeKey());
        simpleMetadata.setOwningInstanceName(ReplicationUtil.getInstanceName());
        try {
            replicator.save(haDialogFragment.getDialogId(), //id
                    simpleMetadata, haDialogFragment.isReplicated())//FIXME: Revist last param
        } catch (BackingStoreException ex) {
            IOException ex1 =
                (IOException) new IOException("Error during save: " + ex.getMessage()).initCause(ex);
            throw ex1;
View Full Code Here

                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

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.