Examples of BackingStore


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

        ReplicatedSFSBStoreManager mgr
            = (ReplicatedSFSBStoreManager)this.getSFSBStoreManager();
        if(mgr == null) {
            return result;
        }
        BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API removeExpiredSessions: replicator: " + replicator);
        try {
            replicator.removeExpired();
        } catch (BackingStoreException ex) {
            //FIXME
        }
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ReplicatedEjbStore>>removeExpiredSessions():number of expired beans = " + result);
View Full Code Here

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

        ReplicatedSFSBStoreManager mgr
            = (ReplicatedSFSBStoreManager)this.getSFSBStoreManager();
        if(mgr == null) {
            return;
        }
        BackingStore replicator = mgr.getBackingStore();
        //System.out.println("in new API undeployContainer: replicator: " + replicator);
        try {
            replicator.destroy();
        } catch (BackingStoreException ex) {
            //FIXME
        }
        return;
View Full Code Here

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

        ReplicatedSFSBStoreManager mgr
            = (ReplicatedSFSBStoreManager)this.getSFSBStoreManager();
        if(mgr == null) {
            return;
        }
        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

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

    private ReplicationState findDialogFragmentViaBroadcast(String id, String version)
        throws BackingStoreException {
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("DialogFragmentStoreImpl>>findDialogFragmentViaBroadcast");                      
        }       
        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 if an input/output error occurs
     */
    public void updateContainerExtraParam(HADialogFragment df)
            throws IOException {
        BackingStore replicator = this.getBackingStore();
        JxtaBackingStoreImpl jxtaReplicator = null;
        if(replicator instanceof JxtaBackingStoreImpl) {
            jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        }
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("DialogFragmentStoreImpl>>updateContainerExtraParam: replicator: " + replicator);
        }
        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

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

     *
     * @exception IOException
     */
    public void doSave(HADialogFragment haDialogFragment) throws IOException {
        byte[] sessionState = ReplicationUtil.getByteArray(haDialogFragment, isReplicationCompressionEnabled());
        BackingStore replicator = this.getBackingStore();
        SimpleMetadata simpleMetadata =       
            SimpleMetadataFactory.createSimpleMetadata(
                haDialogFragment.getVersion(),
                haDialogFragment.getInternalLastAccessedTime(), // internallastAccessedTime
                0L, // maxinactiveinterval
                sessionState,
                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

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

    public ReplicationState getTransmitState(HADialogFragment haDialogFragment) throws IOException {
        byte[] sessionState = ReplicationUtil.getByteArray(haDialogFragment, isReplicationCompressionEnabled());
        ReplicationDialogFragmentManager mgr
            = this.getDialogFragmentManager();
        ReplicationState transmitState = null;
        BackingStore replicator = mgr.getDialogFragmentBackingStore();
        if(!(replicator instanceof JxtaBackingStoreImpl)) {
            return null;
        }
        JxtaBackingStoreImpl jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        SimpleMetadata simpleMetadata =
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("DialogFragmentStoreImpl>>remove" + " id: " + id);                      
        }
        BackingStore replicator = this.getBackingStore();
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("DialogFragmentStoreImpl>>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

     * @return the number of expired DialogFragment replicas that were
     * removed
     */   
    public int removeExpiredDialogFragments() {
        int result = 0;
        BackingStore replicator = getBackingStore();
        try {
            result = replicator.removeExpired();
        } catch (BackingStoreException ex) {
             _logger.log(Level.WARNING, "df_remove_expired_error");
             _logger.log(Level.WARNING, ex.getMessage(), ex);
        }
        if(_logger.isLoggable(Level.FINE)) {
View Full Code Here

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

        env.put(SUPPRESS_LOAD_ACK_PROPERTY, Boolean.TRUE);
        env.put(COMMAND_MAP, commandMap);
        //does this manager & backing store support replication compression
        env.put(REPLICATION_COMPRESSION_PROPERTY, Boolean.valueOf(this.isReplicationCompressionEnabled()));
       env.put(SESSION_MANAGER_PROPERTY, this);
        BackingStore backingStore = null;
        try {
            backingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
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.