Examples of BackingStore


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

        Properties inputEnv
            = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        Properties env = (Properties)inputEnv.clone();       
        //this is always true for sso
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, true);       
        BackingStore backingStore = null;
        env.put(SESSION_MANAGER_PROPERTY, this);
        try {
            //FIXED: backingStore = storeFactory.createBackingStore(
            //FIXED:            SimpleMetadata.class,     //type
            //FIXED:            this.getApplicationId(), //appid
View Full Code Here

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

        ssoEntryIds.addAll(ssoEntryIdsSet);
        return ssoEntryIds;
    }
   
    List<FederatedQueryListElement> getSSOEntryIdsThirdPartySPI(String owningInstanceName) {
        BackingStore backingStore
            = this.getBackingStore();
        SSOExtraParams ssoExtraParamCriteria
            = SSOExtraParams.createSearchCriteria(this, owningInstanceName);
        Collection<SSOExtraParams> ssoColl
            = backingStore.findByCriteria(null, ssoExtraParamCriteria);

        List<FederatedQueryListElement> ssoEntryIds = new ArrayList();
        //using set to avoid dups
        HashSet ssoEntryIdsSet = new HashSet();       
        Iterator<SSOExtraParams> ssoResults =
View Full Code Here

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

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

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

        sessionIds.addAll(sessionIdsSet);
        return sessionIds;
    }

    List<FederatedQueryListElement> getSessionIdsThirdPartySPI(String owningInstanceName) {
        BackingStore backingStore
            = this.getBackingStore();
        HttpSessionExtraParams httpExtraParamCriteria
            = HttpSessionExtraParams.createSearchCriteria(this, owningInstanceName);
        Collection<HttpSessionExtraParams> httpColl
            = backingStore.findByCriteria(null, httpExtraParamCriteria);

        List<FederatedQueryListElement> sessionIds = new ArrayList<FederatedQueryListElement>();
        //using set to avoid dups
        HashSet sessionIdsSet = new HashSet();
        Iterator<HttpSessionExtraParams> httpResults =
View Full Code Here

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

    public void setCompositeBackingStore(BackingStore aBackingStore) {
        compositeBackingStore = aBackingStore;
    }
   
    boolean isThirdPartyBackingStoreInUse() {
        BackingStore backingStore
            = getBackingStore();
        return (!(backingStore instanceof JxtaBackingStoreImpl));
    }   
View Full Code Here

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

        //does this manager & backing store support duplicate id semantics
        //for batch replication usage
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, Boolean.valueOf(this.isDuplicateIdsSemanticsAllowed()));
        env.put(SUPPRESS_LOAD_ACK_PROPERTY, Boolean.TRUE);
        env.put(SESSION_MANAGER_PROPERTY, this); // this class itself does not implement ReplicationManager, but all concrete subclasses do implement ReplicationManager, so it should be ok.
        BackingStore backingStore = null;
        try {
            backingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        SimpleMetadata.class,     //type
View Full Code Here

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

            = BackingStoreRegistry.getInstance();
        Properties env
            = backingStoreRegistry.getFactoryClassEnv(getPassedInPersistenceType());
        env.put(DUPLICATE_IDS_SEMANTICS_PROPERTY, Boolean.valueOf(this.isDuplicateIdsSemanticsAllowed()));
        env.put(SESSION_MANAGER_PROPERTY, this); // this class itself does not implement ReplicationManager, but all concrete subclasses do implement ReplicationManager, so it should be ok.       
        BackingStore compositeBackingStore = null;
        try {
            compositeBackingStore = storeFactory.createBackingStore(
                        this.getApplicationId(), //appid
                        String.class,
                        CompositeMetadata.class,     //type
View Full Code Here

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

        //closeConnection();
    }
   
    public SingleSignOnEntry loadSSO(String ssoId, ReplicationSingleSignOn repSingleSignOn) throws IOException {
        try {
            BackingStore backingStore = parent.getBackingStore();
            SimpleMetadata metaData = (SimpleMetadata) backingStore.load(ssoId, null);
            if(_logger.isLoggable(Level.FINE)) {
                _logger.fine("ReplicationSSOStore>>loadSSO:id=" + ssoId +
                        ", metaData=" + metaData);
            }
            return deserializeAndSave(metaData);
View Full Code Here

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

            _logger.warning("ReplicationSSOStore>>findSSOEntryViaBroadcast: container is null");
        }
        if(parent == null) {
            return null;
        }
        BackingStore replicator = parent.getBackingStore();
        JxtaBackingStoreImpl jxtaReplicator = null;
        if(replicator instanceof JxtaBackingStoreImpl) {
            jxtaReplicator = (JxtaBackingStoreImpl)replicator;
        }
View Full Code Here

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

        }        
       
       if(parent == null) {
            return;
        }
        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
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.