org.objectweb.joram.client.tools.admin

Class AdminController


public class AdminController
extends java.lang.Object

Field Summary

static String
DEFAULT_ADMIN_HOST
static String
DEFAULT_ADMIN_PORT
static String
DEFAULT_JNDI_FACTORY
static String
DEFAULT_JNDI_HOST
static String
DEFAULT_JNDI_PORT
static String
PROP_JNDI_FACTORY
static String
PROP_JNDI_HOST
static String
PROP_JNDI_PORT

Constructor Summary

AdminController()

Method Summary

void
connectAdmin(String host, int port, String user, String passwd)
void
connectJndi(String host, int port, String ctxName)
void
createConnectionFactory(String host, int port, String name, String type)
void
createDestination(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode, String name, String type)
void
createUser(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode, String name, 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 String
findDestinationJndiName(Destination dest)
org.objectweb.joram.client.tools.admin.JndiTreeNode
findJndiNodeByName(String name)
String
getAdminConnectionStatus()
protected DefaultTreeModel
getAdminTreeModel()
List
getAuthorizedReaders(Destination dest)
List
getAuthorizedWriters(Destination dest)
DeadMQueue
getDefaultDMQ(int serverId)
int
getDefaultThreshold(int serverId)
DeadMQueue
getDestinationDMQ(Destination dest)
protected DefaultTreeModel
getJndiTreeModel()
int
getPendingMessages(Queue q)
int
getPendingRequests(Queue q)
int
getQueueThreshold(Queue queue)
int
getSubscriptions(Topic t)
DeadMQueue
getUserDMQ(User user)
int
getUserThreshold(User user)
boolean
isAdminConnected()
boolean
isFreelyReadable(Destination dest)
boolean
isFreelyWritable(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(Destination dest, DeadMQueue dmq)
void
setFreeReading(Destination dest)
void
setFreeWriting(Destination dest)
void
setQueueThreshold(Queue queue, int threshold)
void
setReader(User user, Destination dest)
void
setUserDMQ(User user, DeadMQueue dmq)
void
setUserThreshold(User user, int threshold)
void
setWriter(User user, Destination dest)
void
stopServer(org.objectweb.joram.client.tools.admin.ServerTreeNode stn)
void
unsetDefaultDMQ(int serverId)
void
unsetDefaultThreshold(int serverId)
void
unsetDestinationDMQ(Destination dest)
void
unsetFreeReading(Destination dest)
void
unsetFreeWriting(Destination dest)
void
unsetQueueThreshold(Queue queue)
void
unsetReader(User user, Destination dest)
void
unsetUserDMQ(User user)
void
unsetUserThreshold(User user)
void
unsetWriter(User user, Destination dest)
void
updateUser(org.objectweb.joram.client.tools.admin.UserTreeNode userNode, String name, String passwd)

Field Details

DEFAULT_ADMIN_HOST

public static final String DEFAULT_ADMIN_HOST


DEFAULT_ADMIN_PORT

public static final String DEFAULT_ADMIN_PORT


DEFAULT_JNDI_FACTORY

public static final String DEFAULT_JNDI_FACTORY


DEFAULT_JNDI_HOST

public static final String DEFAULT_JNDI_HOST


DEFAULT_JNDI_PORT

public static final String DEFAULT_JNDI_PORT


PROP_JNDI_FACTORY

public static final String PROP_JNDI_FACTORY


PROP_JNDI_HOST

public static final String PROP_JNDI_HOST


PROP_JNDI_PORT

public static final String PROP_JNDI_PORT

Constructor Details

AdminController

public AdminController()

Method Details

connectAdmin

public void connectAdmin(String host,
                         int port,
                         String user,
                         String passwd)
            throws Exception


connectJndi

public void connectJndi(String host,
                        int port,
                        String ctxName)
            throws NamingException


createConnectionFactory

public void createConnectionFactory(String host,
                                    int port,
                                    String name,
                                    String type)
            throws Exception


createDestination

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


createUser

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


deleteObject

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


deleteUser

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


disconnectAdmin

public void disconnectAdmin()
            throws Exception


disconnectJndi

public void disconnectJndi()
            throws NamingException


findDestinationJndiName

protected String findDestinationJndiName(Destination dest)


findJndiNodeByName

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


getAdminConnectionStatus

public String getAdminConnectionStatus()


getAdminTreeModel

protected DefaultTreeModel getAdminTreeModel()


getAuthorizedReaders

public List getAuthorizedReaders(Destination dest)
            throws Exception


getAuthorizedWriters

public List getAuthorizedWriters(Destination dest)
            throws Exception


getDefaultDMQ

public DeadMQueue getDefaultDMQ(int serverId)
            throws Exception


getDefaultThreshold

public int getDefaultThreshold(int serverId)
            throws Exception


getDestinationDMQ

public DeadMQueue getDestinationDMQ(Destination dest)
            throws Exception


getJndiTreeModel

protected DefaultTreeModel getJndiTreeModel()


getPendingMessages

public int getPendingMessages(Queue q)
            throws Exception


getPendingRequests

public int getPendingRequests(Queue q)
            throws Exception


getQueueThreshold

public int getQueueThreshold(Queue queue)
            throws Exception


getSubscriptions

public int getSubscriptions(Topic t)
            throws Exception


getUserDMQ

public DeadMQueue getUserDMQ(User user)
            throws Exception


getUserThreshold

public int getUserThreshold(User user)
            throws Exception


isAdminConnected

public boolean isAdminConnected()


isFreelyReadable

public boolean isFreelyReadable(Destination dest)
            throws Exception


isFreelyWritable

public boolean isFreelyWritable(Destination dest)
            throws Exception


isJndiConnected

public boolean isJndiConnected()


notifyListener

protected void notifyListener(ControllerEvent e)


refreshAdminData

public void refreshAdminData()
            throws ConnectException


refreshJndiData

public void refreshJndiData()
            throws NamingException


setControllerEventListener

public void setControllerEventListener(ControllerEventListener l)


setDefaultDMQ

public void setDefaultDMQ(int serverId,
                          DeadMQueue dmq)
            throws Exception


setDefaultThreshold

public void setDefaultThreshold(int serverId,
                                int threshold)
            throws Exception


setDestinationDMQ

public void setDestinationDMQ(Destination dest,
                              DeadMQueue dmq)
            throws Exception


setFreeReading

public void setFreeReading(Destination dest)
            throws Exception


setFreeWriting

public void setFreeWriting(Destination dest)
            throws Exception


setQueueThreshold

public void setQueueThreshold(Queue queue,
                              int threshold)
            throws Exception


setReader

public void setReader(User user,
                      Destination dest)
            throws Exception


setUserDMQ

public void setUserDMQ(User user,
                       DeadMQueue dmq)
            throws Exception


setUserThreshold

public void setUserThreshold(User user,
                             int threshold)
            throws Exception


setWriter

public void setWriter(User user,
                      Destination dest)
            throws Exception


stopServer

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


unsetDefaultDMQ

public void unsetDefaultDMQ(int serverId)
            throws Exception


unsetDefaultThreshold

public void unsetDefaultThreshold(int serverId)
            throws Exception


unsetDestinationDMQ

public void unsetDestinationDMQ(Destination dest)
            throws Exception


unsetFreeReading

public void unsetFreeReading(Destination dest)
            throws Exception


unsetFreeWriting

public void unsetFreeWriting(Destination dest)
            throws Exception


unsetQueueThreshold

public void unsetQueueThreshold(Queue queue)
            throws Exception


unsetReader

public void unsetReader(User user,
                        Destination dest)
            throws Exception


unsetUserDMQ

public void unsetUserDMQ(User user)
            throws Exception


unsetUserThreshold

public void unsetUserThreshold(User user)
            throws Exception


unsetWriter

public void unsetWriter(User user,
                        Destination dest)
            throws Exception


updateUser

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


Copyright B) 2004 Scalagent - All rights reserved