Examples of BackingStore


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

    public ReplicationState getTransmitState(String ssoId, SingleSignOnEntry ssoEntry) throws IOException {
       if(parent == null) {
            return null;
        }
        BackingStore replicator = parent.getBackingStore();
        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

            _logger.warning("ReplicationSSOStore>>remove: container null");
        }
        if(parent == null) {
            return;
        }
        BackingStore replicator = parent.getBackingStore();
        if(_logger.isLoggable(Level.FINE)) {
            _logger.fine("ReplicationSSOStore>>remove: replicator: " + replicator);
        }       
        try {
            replicator.remove(ssoId);    //ssoid
        } 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

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

            _logger.warning("ReplicationSSOStore>>updateLastAccessTime: container null");
        }
        if(parent == null) {
            return;
        }
        BackingStore replicator = parent.getBackingStore();
        if(_logger.isLoggable(Level.FINE)) {
            _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

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

    public void setBackingStore(BackingStore aBackingStore) {
        backingStore = aBackingStore;
    }

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

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

        //this is always true for sfsbs
        if(env != null) {
            env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, true);
            env.put(SESSION_MANAGER_PROPERTY, this);
        }
        BackingStore backingStore = null;
        try {
            backingStore = storeFactory.createBackingStore(
                        this.getContainerID(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
View Full Code Here

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

            SFSBBeanState sfsBean = beanStates[i];
            if(_logger.isLoggable(Level.FINE)) {
                _logger.log(Level.FINE,
                    "ReplicatedEjbStore aggregate save bean[" + i + "]=" + sfsBean);
            }
            BackingStore replicator = this.getBackingStoreForBean(sfsBean);
            if(replicator == null) {
                //this should not happen
                if(_logger.isLoggable(Level.FINE)) {
                    _logger.log(Level.FINE,
                        "ReplicatedEjbStore aggregate save bean[" + i + "]=" + "unable to find replicator");
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 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

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

            _logger.exiting("ReplicatedEjbStore", "saveForRepair");
        }
    }
   
    private BackingStore getBackingStoreForBean(SFSBBeanState beanState) {
        BackingStore result = null;
        long longContId = beanState.getContainerId();
        String containerId = getContainerIDAsString(longContId);
        ReplicationMessageRouter messageRouter = null;
        if (Globals.IS_SECURITY_ENABLED) {
            messageRouter = (ReplicationMessageRouter)
View Full Code Here

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

   
    private ReplicationState findBeanViaBroadcast(String id) throws BackingStoreException {

        //FIXME this is from web tier do multi-cast to cluster member and get back state
        //insure the result will come back correctly      
        BackingStore replicator = getBackingStore();
        JxtaBackingStoreImpl jxtaReplicator = null;
        if(replicator instanceof JxtaBackingStoreImpl) {
            jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        }
        //System.out.println("in new API findBeanViaBroadcast: replicator: " + replicator);
View Full Code Here

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 remove: replicator: " + replicator);
        try {
            replicator.remove(id.toString());    //bean id
        } catch (BackingStoreException ex) {
            //FIXME
        }
        if(_logger.isLoggable(Level.FINE)) {
            _logger.exiting("ReplicatedEjbStore", "remove", new Boolean(result));
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.