Interface AdminItf
-
- All Known Implementing Classes:
AdminWrapper,JoramAdmin
public interface AdminItfTheAdminItfinterface defines the set of methods needed for administration and monitoring of the Joram platform.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidabortRequest()StringaddAMQPBridgeConnection(int serverId, String urls)Adds an AMQP server and starts a live connection with it, accessible via the url provided.voidaddDomain(String domain, int sid, int port)Adds a domain to the platform.voidaddDomain(String domain, String network, int sid, int port)Adds a domain to the platform using a specific network component.StringaddJMSBridgeConnection(int serverId, String urls)Adds a JMS server and starts a live connection with it, accessible via the url provided.voidaddServer(int sid, String host, String domain, int port, String server)Adds a server to the platform.voidaddServer(int sid, String host, String domain, int port, String server, String[] services, String[] args)Adds a server to the platform.voidclose()Closes the underlying requestor.DestinationcreateQueue(int serverId, String name)Creates or retrieves a queue destination on a given JORAM server.DestinationcreateQueue(int serverId, String name, String className, Properties prop)Creates or retrieves a queue destination on a given JORAM server.DestinationcreateQueue(String name)Creates or retrieves a queue destination on a given JORAM server.DestinationcreateTopic(int serverId, String name)Creates or retrieves a topic destination on a given JORAM server.DestinationcreateTopic(int serverId, String name, String className, Properties prop)Creates or retrieves a topic destination on a given JORAM server.DestinationcreateTopic(String name)Creates or retrieves a topic destination on the underlying JORAM server.UsercreateUser(String name, String password)Creates or retrieves a user on the underlying JORAM server.UsercreateUser(String name, String password, int serverId)Creates or retrieves a user on the underlying JORAM server.UsercreateUser(String name, String password, int serverId, String identityClassName)Admin method creating a user for a given server and instantiating the correspondingUserobject.UsercreateUser(String name, String password, int serverId, String identityClassName, Properties prop)Admin method creating a user for a given server and instantiating the correspondingUserobject.UsercreateUser(String name, String password, String identityClass)Creates or retrieves a user on the underlying JORAM server.StringdeleteAMQPBridgeConnection(int serverId, String names)Removes the live connection to the specified AMQP server.StringdeleteJMSBridgeConnection(int serverId, String names)Removes the live connection to the specified AMQP server.StringdeleteJMSBridgeConnection(int serverId, String names, boolean async)Removes the live connection to the specified JMS server.StringdeleteJMSPBridgeConnection(int serverId, String names)Deprecated.Use deleteJMSBridgeConnection instead.StringdeleteJMSPBridgeConnection(int serverId, String names, boolean async)Deprecated.Use deleteJMSBridgeConnection instead.org.objectweb.joram.shared.admin.AdminReplydoRequest(org.objectweb.joram.shared.admin.AdminRequest request)Method actually sending anAdminRequestinstance to the platform and getting anAdminReplyinstance.StringgetConfiguration()Returns the current servers configuration (a3servers.xml).QueuegetDefaultDMQ()Returns the default dead message queue for the local server, null if not set.QueuegetDefaultDMQ(int serverId)Returns the default dead message queue for a given server, null if not set.StringgetDefaultDMQId()Returns the unique identifier of the default dead message queue for the local server, null if not set.StringgetDefaultDMQId(int serverId)Returns the unique identifier of the default dead message queue for a given server, null if not set.intgetDefaultThreshold()Returns the default threshold value for the local server, -1 if not set.intgetDefaultThreshold(int serverId)Returns the default threshold value for a given server, -1 if not set.Destination[]getDestinations()Returns the list of all destinations that exist on the local server.Destination[]getDestinations(int serverId)Returns the list of all destinations that exist on a given server.String[]getDomainNames(int serverId)Returns the list of the domain names that contains the specified server.HashtablegetJMXAttribute(int serverId, String attname)Returns JMX attribute value for the specified server.HashtablegetJMXAttribute(String attname)Returns JMX attribute value for the local server.StringgetLocalHost()Returns the host name of the server the module is connected to.StringgetLocalName()Returns the name of the server the module is connected to.ServergetLocalServer()Returns the information about the current server: unique identifier, symbolic name and hostname.intgetLocalServerId()Returns the identifier of the server the module is connected to.Server[]getServers()Returns the list of the platform's servers' descriptions.Server[]getServers(String domain)Returns the list of the servers' that belong to the specified domain.int[]getServersIds()Returns the list of the platform's servers' identifiers.int[]getServersIds(String domain)Returns the list of the servers' identifiers that belong to the specified domainString[]getServersNames()Returns the list of the platform's servers' names.String[]getServersNames(String domain)Returns the list of the servers' names that belong to the specified domainHashtablegetStatistics()Returns statistics for the local server.HashtablegetStatistics(int serverId)Returns statistics for the the specified server.longgetTimeOutToAbortRequest()Returns the maximum time in ms before aborting request.User[]getUsers()Returns the list of all users that exist on the local server.User[]getUsers(int serverId)Returns the list of all users that exist on a given server.StringinvokeStaticServerMethod(int serverId, String className, String methodName, Class<?>[] parameterTypes, Object[] args)Invokes the specified static method with the specified parameters on the chosen server.booleanisClosed()Returns true if the underlying requestor is closed.org.objectweb.joram.shared.admin.AdminReplyprocessAdmin(String targetId, int command, Properties prop)The method send the admin JMS message on JORAM server (AdminTopic).voidremoveDomain(String domain)Removes a domain from the platform.voidremoveServer(int sid)Removes a server from the platform.voidsetDefaultDMQ(int serverId, Queue dmq)Sets a given dead message queue as the default DMQ for a given server (nullfor unsetting previous DMQ).voidsetDefaultDMQ(Queue dmq)Sets a given dead message queue as the default DMQ for the local server (nullfor unsetting previous DMQ).voidsetDefaultDMQId(int serverId, String dmqId)Sets a given dead message queue as the default DMQ for a given server (nullfor unsetting previous DMQ).voidsetDefaultDMQId(String dmqId)Sets a given dead message queue as the default DMQ for the local server (nullfor unsetting previous DMQ).voidsetDefaultThreshold(int threshold)Sets a given value as the default threshold for the local server (-1 for unsetting previous value).voidsetDefaultThreshold(int serverId, int threshold)Sets a given value as the default threshold for a given server (-1 for unsetting previous value).voidsetTimeOutToAbortRequest(long timeOut)Set the maximum time in ms before aborting request.voidstopServer()Stops the platform local server.voidstopServer(int serverId)Stops a given server of the platform.
-
-
-
Method Detail
-
setTimeOutToAbortRequest
void setTimeOutToAbortRequest(long timeOut) throws ConnectExceptionSet the maximum time in ms before aborting request.- Parameters:
timeOut- the maximum time in ms before aborting request.- Throws:
ConnectException- if the connection is not established.
-
getTimeOutToAbortRequest
long getTimeOutToAbortRequest() throws ConnectExceptionReturns the maximum time in ms before aborting request.- Returns:
- the maximum time in ms before aborting request.
- Throws:
ConnectException- if the connection is not established.
-
close
void close()
Closes the underlying requestor.
-
isClosed
boolean isClosed()
Returns true if the underlying requestor is closed.- Returns:
- true if the underlying requestor is closed.
-
stopServer
void stopServer() throws ConnectException, AdminExceptionStops the platform local server.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.- See Also:
stopServer(int)
-
stopServer
void stopServer(int serverId) throws ConnectException, AdminExceptionStops a given server of the platform.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Identifier of the server to stop.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
addServer
void addServer(int sid, String host, String domain, int port, String server) throws ConnectException, AdminExceptionAdds a server to the platform.The server is configured without any service.
- Parameters:
sid- Id of the added serverhost- Address of the host where the added server is starteddomain- Name of the domain where the server is addedport- Listening port of the server in the specified domainserver- Name of the added server- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.- See Also:
addServer(int, String, String, int, String, String[], String[])
-
addServer
void addServer(int sid, String host, String domain, int port, String server, String[] services, String[] args) throws ConnectException, AdminExceptionAdds a server to the platform.- Parameters:
sid- Id of the added serverhost- Address of the host where the added server is starteddomain- Name of the domain where the server is addedport- Listening port of the server in the specified domainserver- Name of the added serverservices- Names of the service to start within the serverargs- Services' arguments- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
removeServer
void removeServer(int sid) throws ConnectException, AdminExceptionRemoves a server from the platform.- Parameters:
sid- Id of the removed server- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
addDomain
void addDomain(String domain, int sid, int port) throws ConnectException, AdminException
Adds a domain to the platform.The domain will use the default network component "SimpleNetwork".
- Parameters:
domain- Name of the added domain.sid- Id of the router server that gives access to the added domain.port- Listening port in the added domain of the router server.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
addDomain
void addDomain(String domain, String network, int sid, int port) throws ConnectException, AdminException
Adds a domain to the platform using a specific network component.- Parameters:
domain- Name of the added domain.network- Classname of the network component to use.sid- Id of the router server that gives access to the added domain.port- Listening port in the added domain of the router server.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
removeDomain
void removeDomain(String domain) throws ConnectException, AdminException
Removes a domain from the platform.- Parameters:
domain- Name of the domain to remove- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getConfiguration
String getConfiguration() throws ConnectException, AdminException
Returns the current servers configuration (a3servers.xml).- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getStatistics
Hashtable getStatistics() throws ConnectException, AdminException
Returns statistics for the local server.- Returns:
- statistics for the local server.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getStatistics(int)
-
getStatistics
Hashtable getStatistics(int serverId) throws ConnectException, AdminException
Returns statistics for the the specified server.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Unique identifier of the server.- Returns:
- the statistics for the the specified server.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getJMXAttribute
Hashtable getJMXAttribute(String attname) throws ConnectException, AdminException
Returns JMX attribute value for the local server.- Returns:
- Corresponding JMX attribute value for the local server.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getStatistics(int)
-
getJMXAttribute
Hashtable getJMXAttribute(int serverId, String attname) throws ConnectException, AdminException
Returns JMX attribute value for the specified server.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Unique identifier of the server.- Returns:
- the statistics for the the specified server.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getDefaultDMQId
String getDefaultDMQId() throws ConnectException, AdminException
Returns the unique identifier of the default dead message queue for the local server, null if not set.- Returns:
- The unique identifier of the default dead message queue for the local server, null if not set.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getDefaultDMQId(int)
-
getDefaultDMQId
String getDefaultDMQId(int serverId) throws ConnectException, AdminException
Returns the unique identifier of the default dead message queue for a given server, null if not set.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Unique identifier of the server.- Returns:
- The unique identifier of the default dead message queue for the local server, null if not set.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
setDefaultDMQId
void setDefaultDMQId(String dmqId) throws ConnectException, AdminException
Sets a given dead message queue as the default DMQ for the local server (nullfor unsetting previous DMQ).- Parameters:
dmqId- The dmqId (AgentId) to be set as the default one.- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
setDefaultDMQId(int, String)
-
setDefaultDMQId
void setDefaultDMQId(int serverId, String dmqId) throws ConnectException, AdminExceptionSets a given dead message queue as the default DMQ for a given server (nullfor unsetting previous DMQ).The request fails if the target server does not belong to the platform.
- Parameters:
serverId- The identifier of the server.dmqId- The dmqId (AgentId) to be set as the default one.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getDefaultDMQ
Queue getDefaultDMQ() throws ConnectException, AdminException
Returns the default dead message queue for the local server, null if not set.- Returns:
- The default dead message queue for the local server, null if not set.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getDefaultDMQ(int)
-
getDefaultDMQ
Queue getDefaultDMQ(int serverId) throws ConnectException, AdminException
Returns the default dead message queue for a given server, null if not set.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Unique identifier of the server.- Returns:
- The default dead message queue for the local server, null if not set.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
setDefaultDMQ
void setDefaultDMQ(Queue dmq) throws ConnectException, AdminException
Sets a given dead message queue as the default DMQ for the local server (nullfor unsetting previous DMQ).- Parameters:
dmq- The dmq to be set as the default one.- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
setDefaultDMQ(int, Queue)
-
setDefaultDMQ
void setDefaultDMQ(int serverId, Queue dmq) throws ConnectException, AdminExceptionSets a given dead message queue as the default DMQ for a given server (nullfor unsetting previous DMQ).The request fails if the target server does not belong to the platform.
- Parameters:
serverId- The identifier of the server.dmq- The dmq to be set as the default one.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getDefaultThreshold
int getDefaultThreshold() throws ConnectException, AdminExceptionReturns the default threshold value for the local server, -1 if not set.- Returns:
- The default threshold value for the local server, -1 if not set.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getDefaultThreshold(int)
-
getDefaultThreshold
int getDefaultThreshold(int serverId) throws ConnectException, AdminExceptionReturns the default threshold value for a given server, -1 if not set.The request fails if the target server does not belong to the platform.
- Returns:
- The default threshold value for the local server, -1 if not set.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
setDefaultThreshold
void setDefaultThreshold(int threshold) throws ConnectException, AdminExceptionSets a given value as the default threshold for the local server (-1 for unsetting previous value).- Parameters:
threshold- The threshold value to be set.- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
setDefaultThreshold(int, int)
-
setDefaultThreshold
void setDefaultThreshold(int serverId, int threshold) throws ConnectException, AdminExceptionSets a given value as the default threshold for a given server (-1 for unsetting previous value).The request fails if the target server does not belong to the platform.
- Parameters:
serverId- The identifier of the server.threshold- The threshold value to be set.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getServersIds
int[] getServersIds() throws ConnectException, AdminExceptionReturns the list of the platform's servers' identifiers.- Returns:
- An array containing the list of server's identifiers.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getServers(String)
-
getServersIds
int[] getServersIds(String domain) throws ConnectException, AdminException
Returns the list of the servers' identifiers that belong to the specified domain- Parameters:
domain- Name of the domain.- Returns:
- An array containing the list of server's identifiers of the specified domain.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.
-
getServersNames
String[] getServersNames() throws ConnectException, AdminException
Returns the list of the platform's servers' names.- Returns:
- An array containing the list of server's names.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getServers(String)
-
getServersNames
String[] getServersNames(String domain) throws ConnectException, AdminException
Returns the list of the servers' names that belong to the specified domain- Parameters:
domain- Name of the domain.- Returns:
- An array containing the list of server's names of the specified domain.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.
-
getServers
Server[] getServers() throws ConnectException, AdminException
Returns the list of the platform's servers' descriptions.- Returns:
- An array containing the description of all servers.
- Throws:
ConnectExceptionAdminException- See Also:
getServers(String)
-
getServers
Server[] getServers(String domain) throws ConnectException, AdminException
Returns the list of the servers' that belong to the specified domain.- Parameters:
domain- Name of the domain.- Returns:
- An array containing the description of the corresponding servers.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.
-
getDomainNames
String[] getDomainNames(int serverId) throws ConnectException, AdminException
Returns the list of the domain names that contains the specified server.- Parameters:
serverId- Unique identifier of the server.- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.
-
getDestinations
Destination[] getDestinations() throws ConnectException, AdminException
Returns the list of all destinations that exist on the local server.- Returns:
- An array containing all destinations defined on the given server or null if none exists.
- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- Never thrown.- See Also:
getDestinations(int)
-
getDestinations
Destination[] getDestinations(int serverId) throws ConnectException, AdminException
Returns the list of all destinations that exist on a given server.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Unique identifier of the server.- Returns:
- An array containing all destinations defined on the given server or null if none exists.
- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.
-
createQueue
Destination createQueue(String name) throws AdminException, ConnectException
Creates or retrieves a queue destination on a given JORAM server.- Parameters:
name- The name of the queue.- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.- See Also:
createQueue(int, String, String, Properties)
-
createQueue
Destination createQueue(int serverId, String name) throws AdminException, ConnectException
Creates or retrieves a queue destination on a given JORAM server.- Parameters:
serverId- The identifier of the server where deploying the topic.name- The name of the queue.- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.- See Also:
createQueue(int, String, String, Properties)
-
createQueue
Destination createQueue(int serverId, String name, String className, Properties prop) throws ConnectException, AdminException
Creates or retrieves a queue destination on a given JORAM server.First a destination with the specified name is searched on the given server, if it does not exist it is created.
The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
- Parameters:
serverId- The identifier of the server where deploying the queue.name- The name of the queue.className- The queue class name.prop- The queue properties.- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.
-
createTopic
Destination createTopic(String name) throws AdminException, ConnectException
Creates or retrieves a topic destination on the underlying JORAM server.- Parameters:
name- The name of the topic.- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.- See Also:
createTopic(int, String, String, Properties)
-
createTopic
Destination createTopic(int serverId, String name) throws AdminException, ConnectException
Creates or retrieves a topic destination on a given JORAM server.- Parameters:
serverId- The identifier of the server where deploying the topic.name- The name of the topic.- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.- See Also:
createTopic(int, String, String, Properties)
-
createTopic
Destination createTopic(int serverId, String name, String className, Properties prop) throws ConnectException, AdminException
Creates or retrieves a topic destination on a given JORAM server.First a destination with the specified name is searched on the given server, if it does not exist it is created.
The request fails if the target server does not belong to the platform, or if the destination deployment fails server side.
- Parameters:
serverId- The identifier of the server where deploying the topic.name- The name of the topic.className- The topic class name.prop- The topic properties.- Throws:
ConnectException- If the admin connection is closed or broken.AdminException- If the request fails.
-
getUsers
User[] getUsers() throws ConnectException, AdminException
Returns the list of all users that exist on the local server.- Returns:
- An array containing all users defined on the local server, or null if none exist.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getUsers(int)
-
getUsers
User[] getUsers(int serverId) throws ConnectException, AdminException
Returns the list of all users that exist on a given server.The request fails if the target server does not belong to the platform.
- Parameters:
serverId- Unique identifier of the given server.- Returns:
- An array containing all users defined on the local server, or null if none exist.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
createUser
User createUser(String name, String password) throws ConnectException, AdminException
Creates or retrieves a user on the underlying JORAM server.- Parameters:
name- Name of the user.password- Password of the user.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.- See Also:
createUser(String, String, int, String)
-
createUser
User createUser(String name, String password, int serverId) throws ConnectException, AdminException
Creates or retrieves a user on the underlying JORAM server.- Parameters:
name- Name of the user.password- Password of the user.serverId- The identifier of the user's server.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.- See Also:
createUser(String, String, int, String)
-
createUser
User createUser(String name, String password, String identityClass) throws AdminException, ConnectException
Creates or retrieves a user on the underlying JORAM server.- Parameters:
name- Name of the user.password- Password of the user.identityClass- Classname for authentication, by default SimpleIdentity for user/password.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.- See Also:
createUser(String, String, int, String)
-
createUser
User createUser(String name, String password, int serverId, String identityClassName) throws ConnectException, AdminException
Admin method creating a user for a given server and instantiating the correspondingUserobject.If the user has already been set on this server, the method simply returns the corresponding
Userobject. Its fails if the target server does not belong to the platform, or if a proxy could not be deployed server side for a new user.- Parameters:
name- Name of the user.password- Password of the user.serverId- The identifier of the user's server.identityClassName- By default user/password for SimpleIdentity.- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
createUser
User createUser(String name, String password, int serverId, String identityClassName, Properties prop) throws ConnectException, AdminException
Admin method creating a user for a given server and instantiating the correspondingUserobject.If the user has already been set on this server, the method simply returns the corresponding
Userobject. Its fails if the target server does not belong to the platform, or if a proxy could not be deployed server side for a new user.- Parameters:
name- Name of the user.password- Password of the user.serverId- The identifier of the user's server.identityClassName- By default user/password for SimpleIdentity.prop- properties- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getLocalServer
Server getLocalServer() throws ConnectException, AdminException
Returns the information about the current server: unique identifier, symbolic name and hostname.- Returns:
- The description of the server.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
getLocalServerId
int getLocalServerId() throws ConnectException, AdminExceptionReturns the identifier of the server the module is connected to.- Throws:
ConnectException- If the admin connection is not established.AdminException- If the request fails.- See Also:
getLocalServer()
-
getLocalHost
String getLocalHost() throws ConnectException, AdminException
Returns the host name of the server the module is connected to.- Throws:
ConnectException- If the admin connection is not established.AdminException- If the request fails.- See Also:
getLocalServer()
-
getLocalName
String getLocalName() throws ConnectException, AdminException
Returns the name of the server the module is connected to.- Throws:
ConnectException- If the admin connection is not established.AdminException- If the request fails.- See Also:
getLocalServer()
-
processAdmin
org.objectweb.joram.shared.admin.AdminReply processAdmin(String targetId, int command, Properties prop) throws ConnectException, AdminException
The method send the admin JMS message on JORAM server (AdminTopic).- Parameters:
targetId- agent Id target.command- the command to execute.prop- the properties.- Returns:
- the reply.
- Throws:
AdminExceptionConnectException- If the connection fails.
-
doRequest
org.objectweb.joram.shared.admin.AdminReply doRequest(org.objectweb.joram.shared.admin.AdminRequest request) throws AdminException, ConnectExceptionMethod actually sending anAdminRequestinstance to the platform and getting anAdminReplyinstance.- Parameters:
request- the administration request to send- Returns:
- the reply message
- Throws:
ConnectException- If the connection to the platform fails.AdminException- If the platform's reply is invalid, or if the request failed.
-
abortRequest
void abortRequest() throws ConnectException- Throws:
ConnectException
-
invokeStaticServerMethod
String invokeStaticServerMethod(int serverId, String className, String methodName, Class<?>[] parameterTypes, Object[] args) throws ConnectException, AdminException
Invokes the specified static method with the specified parameters on the chosen server. The parameters types of the invoked method must be java primitive types, the java objects wrapping them or String type.- Parameters:
serverId- the identifier of the server.className- the name of the class holding the static methodmethodName- the name of the invoked methodparameterTypes- the list of parametersargs- the arguments used for the method call- Returns:
- the result of the invoked method after applying the toString method.
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
addAMQPBridgeConnection
String addAMQPBridgeConnection(int serverId, String urls) throws ConnectException, AdminException
Adds an AMQP server and starts a live connection with it, accessible via the url provided. A server is uniquely identified by the given name. Adding an existing server won't do anything.- Parameters:
serverId- the serverIdurls- the amqp url list identifying the servers separate by space, for example: "amqp://user:pass@localhost:5672/?name=serv1 amqp://user:pass@localhost:5678/?name=serv2"- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
deleteAMQPBridgeConnection
String deleteAMQPBridgeConnection(int serverId, String names) throws ConnectException, AdminException
Removes the live connection to the specified AMQP server.- Parameters:
serverId- the serverIdnames- the name identifying the server or list of name separate by space- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
addJMSBridgeConnection
String addJMSBridgeConnection(int serverId, String urls) throws ConnectException, AdminException
Adds a JMS server and starts a live connection with it, accessible via the url provided. A server is uniquely identified by the given name. Adding an existing server won't do anything.- Parameters:
serverId- the serverIdurls- the jms url list identifying the servers separate by space, for example: "jndi_url/?name=cnx1&cf=cfName&jndiFactoryClass=com.xxx.yyy&user=user1&pass=pass1&clientID=clientID"- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
deleteJMSBridgeConnection
String deleteJMSBridgeConnection(int serverId, String names) throws ConnectException, AdminException
Removes the live connection to the specified AMQP server.- Parameters:
serverId- the serverIdnames- the name identifying the server or list of name separate by space- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
deleteJMSPBridgeConnection
String deleteJMSPBridgeConnection(int serverId, String names) throws ConnectException, AdminException
Deprecated.Use deleteJMSBridgeConnection instead.Removes the live connection to the specified JMS server (Use deleteJMSBridgeConnection instead).- Parameters:
serverId- the serverIdnames- the name identifying the server or list of name separate by space- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
deleteJMSBridgeConnection
String deleteJMSBridgeConnection(int serverId, String names, boolean async) throws ConnectException, AdminException
Removes the live connection to the specified JMS server.- Parameters:
serverId- the serverIdnames- the name identifying the server or list of name separate by spaceasync- invoke asynchronously- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
deleteJMSPBridgeConnection
String deleteJMSPBridgeConnection(int serverId, String names, boolean async) throws ConnectException, AdminException
Deprecated.Use deleteJMSBridgeConnection instead.Removes the live connection to the specified JMS server (Use deleteJMSBridgeConnection instead).- Parameters:
serverId- the serverIdnames- the name identifying the server or list of name separate by spaceasync- invoke asynchronously- Returns:
- the result of the method
- Throws:
ConnectException- If the connection fails.AdminException- If the invocation can't be done or fails
-
-