org.apache.geronimo.console.core.jms
Class TopicBrowserGBean

java.lang.Object
  extended byorg.apache.geronimo.console.core.jms.TopicBrowserGBean
All Implemented Interfaces:
org.apache.geronimo.gbean.GBeanLifecycle, Runnable

public class TopicBrowserGBean
extends Object
implements org.apache.geronimo.gbean.GBeanLifecycle, Runnable


Field Summary
static org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
           
 
Constructor Summary
TopicBrowserGBean(String subscriberName, org.apache.geronimo.connector.AdminObjectWrapper connectionFactoryWrapper, org.apache.geronimo.connector.AdminObjectWrapper topicWrapper)
           
 
Method Summary
 void doFail()
           
 void doStart()
          Start the connection on a topic and add a durable subscription.
 void doStop()
          Close the connection and unregister durable subscription.
static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()
           
 List getMessages()
          Get all the messages since the last call to getMessages().
 void run()
           
 void unsubscribe()
          Remove a durable subscription.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

GBEAN_INFO

public static final org.apache.geronimo.gbean.GBeanInfo GBEAN_INFO
Constructor Detail

TopicBrowserGBean

public TopicBrowserGBean(String subscriberName,
                         org.apache.geronimo.connector.AdminObjectWrapper connectionFactoryWrapper,
                         org.apache.geronimo.connector.AdminObjectWrapper topicWrapper)
Method Detail

run

public void run()
Specified by:
run in interface Runnable

doStart

public void doStart()
             throws org.apache.geronimo.gbean.WaitingException,
                    Exception
Start the connection on a topic and add a durable subscription.

Specified by:
doStart in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception
See Also:
GBeanLifecycle.doStart()

doStop

public void doStop()
            throws org.apache.geronimo.gbean.WaitingException,
                   Exception
Close the connection and unregister durable subscription.

Specified by:
doStop in interface org.apache.geronimo.gbean.GBeanLifecycle
Throws:
org.apache.geronimo.gbean.WaitingException
Exception
See Also:
GBeanLifecycle.doStop()

doFail

public void doFail()
Specified by:
doFail in interface org.apache.geronimo.gbean.GBeanLifecycle

getMessages

public List getMessages()
                 throws Exception
Get all the messages since the last call to getMessages(). If this is the first call returns all the messages sent to the Topic

Returns:
all the messages since the last call to getMessages() or all the messages sent to the topic if this is there was no previous call.
Throws:
Exception

unsubscribe

public void unsubscribe()
                 throws Exception
Remove a durable subscription.

Throws:
Exception

getGBeanInfo

public static org.apache.geronimo.gbean.GBeanInfo getGBeanInfo()


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.