Package org.apache.qpid.management.domain.model

Examples of org.apache.qpid.management.domain.model.AccessMode


     */
    public void testGetAccessModeOk() throws UnknownAccessCodeException
    {
        AccessModeMapping mapping = new AccessModeMapping(TestConstants.VALID_CODE,AccessMode.RW);
        Configuration.getInstance().addAccessModeMapping(mapping);
        AccessMode accessMode = Configuration.getInstance().getAccessMode(TestConstants.VALID_CODE);

        assertSame(AccessMode.RW,accessMode);
    }
View Full Code Here


     * @return the access mode associated to the given code.
     * @throws UnknownAccessCodeException when the given code is not associated to any access mode.
     */
    public AccessMode getAccessMode(int code) throws UnknownAccessCodeException
    {
        AccessMode result = _accessModes.get(code);
        if (result == null)
        {
            throw new UnknownAccessCodeException(code);
        }
        return result;
View Full Code Here

     *
     * @param mapping the mapping that will be added.
     */
    void addAccessModeMapping(AccessModeMapping mapping){
        int code = mapping.getCode();
        AccessMode accessMode = mapping.getAccessMode();
        _accessModes.put(code, accessMode);
       
        LOGGER.info(Messages.QMAN_000006_ACCESS_MODE_MAPPING_CONFIGURED, code,accessMode);       
    }   
View Full Code Here

     * @return the access mode associated to the given code.
     * @throws UnknownAccessCodeException when the given code is not associated to any access mode.
     */
    public AccessMode getAccessMode(int code) throws UnknownAccessCodeException
    {
        AccessMode result = _accessModes.get(code);
        if (result == null)
        {
            throw new UnknownAccessCodeException(code);
        }
        return result;
View Full Code Here

     * @return the access mode associated to the given code.
     * @throws UnknownAccessCodeException when the given code is not associated to any access mode.
     */
    public AccessMode getAccessMode(int code) throws UnknownAccessCodeException
    {
        AccessMode result = _accessModes.get(code);
        if (result == null)
        {
            throw new UnknownAccessCodeException(code);
        }
        return result;
View Full Code Here

TOP

Related Classes of org.apache.qpid.management.domain.model.AccessMode

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.