org.objectweb.joram.client.tools.admin
Class AdminController

java.lang.Object
  extended byorg.objectweb.joram.client.tools.admin.AdminController

public class AdminController
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_ADMIN_HOST
           
static java.lang.String DEFAULT_ADMIN_PORT
           
static java.lang.String DEFAULT_JNDI_FACTORY
           
static java.lang.String DEFAULT_JNDI_HOST
           
static java.lang.String DEFAULT_JNDI_PORT
           
static java.lang.String PROP_JNDI_FACTORY
           
static java.lang.String PROP_JNDI_HOST
           
static java.lang.String PROP_JNDI_PORT
           
 
Constructor Summary
AdminController()
           
 
Method Summary
 void connectAdmin(java.lang.String host, int port, java.lang.String user, java.lang.String passwd)
           
 void connectJndi(java.lang.String host, int port, java.lang.String ctxName)
           
 void createConnectionFactory(java.lang.String host, int port, java.lang.String name, java.lang.String type)
           
 void createDestination(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode, java.lang.String name, java.lang.String type)
           
 void createUser(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode, java.lang.String name, java.lang.String passwd)
           
 void deleteObject(org.objectweb.joram.client.tools.admin.JndiTreeNode node)
           
 void deleteUser(org.objectweb.joram.client.tools.admin.UserTreeNode node)
           
 void disconnectAdmin()
           
 void disconnectJndi()
           
protected  java.lang.String findDestinationJndiName(javax.jms.Destination dest)
           
 org.objectweb.joram.client.tools.admin.JndiTreeNode findJndiNodeByName(java.lang.String name)
           
 java.lang.String getAdminConnectionStatus()
           
protected  javax.swing.tree.DefaultTreeModel getAdminTreeModel()
           
 java.util.List getAuthorizedReaders(javax.jms.Destination dest)
           
 java.util.List getAuthorizedWriters(javax.jms.Destination dest)
           
 DeadMQueue getDefaultDMQ(int serverId)
           
 int getDefaultThreshold(int serverId)
           
 DeadMQueue getDestinationDMQ(javax.jms.Destination dest)
           
protected  javax.swing.tree.DefaultTreeModel getJndiTreeModel()
           
 int getPendingMessages(javax.jms.Queue q)
           
 int getPendingRequests(javax.jms.Queue q)
           
 int getQueueThreshold(javax.jms.Queue queue)
           
 int getSubscriptions(javax.jms.Topic t)
           
 DeadMQueue getUserDMQ(User user)
           
 int getUserThreshold(User user)
           
 boolean isAdminConnected()
           
 boolean isFreelyReadable(javax.jms.Destination dest)
           
 boolean isFreelyWritable(javax.jms.Destination dest)
           
 boolean isJndiConnected()
           
