|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.j_spaces.jms.utils.GSJMSAdmin
public class GSJMSAdmin
Admin util for the GigaSpaces JMS implementation. It is used by client to obtain JMS resources like connection factories and destinations. If an instance of the class already exists we return the same static instance. It caches the JMS resources.
Method Summary | |
---|---|
void |
createAndBindDestination(boolean isQueue,
String destinationName)
Creates a Destination (GSTopicImpl or GSQueueImpl) and then binds it to the jndi registry. |
void |
destroyAndUnBindDestination(String destinationName)
Destroys a Destination (GSTopicImpl or GSQueueImpl) and then unbinds from the jndi registry. |
int |
getCompressionMinSize()
|
ConnectionFactory |
getConnectionFactory(IJSpace space)
|
ConnectionFactory |
getConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a ConnectionFactory that works with the
specified space proxy. |
ConnectionFactory |
getConnectionFactory(String spaceURL)
|
ConnectionFactory |
getConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a ConnectionFactory that works with the
space in the specified spaceURL. |
static GSJMSAdmin |
getInstance()
Returns a GSJMSAdmin instance. |
Queue |
getQueue(String name)
Returns a Queue with the specified name. |
QueueConnectionFactory |
getQueueConnectionFactory(IJSpace space)
|
QueueConnectionFactory |
getQueueConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a QueueConnectionFactory that works with the
specified space proxy. |
QueueConnectionFactory |
getQueueConnectionFactory(String spaceURL)
|
QueueConnectionFactory |
getQueueConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a QueueConnectionFactory that works with the
space in the specified spaceURL. |
Topic |
getTopic(String name)
Returns a Topic with the specified name. |
TopicConnectionFactory |
getTopicConnectionFactory(IJSpace space)
|
TopicConnectionFactory |
getTopicConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a TopicConnectionFactory that works with the
specified space proxy. |
TopicConnectionFactory |
getTopicConnectionFactory(String spaceURL)
|
TopicConnectionFactory |
getTopicConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a TopicConnectionFactory that works with the
space in the specified spaceURL. |
XAConnectionFactory |
getXAConnectionFactory(IJSpace space)
|
XAConnectionFactory |
getXAConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a XAConnectionFactory that works with the
specified space proxy. |
XAConnectionFactory |
getXAConnectionFactory(String spaceURL)
|
XAConnectionFactory |
getXAConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a XAConnectionFactory that works with the
space in the specified spaceURL. |
XAQueueConnectionFactory |
getXAQueueConnectionFactory(IJSpace space)
|
XAQueueConnectionFactory |
getXAQueueConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a XAQueueConnectionFactory that works with the
specified space proxy. |
XAQueueConnectionFactory |
getXAQueueConnectionFactory(String spaceURL)
|
XAQueueConnectionFactory |
getXAQueueConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a XAQueueConnectionFactory that works with the
space in the specified spaceURL. |
XATopicConnectionFactory |
getXATopicConnectionFactory(IJSpace space)
|
XATopicConnectionFactory |
getXATopicConnectionFactory(IJSpace space,
IMessageConverter messageConverter)
Returns a XATopicConnectionFactory that works with the
specified space proxy. |
XATopicConnectionFactory |
getXATopicConnectionFactory(String spaceURL)
|
XATopicConnectionFactory |
getXATopicConnectionFactory(String spaceURL,
IMessageConverter messageConverter)
Returns a XATopicConnectionFactory that works with the
space in the specified spaceURL. |
Object |
jndiLookup(String name)
Creates a JNDI API InitialContext object if none exists yet. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GSJMSAdmin getInstance()
public ConnectionFactory getConnectionFactory(String spaceURL) throws JMSException
JMSException
public ConnectionFactory getConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws JMSException
ConnectionFactory
that works with the
space in the specified spaceURL. First it tries to find a cached
ConnectionFactory
. If the required instance doesn't
exist in the cache, it finds the space and creates a new
ConnectionFactory
to work with that space.
spaceURL
- space URL
ConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic ConnectionFactory getConnectionFactory(IJSpace space) throws JMSException
JMSException
public ConnectionFactory getConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws JMSException
ConnectionFactory
that works with the
specified space proxy. First it tries to find a cached
ConnectionFactory
. If the required instance doesn't
exist in the cache, it creates a new ConnectionFactory
to work with that space.
space
- the space proxy
ConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic QueueConnectionFactory getQueueConnectionFactory(String spaceURL) throws JMSException
JMSException
public QueueConnectionFactory getQueueConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws JMSException
QueueConnectionFactory
that works with the
space in the specified spaceURL. First it tries to find a cached
QueueConnectionFactory
. If the required instance doesn't
exist in the cache, it finds the space and creates a new
QueueConnectionFactory
to work with that space.
spaceURL
- space URL
QueueConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic TopicConnectionFactory getTopicConnectionFactory(String spaceURL) throws JMSException
JMSException
public TopicConnectionFactory getTopicConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws JMSException
TopicConnectionFactory
that works with the
space in the specified spaceURL. First it tries to find a cached
TopicConnectionFactory
. If the required instance doesn't
exist in the cache, it finds the space and creates a new
TopicConnectionFactory
to work with that space.
spaceURL
- space URL
TopicConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic QueueConnectionFactory getQueueConnectionFactory(IJSpace space) throws JMSException
JMSException
public QueueConnectionFactory getQueueConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws JMSException
QueueConnectionFactory
that works with the
specified space proxy. First it tries to find a cached
QueueConnectionFactory
. If the required instance doesn't
exist in the cache, it creates a new QueueConnectionFactory
to work with that space.
space
- the space proxy
QueueConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic TopicConnectionFactory getTopicConnectionFactory(IJSpace space) throws JMSException
JMSException
public TopicConnectionFactory getTopicConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws JMSException
TopicConnectionFactory
that works with the
specified space proxy. First it tries to find a cached
TopicConnectionFactory
. If the required instance doesn't
exist in the cache, it creates a new TopicConnectionFactory
to work with that space.
space
- the space proxy
TopicConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic XAConnectionFactory getXAConnectionFactory(String spaceURL) throws JMSException
JMSException
public XAConnectionFactory getXAConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws JMSException
XAConnectionFactory
that works with the
space in the specified spaceURL. First it tries to find a cached
XAConnectionFactory
. If the required instance doesn't
exist in the cache, it finds the space and creates a new
XAConnectionFactory
to work with that space.
spaceURL
- space URL
XAConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic XAConnectionFactory getXAConnectionFactory(IJSpace space) throws JMSException
JMSException
public XAConnectionFactory getXAConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws JMSException
XAConnectionFactory
that works with the
specified space proxy. First it tries to find a cached
XAConnectionFactory
. If the required instance doesn't
exist in the cache, it creates a new XAConnectionFactory
to work with that space.
space
- the space proxy
XAConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic XAQueueConnectionFactory getXAQueueConnectionFactory(String spaceURL) throws JMSException
JMSException
public XAQueueConnectionFactory getXAQueueConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws JMSException
XAQueueConnectionFactory
that works with the
space in the specified spaceURL. First it tries to find a cached
XAQueueConnectionFactory
. If the required instance doesn't
exist in the cache, it finds the space and creates a new
XAQueueConnectionFactory
to work with that space.
spaceURL
- space URL
XAQueueConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic XATopicConnectionFactory getXATopicConnectionFactory(String spaceURL) throws JMSException
JMSException
public XATopicConnectionFactory getXATopicConnectionFactory(String spaceURL, IMessageConverter messageConverter) throws JMSException
XATopicConnectionFactory
that works with the
space in the specified spaceURL. First it tries to find a cached
XATopicConnectionFactory
. If the required instance doesn't
exist in the cache, it finds the space and creates a new
XATopicConnectionFactory
to work with that space.
spaceURL
- space URL
XATopicConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic XAQueueConnectionFactory getXAQueueConnectionFactory(IJSpace space) throws JMSException
JMSException
public XAQueueConnectionFactory getXAQueueConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws JMSException
XAQueueConnectionFactory
that works with the
specified space proxy. First it tries to find a cached
XAQueueConnectionFactory
. If the required instance doesn't
exist in the cache, it creates a new XAQueueConnectionFactory
to work with that space.
space
- the space proxy
XAQueueConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic XATopicConnectionFactory getXATopicConnectionFactory(IJSpace space) throws JMSException
JMSException
public XATopicConnectionFactory getXATopicConnectionFactory(IJSpace space, IMessageConverter messageConverter) throws JMSException
XATopicConnectionFactory
that works with the
specified space proxy. First it tries to find a cached
XATopicConnectionFactory
. If the required instance doesn't
exist in the cache, it creates a new XATopicConnectionFactory
to work with that space.
space
- the space proxy
XATopicConnectionFactory
instance
JMSException
- if the was a problem to return the factorypublic Queue getQueue(String name)
Queue
with the specified name.
url
- the space URL.name
- the name of the Queue
Queue
instancepublic Topic getTopic(String name)
Topic
with the specified name.
url
- the space URL.name
- the name of the Topic
Topic
instancepublic int getCompressionMinSize()
public Object jndiLookup(String name) throws NamingException
name
- the name of the object to look for
NamingException
- if name cannot be foundpublic void createAndBindDestination(boolean isQueue, String destinationName) throws NamingException, JMSException
isQueue
- destinationName
-
NamingException
JMSException
public void destroyAndUnBindDestination(String destinationName) throws JMSException
destinationName
-
NamingException
JMSException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |