Modifier and Type | Field and Description |
---|---|
static String |
ADM_NAME_PROPERTY |
static String |
DEFAULT_ADM_NAME |
static org.objectweb.util.monolog.api.Logger |
logger |
private AdminRequestor |
requestor
The requestor for sending the synchronous requests.
|
private Server |
server
The description of the server the module is connected to.
|
Constructor and Description |
---|
AdminWrapper(javax.jms.Connection cnx)
Creates an administration wrapper for a Joram server.
|
Modifier and Type | Method and Description |
---|---|
void |
abortRequest() |
String |
addAMQPBridgeConnection(int serverId,
String urls)
Adds an AMQP server and starts a live connection with it, accessible via
the url provided.
|
void |
addDomain(String domain,
int sid,
int port)
Adds a domain to the platform.
|
void |
addDomain(String domain,
String network,
int sid,
int port)
Adds a domain to the platform using a specific network component.
|
String |
addJMSBridgeConnection(int serverId,
String urls)
Adds a JMS server and starts a live connection with it, accessible via
the url provided.
|
void |
addServer(int sid,
String host,
String domain,
int port,
String server)
Adds a server to the platform.
|
void |
addServer(int sid,
String host,
String domain,
int port,
String server,
String[] services,
String[] args)
Adds a server to the platform.
|
void |
close()
Closes the underlying requestor.
|
Queue |
createDeadMQueue(int serverId,
String name)
Deprecated.
No longer needed, any queue can be used as DMQ.
|
private Identity |
createIdentity(String user,
String passwd,
String identityClassName)
Create a user Identity.
|
Destination |
createQueue(int serverId,
String name)
Creates or retrieves a queue destination on a given JORAM server.
|
Destination |
createQueue(int serverId,
String name,
String className,
Properties prop)
Creates or retrieves a queue destination on a given JORAM server.
|
Destination |
createQueue(String name)
Creates or retrieves a queue destination on a given JORAM server.
|
Destination |
createTopic(int serverId,
String name)
Creates or retrieves a topic destination on a given JORAM server.
|
Destination |
createTopic(int serverId,
String name,
String className,
Properties prop)
Creates or retrieves a topic destination on a given JORAM server.
|
Destination |
createTopic(String name)
Creates or retrieves a topic destination on the underlying JORAM server.
|
User |
createUser(String name,
String password)
Creates or retrieves a user on the underlying JORAM server.
|
User |
createUser(String name,
String password,
int serverId)
Creates or retrieves a user on the underlying JORAM server.
|
User |
createUser(String name,
String password,
int serverId,
String identityClassName)
Admin method creating a user for a given server and instantiating the
corresponding
User object. |
User |
createUser(String name,
String password,
int serverId,
String identityClassName,
Properties prop)
Admin method creating a user for a given server and instantiating the
corresponding
User object. |
User |
createUser(String name,
String password,
String identityClass)
Creates or retrieves a user on the underlying JORAM server.
|
String |
deleteAMQPBridgeConnection(int serverId,
String names)
Removes the live connection to the specified AMQP server.
|
String |
deleteJMSBridgeConnection(int serverId,
String names)
Removes the live connection to the specified JMS server.
|
String |
deleteJMSBridgeConnection(int serverId,
String names,
boolean async)
Removes the live connection to the specified JMS server.
|
String |
deleteJMSPBridgeConnection(int serverId,
String names)
Deprecated.
Use deleteJMSBridgeConnection instead.
|
String |
deleteJMSPBridgeConnection(int serverId,
String names,
boolean async)
Deprecated.
Use deleteJMSBridgeConnection instead.
|
AdminReply |
doRequest(AdminRequest request)
Method actually sending an
AdminRequest instance to
the platform and getting an AdminReply instance. |
String |
getConfiguration()
Returns the current servers configuration (a3servers.xml).
|
Queue |
getDefaultDMQ()
Returns the default dead message queue for the local server, null if not
set.
|
Queue |
getDefaultDMQ(int serverId)
Returns the default dead message queue for a given server, null if not set.
|
String |
getDefaultDMQId()
Returns the unique identifier of the default dead message queue for the local
server, null if not set.
|
String |
getDefaultDMQId(int serverId)
Returns the unique identifier of the default dead message queue for a given
server, null if not set.
|
int |
getDefaultThreshold()
Returns the default threshold value for the local server, -1 if not set.
|
int |
getDefaultThreshold(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.
|
Hashtable |
getJMXAttribute(int serverId,
String attname)
Returns JMX attribute value for the specified server.
|
Hashtable |
getJMXAttribute(String attname)
Returns JMX attribute value for the local server.
|
String |
getLocalHost()
Returns the host name of the server the module is connected to.
|
String |
getLocalName()
Returns the name of the server the module is connected to.
|
Server |
getLocalServer()
Returns the information about the current server: unique identifier, symbolic name and hostname.
|
int |
getLocalServerId()
Returns the identifier of the server the module is connected to.
|
Server[] |
getServers()
Returns the list of the platform's servers' identifiers.
|
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 domain
|
String[] |
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 domain
|
Hashtable |
getStatistics()
Returns statistics for the local server.
|
Hashtable |
getStatistics(int serverId)
Returns statistics for the specified server.
|
long |
getTimeOutToAbortRequest()
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.
|
String |
invokeStaticServerMethod(int serverId,
String className,
String methodName,
Class<?>[] parameterTypes,
Object[] args)
Invokes the specified static method with the specified parameters on the
chosen server.
|
String |
invokeStaticServerMethod(int serverId,
String className,
String methodName,
Class<?>[] parameterTypes,
Object[] args,
boolean async)
Invokes the specified static method with the specified parameters on the
chosen server.
|
boolean |
isClosed()
Returns true if the underlying requestor is closed.
|
AdminReply |
processAdmin(String targetId,
int command,
Properties prop)
The method send the admin JMS message on JORAM server (AdminTopic).
|
void |
removeDomain(String domain)
Removes a domain from the platform.
|
void |
removeServer(int sid)
Removes a server from the platform.
|
void |
setDefaultDMQ(int serverId,
Queue dmq)
Sets a given dead message queue as the default DMQ for a given server
(
null for unsetting previous DMQ). |
void |
setDefaultDMQ(Queue dmq)
Sets a given dead message queue as the default DMQ for the local server
(
null for unsetting previous DMQ). |
void |
setDefaultDMQId(int serverId,
String dmqId)
Sets a given dead message queue as the default DMQ for a given server
(
null for unsetting previous DMQ). |
void |
setDefaultDMQId(String dmqId)
Sets a given dead message queue as the default DMQ for the local server
(
null for unsetting previous DMQ). |
void |
setDefaultThreshold(int threshold)
Sets a given value as the default threshold for the local server (-1 for
unsetting previous value).
|
void |
setDefaultThreshold(int serverId,
int threshold)
Sets a given value as the default threshold for a given server (-1 for
unsetting previous value).
|
void |
setTimeOutToAbortRequest(long timeOut)
Set the maximum time in ms before aborting request.
|
void |
stopServer()
Stops the platform local server.
|
void |
stopServer(int serverId)
Stops a given server of the platform.
|
private Server server
private AdminRequestor requestor
public static final String ADM_NAME_PROPERTY
public static final String DEFAULT_ADM_NAME
public static org.objectweb.util.monolog.api.Logger logger
public AdminWrapper(javax.jms.Connection cnx) throws javax.jms.JMSException, ConnectException, AdminException
cnx
- A valid connection to the Joram server.javax.jms.JMSException
- A problem occurs during initialization.ConnectException
AdminException
public final void setTimeOutToAbortRequest(long timeOut) throws ConnectException
setTimeOutToAbortRequest
in interface AdminItf
timeOut
- the maximum time in ms before aborting request.ConnectException
- if the connection is not established.public final long getTimeOutToAbortRequest() throws ConnectException
getTimeOutToAbortRequest
in interface AdminItf
ConnectException
- if the connection is not established.public void close()
public boolean isClosed()
public final void stopServer() throws ConnectException, AdminException
stopServer
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- If the request fails.stopServer(int)
public final void stopServer(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
stopServer
in interface AdminItf
serverId
- Identifier of the server to stop.ConnectException
- If the connection fails.AdminException
- If the request fails.public final void addServer(int sid, String host, String domain, int port, String server) throws ConnectException, AdminException
The server is configured without any service.
addServer
in interface AdminItf
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 serverConnectException
- If the connection fails.AdminException
- If the request fails.addServer(int, String, String, int, String, String[], String[])
public final void addServer(int sid, String host, String domain, int port, String server, String[] services, String[] args) throws ConnectException, AdminException
addServer
in interface AdminItf
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' argumentsConnectException
- If the connection fails.AdminException
- If the request fails.public final void removeServer(int sid) throws ConnectException, AdminException
removeServer
in interface AdminItf
sid
- Id of the removed serverConnectException
- If the connection fails.AdminException
- If the request fails.public final void addDomain(String domain, int sid, int port) throws ConnectException, AdminException
The domain will use the default network component "SimpleNetwork".
addDomain
in interface AdminItf
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.ConnectException
- If the connection fails.AdminException
- If the request fails.public final void addDomain(String domain, String network, int sid, int port) throws ConnectException, AdminException
addDomain
in interface AdminItf
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.ConnectException
- If the connection fails.AdminException
- If the request fails.public final void removeDomain(String domain) throws ConnectException, AdminException
removeDomain
in interface AdminItf
domain
- Name of the domain to removeConnectException
- If the connection fails.AdminException
- If the request fails.public final String getConfiguration() throws ConnectException, AdminException
getConfiguration
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- If the request fails.public final Hashtable getStatistics() throws ConnectException, AdminException
getStatistics
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getStatistics(int)
public final Hashtable getStatistics(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getStatistics
in interface AdminItf
serverId
- Unique identifier of the server.ConnectException
- If the connection fails.AdminException
- If the request fails.public final Hashtable getJMXAttribute(String attname) throws ConnectException, AdminException
getJMXAttribute
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getStatistics(int)
public final Hashtable getJMXAttribute(int serverId, String attname) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getJMXAttribute
in interface AdminItf
serverId
- Unique identifier of the server.ConnectException
- If the connection fails.AdminException
- If the request fails.public final String getDefaultDMQId() throws ConnectException, AdminException
getDefaultDMQId
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getDefaultDMQId(int)
public final String getDefaultDMQId(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getDefaultDMQId
in interface AdminItf
serverId
- Unique identifier of the server.ConnectException
- If the connection fails.AdminException
- If the request fails.public final void setDefaultDMQId(String dmqId) throws ConnectException, AdminException
null
for unsetting previous DMQ).setDefaultDMQId
in interface AdminItf
dmqId
- The dmqId (AgentId) to be set as the default one.ConnectException
- If the connection fails.AdminException
- Never thrown.setDefaultDMQId(int, String)
public final void setDefaultDMQId(int serverId, String dmqId) throws ConnectException, AdminException
null
for unsetting previous DMQ).
The request fails if the target server does not belong to the platform.
setDefaultDMQId
in interface AdminItf
serverId
- The identifier of the server.dmqId
- The dmqId (AgentId) to be set as the default one.ConnectException
- If the connection fails.AdminException
- If the request fails.public final Queue getDefaultDMQ() throws ConnectException, AdminException
getDefaultDMQ
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getDefaultDMQ(int)
public final Queue getDefaultDMQ(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getDefaultDMQ
in interface AdminItf
serverId
- Unique identifier of the server.ConnectException
- If the connection fails.AdminException
- If the request fails.public final void setDefaultDMQ(Queue dmq) throws ConnectException, AdminException
null
for unsetting previous DMQ).setDefaultDMQ
in interface AdminItf
dmq
- The dmq to be set as the default one.ConnectException
- If the connection fails.AdminException
- Never thrown.setDefaultDMQ(int, Queue)
public final void setDefaultDMQ(int serverId, Queue dmq) throws ConnectException, AdminException
null
for unsetting previous DMQ).
The request fails if the target server does not belong to the platform.
setDefaultDMQ
in interface AdminItf
serverId
- The identifier of the server.dmq
- The dmq to be set as the default one.ConnectException
- If the connection fails.AdminException
- If the request fails.public final int getDefaultThreshold() throws ConnectException, AdminException
getDefaultThreshold
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getDefaultThreshold(int)
public final int getDefaultThreshold(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getDefaultThreshold
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- If the request fails.public final void setDefaultThreshold(int threshold) throws ConnectException, AdminException
setDefaultThreshold
in interface AdminItf
threshold
- The threshold value to be set.ConnectException
- If the connection fails.AdminException
- Never thrown.setDefaultThreshold(int, int)
public final void setDefaultThreshold(int serverId, int threshold) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
setDefaultThreshold
in interface AdminItf
serverId
- The identifier of the server.threshold
- The threshold value to be set.ConnectException
- If the connection fails.AdminException
- If the request fails.public final int[] getServersIds() throws ConnectException, AdminException
getServersIds
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getServers(String)
public final int[] getServersIds(String domain) throws ConnectException, AdminException
getServersIds
in interface AdminItf
domain
- Name of the domain.ConnectException
- If the connection fails.AdminException
- Never thrown.public final String[] getServersNames() throws ConnectException, AdminException
getServersNames
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getServers(String)
public final String[] getServersNames(String domain) throws ConnectException, AdminException
getServersNames
in interface AdminItf
domain
- Name of the domain.ConnectException
- If the connection fails.AdminException
- Never thrown.public final Server[] getServers() throws ConnectException, AdminException
getServers
in interface AdminItf
ConnectException
AdminException
getServers(String)
public final Server[] getServers(String domain) throws ConnectException, AdminException
getServers
in interface AdminItf
domain
- Name of the domain.ConnectException
- If the connection fails.AdminException
- Never thrown.public final String[] getDomainNames(int serverId) throws ConnectException, AdminException
getDomainNames
in interface AdminItf
serverId
- Unique identifier of the server.ConnectException
- If the connection fails.AdminException
- Never thrown.public final Destination[] getDestinations() throws ConnectException, AdminException
getDestinations
in interface AdminItf
ConnectException
- If the admin connection is closed or broken.AdminException
- Never thrown.getDestinations(int)
public final Destination[] getDestinations(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getDestinations
in interface AdminItf
serverId
- Unique identifier of the server.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public Destination createQueue(String name) throws AdminException, ConnectException
createQueue
in interface AdminItf
name
- The name of the queue.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.createQueue(int, String, String, Properties)
public Destination createQueue(int serverId, String name) throws AdminException, ConnectException
createQueue
in interface AdminItf
serverId
- The identifier of the server where deploying the topic.name
- The name of the queue.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.createQueue(int, String, String, Properties)
public Destination createQueue(int serverId, String name, String className, Properties prop) throws ConnectException, AdminException
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.
createQueue
in interface AdminItf
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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public Destination createTopic(String name) throws AdminException, ConnectException
createTopic
in interface AdminItf
name
- The name of the topic.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.createTopic(int, String, String, Properties)
public Destination createTopic(int serverId, String name) throws AdminException, ConnectException
createTopic
in interface AdminItf
serverId
- The identifier of the server where deploying the topic.name
- The name of the topic.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.createTopic(int, String, String, Properties)
public Destination createTopic(int serverId, String name, String className, Properties prop) throws ConnectException, AdminException
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.
createTopic
in interface AdminItf
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.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public Queue createDeadMQueue(int serverId, String name) throws ConnectException, AdminException
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.
serverId
- The identifier of the server where deploying the topic.name
- The name of the queue.ConnectException
- If the admin connection is closed or broken.AdminException
- If the request fails.public final User[] getUsers() throws ConnectException, AdminException
getUsers
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- Never thrown.getUsers(int)
public final User[] getUsers(int serverId) throws ConnectException, AdminException
The request fails if the target server does not belong to the platform.
getUsers
in interface AdminItf
serverId
- Unique identifier of the given server.ConnectException
- If the connection fails.AdminException
- If the request fails.public User createUser(String name, String password) throws ConnectException, AdminException
createUser
in interface AdminItf
name
- Name of the user.password
- Password of the user.ConnectException
- If the connection fails.AdminException
- If the request fails.createUser(String, String, int, String)
public User createUser(String name, String password, int serverId) throws ConnectException, AdminException
createUser
in interface AdminItf
name
- Name of the user.password
- Password of the user.serverId
- The identifier of the user's server.ConnectException
- If the connection fails.AdminException
- If the request fails.createUser(String, String, int, String)
public User createUser(String name, String password, String identityClass) throws AdminException, ConnectException
createUser
in interface AdminItf
name
- Name of the user.password
- Password of the user.identityClass
- Classname for authentication, by default SimpleIdentity for user/password.ConnectException
- If the connection fails.AdminException
- If the request fails.createUser(String, String, int, String)
public User createUser(String name, String password, int serverId, String identityClassName) throws ConnectException, AdminException
User
object.
If the user has already been set on this server, the method simply
returns the corresponding User
object. 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.
createUser
in interface AdminItf
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.ConnectException
- If the connection fails.AdminException
- If the request fails.public User createUser(String name, String password, int serverId, String identityClassName, Properties prop) throws ConnectException, AdminException
User
object.
If the user has already been set on this server, the method simply
returns the corresponding User
object. 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.
createUser
in interface AdminItf
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
- propertiesConnectException
- If the connection fails.AdminException
- If the request fails.private Identity createIdentity(String user, String passwd, String identityClassName) throws AdminException
user
- Name of the user.passwd
- Password of the user.identityClassName
- identity class name (simple, jaas).AdminException
public final Server getLocalServer() throws ConnectException, AdminException
getLocalServer
in interface AdminItf
ConnectException
- If the connection fails.AdminException
- If the request fails.public final int getLocalServerId() throws ConnectException, AdminException
getLocalServerId
in interface AdminItf
ConnectException
- If the admin connection is not established.AdminException
- If the request fails.getLocalServer()
public final String getLocalHost() throws ConnectException, AdminException
getLocalHost
in interface AdminItf
ConnectException
- If the admin connection is not established.AdminException
- If the request fails.getLocalServer()
public final String getLocalName() throws ConnectException, AdminException
getLocalName
in interface AdminItf
ConnectException
- If the admin connection is not established.AdminException
- If the request fails.getLocalServer()
public AdminReply processAdmin(String targetId, int command, Properties prop) throws ConnectException, AdminException
processAdmin
in interface AdminItf
targetId
- agent Id target.command
- the command to execute.prop
- the properties.AdminException
ConnectException
- If the connection fails.public AdminReply doRequest(AdminRequest request) throws AdminException, ConnectException
AdminRequest
instance to
the platform and getting an AdminReply
instance.doRequest
in interface AdminItf
request
- the administration request to sendConnectException
- If the connection to the platform fails.AdminException
- If the platform's reply is invalid, or if
the request failed.public void abortRequest() throws ConnectException
abortRequest
in interface AdminItf
ConnectException
public String invokeStaticServerMethod(int serverId, String className, String methodName, Class<?>[] parameterTypes, Object[] args) throws ConnectException, AdminException
invokeStaticServerMethod
in interface AdminItf
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 callConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String invokeStaticServerMethod(int serverId, String className, String methodName, Class<?>[] parameterTypes, Object[] args, boolean async) throws ConnectException, AdminException
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 callasync
- if true the method is invoked asynchronously by the server and the result is lost.ConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String addAMQPBridgeConnection(int serverId, String urls) throws ConnectException, AdminException
addAMQPBridgeConnection
in interface AdminItf
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"ConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String deleteAMQPBridgeConnection(int serverId, String names) throws ConnectException, AdminException
deleteAMQPBridgeConnection
in interface AdminItf
serverId
- the serverIdnames
- the name identifying the server or list of name separate by spaceConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String addJMSBridgeConnection(int serverId, String urls) throws ConnectException, AdminException
addJMSBridgeConnection
in interface AdminItf
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"ConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String deleteJMSBridgeConnection(int serverId, String names) throws ConnectException, AdminException
deleteJMSBridgeConnection
in interface AdminItf
serverId
- the serverIdnames
- the name identifying the server or list of name separate by spaceConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String deleteJMSPBridgeConnection(int serverId, String names) throws ConnectException, AdminException
deleteJMSPBridgeConnection
in interface AdminItf
serverId
- the serverIdnames
- the name identifying the server or list of name separate by spaceConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String deleteJMSBridgeConnection(int serverId, String names, boolean async) throws ConnectException, AdminException
deleteJMSBridgeConnection
in interface AdminItf
serverId
- the serverIdnames
- the name identifying the server or list of name separate by spaceasync
- invoke asynchronouslyConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failspublic String deleteJMSPBridgeConnection(int serverId, String names, boolean async) throws ConnectException, AdminException
deleteJMSPBridgeConnection
in interface AdminItf
serverId
- the serverIdnames
- the name identifying the server or list of name separate by spaceasync
- invoke asynchronouslyConnectException
- If the connection fails.AdminException
- If the invocation can't be done or failsCopyright © 2018 ScalAgent D.T.. All Rights Reserved.