Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
Copyright 2008 Bluestem Software LLC. All Rights Reserved. This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>.
 
 
 package org.bluestemsoftware.open.eoa.ext.feature.jms.server.activemq.mgmt.jmx;
 
 
 import  org.bluestemsoftware.specification.eoa.ext.ExtensionFactoryContext;
 
 public class Subscription implements SubscriptionMBean {
 
     private SubscriptionViewMBean underlying;
     private ExtensionFactoryContext factoryContext;
 
     public Subscription(ExtensionFactoryContext factoryContextSubscriptionViewMBean underlying) {
         this. = factoryContext;
         this. = underlying;
     }
 
     public String getClientId() {
         Thread thread = Thread.currentThread();
         ClassLoader cl = thread.getContextClassLoader();
         try {
             thread.setContextClassLoader(.getClassLoader());
             return .getClientId();
 
         } finally {
             thread.setContextClassLoader(cl);
         }
     }
 
     public String getConnectionId() {
 
         Thread thread = Thread.currentThread();
         ClassLoader cl = thread.getContextClassLoader();
         try {
             thread.setContextClassLoader(.getClassLoader());
             return .getConnectionId();
         } finally {
             thread.setContextClassLoader(cl);
         }
     }
 
     public long getDequeueCounter() {
 
         Thread thread = Thread.currentThread();
         ClassLoader cl = thread.getContextClassLoader();
         try {
             thread.setContextClassLoader(.getClassLoader());
             return .getDequeueCounter();
         } finally {
             thread.setContextClassLoader(cl);
         }
     }
 
     public String getDestinationName() {
 
         Thread thread = Thread.currentThread();
         ClassLoader cl = thread.getContextClassLoader();
         try {
             thread.setContextClassLoader(.getClassLoader());
             return .getDestinationName();
         } finally {
             thread.setContextClassLoader(cl);
         }
     }
 
     public long getDispachedCounter() {
 
         Thread thread = Thread.currentThread();
         ClassLoader cl = thread.getContextClassLoader();
         try {
             thread.setContextClassLoader(.getClassLoader());
             return .getDispachedCounter();
         } finally {
             thread.setContextClassLoader(cl);
         }
     }
 
     public int getDispatchedQueueSize() {
 
         Thread thread = Thread.currentThread();
         ClassLoader cl = thread.getContextClassLoader();
         try {
            thread.setContextClassLoader(.getClassLoader());
            return .getDispatchedQueueSize();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public long getEnqueueCounter() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getEnqueueCounter();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public int getMaximumPendingMessageLimit() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getMaximumPendingMessageLimit();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public int getPendingQueueSize() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getPendingQueueSize();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public int getPrefetchSize() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getPrefetchSize();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public byte getPriority() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getPriority();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public String getSelector() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getSelector();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public long getSessionId() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getSessionId();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public long getSubcriptionId() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getSubcriptionId();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public String getSubcriptionName() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .getSubcriptionName();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isActive() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isActive();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isDestinationQueue() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isDestinationQueue();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isDestinationTemporary() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isDestinationTemporary();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isDestinationTopic() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isDestinationTopic();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isDurable() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isDurable();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isExclusive() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isExclusive();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isNoLocal() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isNoLocal();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public boolean isRetroactive() {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            return .isRetroactive();
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
    public void setSelector(String selectorthrows InvalidSelectorExceptionUnsupportedOperationException {
        Thread thread = Thread.currentThread();
        ClassLoader cl = thread.getContextClassLoader();
        try {
            thread.setContextClassLoader(.getClassLoader());
            .setSelector(selector);
        } finally {
            thread.setContextClassLoader(cl);
        }
    }
New to GrepCode? Check out our FAQ X