protected  void notifyListener(ControllerEvent e)
           
 void refreshAdminData()
           
 void refreshJndiData()
           
 void setControllerEventListener(ControllerEventListener l)
           
 void setDefaultDMQ(int serverId, DeadMQueue dmq)
           
 void setDefaultThreshold(int serverId, int threshold)
           
 void setDestinationDMQ(javax.jms.Destination dest, DeadMQueue dmq)
           
 void setFreeReading(javax.jms.Destination dest)
           
 void setFreeWriting(javax.jms.Destination dest)
           
 void setQueueThreshold(javax.jms.Queue queue, int threshold)
           
 void setReader(User user, javax.jms.Destination dest)
           
 void setUserDMQ(User user, DeadMQueue dmq)
           
 void setUserThreshold(User user, int threshold)
           
 void setWriter(User user, javax.jms.Destination dest)
           
 void stopServer(org.objectweb.joram.client.tools.admin.ServerTreeNode stn)
           
 void unsetDefaultDMQ(int serverId)
           
 void unsetDefaultThreshold(int serverId)
           
 void unsetDestinationDMQ(javax.jms.Destination dest)
           
 void unsetFreeReading(javax.jms.Destination dest)
           
 void unsetFreeWriting(javax.jms.Destination dest)
           
 void unsetQueueThreshold(javax.jms.Queue queue)
           
 void unsetReader(User user, javax.jms.Destination dest)
           
 void unsetUserDMQ(User user)
           
 void unsetUserThreshold(User user)
           
 void unsetWriter(User user, javax.jms.Destination dest)
           
 void updateUser(org.objectweb.joram.client.tools.admin.UserTreeNode userNode, java.lang.String name, java.lang.String passwd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_ADMIN_HOST

public static final java.lang.String DEFAULT_ADMIN_HOST
See Also:
Constant Field Values

DEFAULT_ADMIN_PORT

public static final java.lang.String DEFAULT_ADMIN_PORT
See Also:
Constant Field Values

PROP_JNDI_FACTORY

public static final java.lang.String PROP_JNDI_FACTORY
See Also:
Constant Field Values

PROP_JNDI_HOST

public static final java.lang.String PROP_JNDI_HOST
See Also:
Constant Field Values

PROP_JNDI_PORT

public static final java.lang.String PROP_JNDI_PORT
See Also:
Constant Field Values

DEFAULT_JNDI_FACTORY

public static final java.lang.String DEFAULT_JNDI_FACTORY
See Also:
Constant Field Values

DEFAULT_JNDI_HOST

public static final java.lang.String DEFAULT_JNDI_HOST
See Also:
Constant Field Values

DEFAULT_JNDI_PORT

public static final java.lang.String DEFAULT_JNDI_PORT
See Also:
Constant Field Values
Constructor Detail

AdminController

public AdminController()
Method Detail

setControllerEventListener

public void setControllerEventListener(ControllerEventListener l)

getAdminTreeModel

protected javax.swing.tree.DefaultTreeModel getAdminTreeModel()

getJndiTreeModel

protected javax.swing.tree.DefaultTreeModel getJndiTreeModel()

connectJndi

public void connectJndi(java.lang.String host,
                        int port,
                        java.lang.String ctxName)
                 throws javax.naming.NamingException
Throws:
javax.naming.NamingException

refreshJndiData

public void refreshJndiData()
                     throws javax.naming.NamingException
Throws:
javax.naming.NamingException

disconnectJndi

public void disconnectJndi()
                    throws javax.naming.NamingException
Throws:
javax.naming.NamingException

findJndiNodeByName

public org.objectweb.joram.client.tools.admin.JndiTreeNode findJndiNodeByName(java.lang.String name)

connectAdmin

public void connectAdmin(java.lang.String host,
                         int port,
                         java.lang.String user,
                         java.lang.String passwd)
                  throws java.lang.Exception
Throws:
java.lang.Exception

refreshAdminData

public void refreshAdminData()
                      throws java.net.ConnectException
Throws:
java.net.ConnectException

disconnectAdmin

public void disconnectAdmin()
                     throws java.lang.Exception
Throws:
java.lang.Exception

stopServer

public void stopServer(org.objectweb.joram.client.tools.admin.ServerTreeNode stn)
                throws java.lang.Exception
Throws:
java.lang.Exception

createConnectionFactory

public void createConnectionFactory(java.lang.String host,
                                    int port,
                                    java.lang.String name,
                                    java.lang.String type)
                             throws java.lang.Exception
Throws:
java.lang.Exception

createDestination

public void createDestination(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode,
                              java.lang.String name,
                              java.lang.String type)
                       throws java.lang.Exception
Throws:
java.lang.Exception

deleteObject

public void deleteObject(org.objectweb.joram.client.tools.admin.JndiTreeNode node)
                  throws java.lang.Exception
Throws:
java.lang.Exception

createUser

public void createUser(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode,
                       java.lang.String name,
                       java.lang.String passwd)
                throws java.lang.Exception
Throws:
java.lang.Exception

updateUser

public void updateUser(org.objectweb.joram.client.tools.admin.UserTreeNode userNode,
                       java.lang.String name,
                       java.lang.String passwd)
                throws java.lang.Exception
Throws:
java.lang.Exception

deleteUser

public void deleteUser(org.objectweb.joram.client.tools.admin.UserTreeNode node)
                throws java.lang.Exception
Throws:
java.lang.Exception

getPendingMessages

public int getPendingMessages(javax.jms.Queue q)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getPendingRequests

public int getPendingRequests(javax.jms.Queue q)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getSubscriptions

public int getSubscriptions(javax.jms.Topic t)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultThreshold

public int getDefaultThreshold(int serverId)
                        throws java.lang.Exception
Throws:
java.lang.Exception

setDefaultThreshold

public void setDefaultThreshold(int serverId,
                                int threshold)
                         throws java.lang.Exception
Throws:
java.lang.Exception

getDefaultDMQ

public DeadMQueue getDefaultDMQ(int serverId)
                         throws java.lang.Exception
Throws:
java.lang.Exception

setDefaultDMQ

public void setDefaultDMQ(int serverId,
                          DeadMQueue dmq)
                   throws java.lang.Exception
Throws:
java.lang.Exception

unsetDefaultThreshold

public void unsetDefaultThreshold(int serverId)
                           throws java.lang.Exception
Throws:
java.lang.Exception

unsetDefaultDMQ

public void unsetDefaultDMQ(int serverId)
                     throws java.lang.Exception
Throws:
java.lang.Exception

getUserThreshold

public int getUserThreshold(User user)
                     throws java.lang.Exception
Throws:
java.lang.Exception

setUserThreshold

public void setUserThreshold(User user,
                             int threshold)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getUserDMQ

public DeadMQueue getUserDMQ(User user)
                      throws java.lang.Exception
Throws:
java.lang.Exception

setUserDMQ

public void setUserDMQ(User user,
                       DeadMQueue dmq)
                throws java.lang.Exception
Throws:
java.lang.Exception

unsetUserThreshold

public void unsetUserThreshold(User user)
                        throws java.lang.Exception
Throws:
java.lang.Exception

unsetUserDMQ

public void unsetUserDMQ(User user)
                  throws java.lang.Exception
Throws:
java.lang.Exception

getQueueThreshold

public int getQueueThreshold(javax.jms.Queue queue)
                      throws java.lang.Exception
Throws:
java.lang.Exception

setQueueThreshold

public void setQueueThreshold(javax.jms.Queue queue,
                              int threshold)
                       throws java.lang.Exception
Throws:
java.lang.Exception

getDestinationDMQ

public DeadMQueue getDestinationDMQ(javax.jms.Destination dest)
                             throws java.lang.Exception
Throws:
java.lang.Exception

setDestinationDMQ

public void setDestinationDMQ(javax.jms.Destination dest,
                              DeadMQueue dmq)
                       throws java.lang.Exception
Throws:
java.lang.Exception

unsetQueueThreshold

public void unsetQueueThreshold(javax.jms.Queue queue)
                         throws java.lang.Exception
Throws:
java.lang.Exception

unsetDestinationDMQ

public void unsetDestinationDMQ(javax.jms.Destination dest)
                         throws java.lang.Exception
Throws:
java.lang.Exception

isFreelyReadable

public boolean isFreelyReadable(javax.jms.Destination dest)
                         throws java.lang.Exception
Throws:
java.lang.Exception

isFreelyWritable

public boolean isFreelyWritable(javax.jms.Destination dest)
                         throws java.lang.Exception
Throws:
java.lang.Exception

setFreeReading

public void setFreeReading(javax.jms.Destination dest)
                    throws java.lang.Exception
Throws:
java.lang.Exception

setFreeWriting

public void setFreeWriting(javax.jms.Destination dest)
                    throws java.lang.Exception
Throws:
java.lang.Exception

unsetFreeReading

public void unsetFreeReading(javax.jms.Destination dest)
                      throws java.lang.Exception
Throws:
java.lang.Exception

unsetFreeWriting

public void unsetFreeWriting(javax.jms.Destination dest)
                      throws java.lang.Exception
Throws:
java.lang.Exception

getAuthorizedReaders

public java.util.List getAuthorizedReaders(javax.jms.Destination dest)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

getAuthorizedWriters

public java.util.List getAuthorizedWriters(javax.jms.Destination dest)
                                    throws java.lang.Exception
Throws:
java.lang.Exception

setReader

public void setReader(User user,
                      javax.jms.Destination dest)
               throws java.lang.Exception
Throws:
java.lang.Exception

setWriter

public void setWriter(User user,
                      javax.jms.Destination dest)
               throws java.lang.Exception
Throws:
java.lang.Exception

unsetReader

public void unsetReader(User user,
                        javax.jms.Destination dest)
                 throws java.lang.Exception
Throws:
java.lang.Exception

unsetWriter

public void unsetWriter(User user,
                        javax.jms.Destination dest)
                 throws java.lang.Exception
Throws:
java.lang.Exception

getAdminConnectionStatus

public java.lang.String getAdminConnectionStatus()

isAdminConnected

public boolean isAdminConnected()

isJndiConnected

public boolean isJndiConnected()

findDestinationJndiName

protected java.lang.String findDestinationJndiName(javax.jms.Destination dest)

notifyListener

protected void notifyListener(ControllerEvent e)


Copyright ? 2004 Scalagent - All rights reserved