org.objectweb.joram.client.tools.admin
Class AdminController
java.lang.Object
org.objectweb.joram.client.tools.admin.AdminController
- public class AdminController
- extends java.lang.Object
Method Summary |
void |
clearQueue(org.objectweb.joram.client.tools.admin.QueueTreeNode queueTn)
|
void |
clearSubscription(org.objectweb.joram.client.tools.admin.SubscriptionTreeNode subTn)
|
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 |
createDomain(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode,
java.lang.String domainName,
int port)
|
void |
createUser(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode,
java.lang.String name,
java.lang.String passwd)
|
void |
deleteDomain(org.objectweb.joram.client.tools.admin.DomainTreeNode dtn)
|
void |
deleteMessage(org.objectweb.joram.client.tools.admin.MessageTreeNode msgTn)
|
void |
deleteObject(org.objectweb.joram.client.tools.admin.JndiTreeNode node)
|
void |
deleteServer(org.objectweb.joram.client.tools.admin.ServerTreeNode stn)
|
void |
deleteUser(org.objectweb.joram.client.tools.admin.UserTreeNode node)
|
void |
disconnectAdmin()
|
void |
disconnectJndi()
|
protected java.lang.String |
findDestinationJndiName(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(Destination dest)
|
java.util.List |
getAuthorizedWriters(Destination dest)
|
DeadMQueue |
getDefaultDMQ(int serverId)
|
int |
getDefaultThreshold(int serverId)
|
DeadMQueue |
getDestinationDMQ(Destination dest)
|
protected javax.swing.tree.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,
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 |
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
AdminController
public AdminController()
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,
AdminException
- Throws:
java.net.ConnectException
AdminException
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
deleteServer
public void deleteServer(org.objectweb.joram.client.tools.admin.ServerTreeNode stn)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteDomain
public void deleteDomain(org.objectweb.joram.client.tools.admin.DomainTreeNode dtn)
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
createDomain
public void createDomain(org.objectweb.joram.client.tools.admin.ServerTreeNode serverNode,
java.lang.String domainName,
int port)
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
deleteMessage
public void deleteMessage(org.objectweb.joram.client.tools.admin.MessageTreeNode msgTn)
throws java.lang.Exception
- Throws:
java.lang.Exception
clearSubscription
public void clearSubscription(org.objectweb.joram.client.tools.admin.SubscriptionTreeNode subTn)
throws java.lang.Exception
- Throws:
java.lang.Exception
clearQueue
public void clearQueue(org.objectweb.joram.client.tools.admin.QueueTreeNode queueTn)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPendingMessages
public int getPendingMessages(Queue q)
throws java.lang.Exception
- Throws:
java.lang.Exception
getPendingRequests
public int getPendingRequests(Queue q)
throws java.lang.Exception
- Throws:
java.lang.Exception
getSubscriptions
public int getSubscriptions(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(Queue queue)
throws java.lang.Exception
- Throws:
java.lang.Exception
setQueueThreshold
public void setQueueThreshold(Queue queue,
int threshold)
throws java.lang.Exception
- Throws:
java.lang.Exception
getDestinationDMQ
public DeadMQueue getDestinationDMQ(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
setDestinationDMQ
public void setDestinationDMQ(Destination dest,
DeadMQueue dmq)
throws java.lang.Exception
- Throws:
java.lang.Exception
unsetQueueThreshold
public void unsetQueueThreshold(Queue queue)
throws java.lang.Exception
- Throws:
java.lang.Exception
unsetDestinationDMQ
public void unsetDestinationDMQ(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
isFreelyReadable
public boolean isFreelyReadable(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
isFreelyWritable
public boolean isFreelyWritable(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
setFreeReading
public void setFreeReading(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
setFreeWriting
public void setFreeWriting(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
unsetFreeReading
public void unsetFreeReading(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
unsetFreeWriting
public void unsetFreeWriting(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAuthorizedReaders
public java.util.List getAuthorizedReaders(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
getAuthorizedWriters
public java.util.List getAuthorizedWriters(Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
setReader
public void setReader(User user,
Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
setWriter
public void setWriter(User user,
Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
unsetReader
public void unsetReader(User user,
Destination dest)
throws java.lang.Exception
- Throws:
java.lang.Exception
unsetWriter
public void unsetWriter(User user,
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(Destination dest)
notifyListener
protected void notifyListener(ControllerEvent e)
Copyright © 2005 Scalagent - All rights reserved