Package org.apache.qpid.server.model

Examples of org.apache.qpid.server.model.State


            throws AccessControlException, IllegalArgumentException
    {
        attributes = new HashMap<String, Object>(attributes);

        String         name     = getStringAttribute(Exchange.NAME, attributes, null);
        State          state    = getEnumAttribute(State.class, Exchange.STATE, attributes, State.ACTIVE);
        boolean        durable  = getBooleanAttribute(Exchange.DURABLE, attributes, false);
        LifetimePolicy lifetime = getEnumAttribute(LifetimePolicy.class, Exchange.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
        String         type     = getStringAttribute(Exchange.TYPE, attributes, null);
        long           ttl      = getLongAttribute(Exchange.TIME_TO_LIVE, attributes, 0l);
View Full Code Here


            {
                throw new IllegalArgumentException("Sort key is not specified for sorted queue");
            }
        }
        String         name     = getStringAttribute(Queue.NAME, attributes, null);
        State          state    = getEnumAttribute(State.class, Queue.STATE, attributes, State.ACTIVE);
        boolean        durable  = getBooleanAttribute(Queue.DURABLE, attributes, false);
        LifetimePolicy lifetime = getEnumAttribute(LifetimePolicy.class, Queue.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
        long           ttl      = getLongAttribute(Queue.TIME_TO_LIVE, attributes, 0l);
        boolean        exclusive= getBooleanAttribute(Queue.EXCLUSIVE, attributes, false);
View Full Code Here

            throws AccessControlException, IllegalArgumentException
    {
        attributes = new HashMap<String, Object>(attributes);

        String         name     = getStringAttribute(Exchange.NAME, attributes, null);
        State          state    = getEnumAttribute(State.class, Exchange.STATE, attributes, State.ACTIVE);
        boolean        durable  = getBooleanAttribute(Exchange.DURABLE, attributes, false);
        LifetimePolicy lifetime = getEnumAttribute(LifetimePolicy.class, Exchange.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
        String         type     = getStringAttribute(Exchange.TYPE, attributes, null);
        long           ttl      = getLongAttribute(Exchange.TIME_TO_LIVE, attributes, 0l);
View Full Code Here

            {
                throw new IllegalArgumentException("Sort key is not specified for sorted queue");
            }
        }
        String         name     = getStringAttribute(Queue.NAME, attributes, null);
        State          state    = getEnumAttribute(State.class, Queue.STATE, attributes, State.ACTIVE);
        boolean        durable  = getBooleanAttribute(Queue.DURABLE, attributes, false);
        LifetimePolicy lifetime = getEnumAttribute(LifetimePolicy.class, Queue.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
        long           ttl      = getLongAttribute(Queue.TIME_TO_LIVE, attributes, 0l);
        boolean        exclusive= getBooleanAttribute(Queue.EXCLUSIVE, attributes, false);
View Full Code Here

    protected FileSystemPreferencesProvider(UUID id, Map<String, Object> attributes, AuthenticationProvider authenticationProvider,
            TaskExecutor taskExecutor)
    {
        super(id, DEFAULTS, MapValueConverter.convert(attributes, ATTRIBUTE_TYPES), taskExecutor);
        State state = MapValueConverter.getEnumAttribute(State.class, STATE, attributes, State.INITIALISING);
        _state = new AtomicReference<State>(state);
        addParent(AuthenticationProvider.class, authenticationProvider);
        _authenticationProvider = authenticationProvider;
        _store = new FileSystemPreferencesStore(new File(MapValueConverter.getStringAttribute(PATH, attributes)));
    }
View Full Code Here

    }

    @Override
    public boolean setState(State currentState, State desiredState) throws IllegalStateTransitionException, AccessControlException
    {
        State state = _state.get();
        if (desiredState == State.DELETED)
        {
            if ((state == State.INITIALISING || state == State.ACTIVE || state == State.STOPPED || state == State.QUIESCED || state == State.ERRORED)
                    && _state.compareAndSet(state, State.DELETED))
            {
View Full Code Here

        _authManager = authManager;
        _broker = broker;
        _supportedAttributes = createSupportedAttributes(attributeNames);
        _factories = getAuthenticationManagerFactories();

        State state = MapValueConverter.getEnumAttribute(State.class, STATE, attributes, State.INITIALISING);
        _state = new AtomicReference<State>(state);
        addParent(Broker.class, broker);

        // set attributes now after all attribute names are known
        if (attributes != null)
View Full Code Here

    @Override
    public boolean setState(State currentState, State desiredState)
            throws IllegalStateTransitionException, AccessControlException
    {
        State state = _state.get();
        if(desiredState == State.DELETED)
        {
            String providerName = getName();

            // verify that provider is not in use
View Full Code Here

            throws AccessControlException, IllegalArgumentException
    {
        attributes = new HashMap<String, Object>(attributes);

        String         name     = MapValueConverter.getStringAttribute(Exchange.NAME, attributes, null);
        State          state    = MapValueConverter.getEnumAttribute(State.class, Exchange.STATE, attributes, State.ACTIVE);
        boolean        durable  = MapValueConverter.getBooleanAttribute(Exchange.DURABLE, attributes, false);
        LifetimePolicy lifetime = MapValueConverter.getEnumAttribute(LifetimePolicy.class, Exchange.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
        String         type     = MapValueConverter.getStringAttribute(Exchange.TYPE, attributes, null);
        long           ttl      = MapValueConverter.getLongAttribute(Exchange.TIME_TO_LIVE, attributes, 0l);
View Full Code Here

                throw new IllegalArgumentException("Sort key is not specified for sorted queue");
            }
        }

        String         name     = MapValueConverter.getStringAttribute(Queue.NAME, attributes, null);
        State          state    = MapValueConverter.getEnumAttribute(State.class, Queue.STATE, attributes, State.ACTIVE);
        boolean        durable  = MapValueConverter.getBooleanAttribute(Queue.DURABLE, attributes, false);
        LifetimePolicy lifetime = MapValueConverter.getEnumAttribute(LifetimePolicy.class, Queue.LIFETIME_POLICY, attributes, LifetimePolicy.PERMANENT);
        long           ttl      = MapValueConverter.getLongAttribute(Queue.TIME_TO_LIVE, attributes, 0l);
        boolean        exclusive= MapValueConverter.getBooleanAttribute(Queue.EXCLUSIVE, attributes, false);
View Full Code Here

TOP

Related Classes of org.apache.qpid.server.model.State

Copyright © 2018 www.massapicom. 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.