Examples of BackingCacheEntryStoreConfig


Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

    abstract Collection<ServiceController<?>> installRuntimeServices(OperationContext context, ModelNode operation, ModelNode model, ServiceVerificationHandler verificationHandler) throws OperationFailedException;

    ServiceController<?> installBackingCacheEntryStoreSourceService(final BackingCacheEntryStoreSourceService<?, ?, ?, ?> service, final OperationContext context,
                                                                    final ModelNode model, final ServiceVerificationHandler verificationHandler) throws OperationFailedException {
        BackingCacheEntryStoreConfig config = service.getValue();
        config.setIdleTimeout(PassivationStoreResourceDefinition.IDLE_TIMEOUT.resolveModelAttribute(context, model).asLong());
        config.setIdleTimeoutUnit(TimeUnit.valueOf(PassivationStoreResourceDefinition.IDLE_TIMEOUT_UNIT.resolveModelAttribute(context, model).asString()));
        ModelNode maxSizeModel = MAX_SIZE_ATTR.resolveModelAttribute(context, model);
        if (maxSizeModel.isDefined()) {
            config.setMaxSize(maxSizeModel.asInt());
        }
        ServiceBuilder<?> builder = service.build(context.getServiceTarget());
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
        }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

        if (this.executor != null) {
            StatefulTimeoutInfo timeout = this.store.getTimeout();
            if (timeout != null && timeout.getValue() != -1) {
                this.schedule(this.expirationFutures, id, this.removeTaskFactory, timeout.getValue(), timeout.getTimeUnit());
            }
            BackingCacheEntryStoreConfig config = this.store.getConfig();
            this.schedule(this.passivationFutures, id, this.passivateTaskFactory, config.getIdleTimeout(), config.getIdleTimeoutUnit());
        }
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

    }

    ServiceController<?> installRuntimeService(OperationContext context, ModelNode model, ServiceVerificationHandler verificationHandler) throws OperationFailedException {

        BackingCacheEntryStoreSourceService<?, ?, ?, ?> service = this.createService(model);
        BackingCacheEntryStoreConfig config = service.getValue();
        if (model.hasDefined(EJB3SubsystemModel.IDLE_TIMEOUT)) {
            config.setIdleTimeout(model.get(EJB3SubsystemModel.IDLE_TIMEOUT).asLong());
        }
        if (model.hasDefined(EJB3SubsystemModel.IDLE_TIMEOUT_UNIT)) {
            config.setIdleTimeoutUnit(TimeUnit.valueOf(model.get(EJB3SubsystemModel.IDLE_TIMEOUT_UNIT).asString()));
        }
        if (model.hasDefined(EJB3SubsystemModel.MAX_SIZE)) {
            config.setMaxSize(model.get(EJB3SubsystemModel.MAX_SIZE).asInt());
        }
        ServiceBuilder<?> builder = service.build(context.getServiceTarget());
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
        }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

    }

    ServiceController<?> installRuntimeService(OperationContext context, ModelNode model, ServiceVerificationHandler verificationHandler) throws OperationFailedException {

        BackingCacheEntryStoreSourceService<?, ?, ?, ?> service = this.createService(model);
        BackingCacheEntryStoreConfig config = service.getValue();
        if (model.hasDefined(EJB3SubsystemModel.IDLE_TIMEOUT)) {
            config.setIdleTimeout(model.get(EJB3SubsystemModel.IDLE_TIMEOUT).asLong());
        }
        if (model.hasDefined(EJB3SubsystemModel.IDLE_TIMEOUT_UNIT)) {
            config.setIdleTimeoutUnit(TimeUnit.valueOf(model.get(EJB3SubsystemModel.IDLE_TIMEOUT_UNIT).asString()));
        }
        if (model.hasDefined(EJB3SubsystemModel.MAX_SIZE)) {
            config.setMaxSize(model.get(EJB3SubsystemModel.MAX_SIZE).asInt());
        }
        ServiceBuilder<?> builder = service.build(context.getServiceTarget());
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
        }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

        if (this.executor != null) {
            StatefulTimeoutInfo timeout = this.store.getTimeout();
            if (timeout != null && timeout.getValue() != -1) {
                this.schedule(this.expirationFutures, id, this.removeTaskFactory, timeout.getValue(), timeout.getTimeUnit());
            }
            BackingCacheEntryStoreConfig config = this.store.getConfig();
            this.schedule(this.passivationFutures, id, this.passivateTaskFactory, config.getIdleTimeout(), config.getIdleTimeoutUnit());
        }
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

        if (this.executor != null) {
            StatefulTimeoutInfo timeout = this.store.getTimeout();
            if (timeout != null && timeout.getValue() != -1) {
                this.schedule(this.expirationFutures, id, this.removeTaskFactory, timeout.getValue(), timeout.getTimeUnit());
            }
            BackingCacheEntryStoreConfig config = this.store.getConfig();
            this.schedule(this.passivationFutures, id, this.passivateTaskFactory, config.getIdleTimeout(), config.getIdleTimeoutUnit());
        }
    }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

    }

    abstract Collection<ServiceController<?>> installRuntimeServices(OperationContext context, ModelNode model, ServiceVerificationHandler verificationHandler) throws OperationFailedException;

    ServiceController<?> installBackingCacheEntryStoreSourceService(BackingCacheEntryStoreSourceService<?, ?, ?, ?> service, OperationContext context, ModelNode model, ServiceVerificationHandler verificationHandler) throws OperationFailedException {
        BackingCacheEntryStoreConfig config = service.getValue();
        if (model.hasDefined(EJB3SubsystemModel.IDLE_TIMEOUT)) {
            config.setIdleTimeout(model.get(EJB3SubsystemModel.IDLE_TIMEOUT).asLong());
        }
        if (model.hasDefined(EJB3SubsystemModel.IDLE_TIMEOUT_UNIT)) {
            config.setIdleTimeoutUnit(TimeUnit.valueOf(model.get(EJB3SubsystemModel.IDLE_TIMEOUT_UNIT).asString()));
        }
        if (model.hasDefined(EJB3SubsystemModel.MAX_SIZE)) {
            config.setMaxSize(model.get(EJB3SubsystemModel.MAX_SIZE).asInt());
        }
        ServiceBuilder<?> builder = service.build(context.getServiceTarget());
        if (verificationHandler != null) {
            builder.addListener(verificationHandler);
        }
View Full Code Here

Examples of org.jboss.as.ejb3.cache.spi.BackingCacheEntryStoreConfig

        if (this.executor != null) {
            StatefulTimeoutInfo timeout = this.store.getTimeout();
            if (timeout != null && timeout.getValue() != -1) {
                this.schedule(this.expirationFutures, id, this.removeTaskFactory, timeout.getValue(), timeout.getTimeUnit());
            }
            BackingCacheEntryStoreConfig config = this.store.getConfig();
            this.schedule(this.passivationFutures, id, this.passivateTaskFactory, config.getIdleTimeout(), config.getIdleTimeoutUnit());
        }
    }
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.