Package org.ow2.joram.jakarta.connector
Interface JoramAdapterMBean
-
- All Known Implementing Classes:
JoramAdapter
public interface JoramAdapterMBean
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidcreateCF(String name)Creates a non managed connection factory and binds it to JNDI.StringcreateQueue(short serverId, String name)Creates or retrieves a queue destination on the underlying JORAM server, (re)binds the correspondingQueueinstance.StringcreateQueue(String name)Creates or retrieves a queue destination on the underlying JORAM server, (re)binds the correspondingQueueinstance.voidcreateQueueCF(String name)Creates a non managed PTP connection factory and binds it to JNDI.StringcreateTopic(short serverId, String name)Creates or retrieves a topic destination on the underlying JORAM server, (re)binds the correspondingTopicinstance.StringcreateTopic(String name)Creates or retrieves a topic destination on the underlying JORAM server, (re)binds the correspondingTopicinstance.voidcreateTopicCF(String name)Creates a non managed PubSub connection factory and binds it to JNDI.StringcreateUser(String name, String password)Creates or retrieves a user on the underlying JORAM server.StringcreateUser(String name, String password, short serverId)Creates or retrieves a user on the given JORAM server.StringcreateUser(String name, String password, short serverId, String identityClass)Creates or retrieves a user on the underlying JORAM server.StringcreateUser(String name, String password, String identityClass)Creates or retrieves a user on the underlying JORAM server.voidexecuteXMLAdmin(String path)voidexportRepositoryToFile(String exportDir)Export the repository content to an XML file with default filenamevoidexportRepositoryToFile(String exportDir, String exportFilename)Export the repository content to an XML file - only the destinations objects are retrieved in this version - xml script format of the admin objects (joramAdmin.xml)longgetAdminDurationBeforeChangeState()get the duration of admin connection before change state.StringgetAdminDurationBeforeChangeStateDate()get the duration of admin connection before change state.StringgetAdminFileExportXML()StringgetAdminFileXML()Path to the XML file containing a description of the administered objects to create and bind.BooleangetCollocated()Returnstrueif the Joram server is collocated.BooleangetCollocatedServer()Deprecated.only needed for compatibility with JOnAS 5.2 administration GUIIntegergetConnectingTimer()Duration in seconds during which connecting is attempted (connecting might take time if the server is temporarily not reachable); the 0 value is set for connecting only once and aborting if connecting failed.StringgetDefaultDMQId()Returns the unique identifier of the default dead message queue for the local server, null if not set.StringgetDefaultDMQId(short serverId)Returns the unique identifier of the default dead message queue for a given server, null if not set.intgetDefaultThreshold()Returns the default threshold of the Joram server.intgetDefaultThreshold(short serverId)Returns the default threshold of the given Joram server.String[]getDestinations()Returns the list of all destinations that exist on the local server.String[]getDestinations(short serverId)Returns the list of all destinations that exist on the given server.StringgetHostName()Returns the location of the Joram server.StringgetIdentityClass()Identity class needed for authenticationStringgetJMSProviderName()Get the provider name: Joram.StringgetJMSVersion()Gets the JMS API version.StringgetJndiName()The Joram resource adapter jndi name.StringgetName()Returns the name of the resource adapter.StringgetPlatformConfigDir()Path to the directory containing JORAM's configuration files (a3servers.xml,a3debug.cfgand admin file), needed when StartJoramServer is set to true.StringgetProviderVersion()Gets the Joram's implementation version.StringgetRootName()login name for administrator.ShortgetServerId()Returns the unique identifier of the Joram server.StringgetServerName()Deprecated.only needed for compatibility with JOnAS 5.2 administration GUIIntegergetServerPort()Returns the listening port of the Joram server.Short[]getServersIds()Returns the list of the platform's servers' identifiers.String[]getServersNames()Returns the list of the platform's servers' names.BooleangetStartJoramServer()true if the resource adapter start the JoramServerStringgetStorage()The persistence directory of the JORAM server to start, needed when StartJoramServer is set to true.longgetTimeOutToAbortRequest()Gets timeout before abort a request.String[]getUsers()Returns the list of all users that exist on the local server.String[]getUsers(short serverId)Returns the list of all users that exist on a given server.booleanisActive()return the activity of the Joram administration connection.voidremoveDestination(String name)Remove a destination specified by its JNDI name on the underlying JORAM platform.voidresetDefaultDMQ(short serverId)Unset the default dead message queue for the given server.voidsetDefaultThreshold(int threshold)Sets the default threshold of the Joram server.voidsetDefaultThreshold(short serverId, int threshold)Sets the default threshold of the given Joram server.voidsetTimeOutToAbortRequest(long timeOut)Sets timeout before abort a request.
-
-
-
Method Detail
-
isActive
boolean isActive()
return the activity of the Joram administration connection.- Returns:
- true if connection admin connection is active.
-
getAdminDurationBeforeChangeState
long getAdminDurationBeforeChangeState()
get the duration of admin connection before change state.- Returns:
- the duration of admin connection before change state.
-
getAdminDurationBeforeChangeStateDate
String getAdminDurationBeforeChangeStateDate()
get the duration of admin connection before change state.- Returns:
- the duration of admin connection before change state.
-
getJMSVersion
String getJMSVersion()
Gets the JMS API version.- Returns:
- The JMS API version.
-
getJMSProviderName
String getJMSProviderName()
Get the provider name: Joram.- Returns:
- The provider name: Joram.
-
getProviderVersion
String getProviderVersion()
Gets the Joram's implementation version.- Returns:
- The Joram's implementation version.
-
getServerId
Short getServerId()
Returns the unique identifier of the Joram server.- Returns:
- The unique identifier of the Joram server.
-
getName
String getName()
Returns the name of the resource adapter.- Returns:
- The name of the resource adapter.
-
getHostName
String getHostName()
Returns the location of the Joram server.- Returns:
- The location of the Joram server.
-
getServerPort
Integer getServerPort()
Returns the listening port of the Joram server.- Returns:
- The listening port of the Joram server.
-
getCollocated
Boolean getCollocated()
Returnstrueif the Joram server is collocated.- Returns:
trueif the Joram server is collocated.
-
getConnectingTimer
Integer getConnectingTimer()
Duration in seconds during which connecting is attempted (connecting might take time if the server is temporarily not reachable); the 0 value is set for connecting only once and aborting if connecting failed.
-
setTimeOutToAbortRequest
void setTimeOutToAbortRequest(long timeOut) throws ConnectExceptionSets timeout before abort a request.- Parameters:
timeOut- timeout before abort a request.- Throws:
ConnectException- See Also:
AdminModule.setTimeOutToAbortRequest(long)
-
getTimeOutToAbortRequest
long getTimeOutToAbortRequest() throws ConnectExceptionGets timeout before abort a request.- Returns:
- timeout before abort a request.
- Throws:
ConnectException- See Also:
AdminModule.getTimeOutToAbortRequest()
-
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 dead message queue of the local server or null if none exists.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.
-
getDefaultDMQId
String getDefaultDMQId(short 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 given server.- Returns:
- The unique identifier of the dead message queue of the given server or null if none exists.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
resetDefaultDMQ
void resetDefaultDMQ(short serverId) throws ConnectException, AdminExceptionUnset the default dead message queue for the given server.- Parameters:
serverId- Unique identifier of the hiven server.- Throws:
ConnectExceptionAdminException
-
getDefaultThreshold
int getDefaultThreshold() throws ConnectException, AdminExceptionReturns the default threshold of the Joram server.- Returns:
- the default threshold of the Joram server.
- Throws:
ConnectExceptionAdminException- See Also:
AdminModule.getDefaultThreshold()
-
getDefaultThreshold
int getDefaultThreshold(short serverId) throws ConnectException, AdminExceptionReturns the default threshold of the given Joram server.- Parameters:
serverId- Unique identifier of the given Joram server.- Returns:
- the default threshold of the given Joram server.
- Throws:
ConnectExceptionAdminException- See Also:
AdminModule.getDefaultThreshold(int)
-
setDefaultThreshold
void setDefaultThreshold(int threshold) throws ConnectException, AdminExceptionSets the default threshold of the Joram server.- Parameters:
threshold- the default threshold of the Joram server.- Throws:
ConnectExceptionAdminException- See Also:
AdminModule.setDefaultThreshold(int)
-
setDefaultThreshold
void setDefaultThreshold(short serverId, int threshold) throws ConnectException, AdminExceptionSets the default threshold of the given Joram server.- Parameters:
serverId- Unique identifier of the given Joram server.threshold- the default threshold of the given Joram server.- Throws:
ConnectExceptionAdminException- See Also:
AdminModule.setDefaultThreshold(int, int)
-
getDestinations
String[] getDestinations() throws ConnectException, AdminException
Returns the list of all destinations that exist on the local server. This method creates and registers MBeans for all the destinations of the selected servers.- Returns:
- An array containing the object name of all destinations defined on the given server or null if none exists.
- Throws:
ConnectException- If the connection is closed or broken.AdminException- Never thrown.- See Also:
getDestinations(short)
-
getDestinations
String[] getDestinations(short serverId) throws ConnectException, AdminException
Returns the list of all destinations that exist on the given server. This method creates and registers MBeans for all the destinations of the selected servers.The request fails if the target server does not belong to the platform.
- Returns:
- An array containing the object name of all destinations defined on the given server or null if none exists.
- Throws:
ConnectException- If the connection is closed or broken.AdminException- Never thrown.- See Also:
getDestinations(short)
-
createQueue
String createQueue(String name) throws AdminException, ConnectException
Creates or retrieves a queue destination on the underlying JORAM server, (re)binds the correspondingQueueinstance.- Parameters:
name- The name of the queue.- Throws:
AdminException- If the creation fails.ConnectException- if the connection is closed or broken- See Also:
createQueue(short, String)
-
createQueue
String createQueue(short serverId, String name) throws AdminException, ConnectException
Creates or retrieves a queue destination on the underlying JORAM server, (re)binds the correspondingQueueinstance.- Parameters:
serverId- The identifier of the server where deploying the queue.name- The name of the queue.- Throws:
AdminException- If the creation fails.ConnectException- if the connection is closed or broken
-
createTopic
String createTopic(String name) throws AdminException, ConnectException
Creates or retrieves a topic destination on the underlying JORAM server, (re)binds the correspondingTopicinstance.- Parameters:
name- The name of the topic.- Throws:
AdminException- If the creation fails.ConnectException- if the connection is closed or broken- See Also:
#createTopic(int, String)
-
createTopic
String createTopic(short serverId, String name) throws AdminException, ConnectException
Creates or retrieves a topic destination on the underlying JORAM server, (re)binds the correspondingTopicinstance.- Parameters:
serverId- The identifier of the server where deploying the topic.name- The name of the topic.- Throws:
AdminException- If the creation fails.ConnectException- if the connection is closed or broken
-
removeDestination
void removeDestination(String name) throws AdminException
Remove a destination specified by its JNDI name on the underlying JORAM platform.- Parameters:
name- The JNDI name of the destination.- Throws:
AdminException
-
getUsers
String[] getUsers() throws ConnectException, AdminException
Returns the list of all users that exist on the local server. This method creates and registers MBeans for all the users of the selected servers.- Returns:
- An array containing the object name of all users defined on the given server or null if none exists.
- Throws:
ConnectException- If the connection fails.AdminException- Never thrown.- See Also:
getUsers(short)
-
getUsers
String[] getUsers(short serverId) throws ConnectException, AdminException
Returns the list of all users that exist on a given server. This method creates and registers MBeans for all the users of the selected servers.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 the object name of all users defined on the given server or null if none exists.
- Throws:
ConnectException- If the connection fails.AdminException- If the request fails.
-
createUser
String createUser(String name, String password) throws AdminException, ConnectException
Creates or retrieves a user on the underlying JORAM server.- Parameters:
name- The login name of the user.password- The password of the user.- Returns:
- The object name of created user.
- Throws:
AdminException- If the creation fails.ConnectException- If the connection fails.- See Also:
createUser(String, String, short, String)
-
createUser
String createUser(String name, String password, String identityClass) throws AdminException, ConnectException
Creates or retrieves a user on the underlying JORAM server.- Parameters:
name- The login name of the user.password- The password of the user.identityClass- The identity class used for authentication.- Returns:
- The object name of created user.
- Throws:
AdminException- If the creation fails.ConnectException- If the connection fails.- See Also:
createUser(String, String, short, String)
-
createUser
String createUser(String name, String password, short serverId) throws AdminException, ConnectException
Creates or retrieves a user on the given JORAM server.- Parameters:
name- The login name of the user.password- The password of the user.serverId- The unique identifier of the Joram server.- Returns:
- The object name of created user.
- Throws:
AdminException- If the creation fails.ConnectException- If the connection fails.- See Also:
createUser(String, String, short, String)
-
createUser
String createUser(String name, String password, short serverId, String identityClass) throws ConnectException, AdminException
Creates or retrieves a user on the underlying JORAM server.- Parameters:
name- The login name of the user.password- The password of the user.serverId- The unique identifier of the Joram server.identityClass- The identity class used for authentication.- Returns:
- The object name of created user.
- Throws:
AdminException- If the creation fails.ConnectException- If the connection fails.
-
createCF
void createCF(String name) throws Exception
Creates a non managed connection factory and binds it to JNDI.- Parameters:
name- Name of created connection factory.- Throws:
Exception
-
createQueueCF
void createQueueCF(String name)
Creates a non managed PTP connection factory and binds it to JNDI.- Parameters:
name- Name of created connection factory.
-
createTopicCF
void createTopicCF(String name)
Creates a non managed PubSub connection factory and binds it to JNDI.- Parameters:
name- Name of created connection factory.
-
getPlatformConfigDir
String getPlatformConfigDir()
Path to the directory containing JORAM's configuration files (a3servers.xml,a3debug.cfgand admin file), needed when StartJoramServer is set to true.
-
getAdminFileXML
String getAdminFileXML()
Path to the XML file containing a description of the administered objects to create and bind.
-
getAdminFileExportXML
String getAdminFileExportXML()
-
exportRepositoryToFile
void exportRepositoryToFile(String exportDir) throws AdminException
Export the repository content to an XML file with default filename. - only the destinations objects are retrieved in this version - xml script format of the admin objects (joramAdmin.xml)- Parameters:
exportDir- target directory where the export file will be put- Throws:
AdminException- if an error occurs
-
exportRepositoryToFile
void exportRepositoryToFile(String exportDir, String exportFilename) throws AdminException
Export the repository content to an XML file - only the destinations objects are retrieved in this version - xml script format of the admin objects (joramAdmin.xml)- Parameters:
exportDir- target directory where the export file will be putexportFilename- filename of the export file- Throws:
AdminException- if an error occurs
-
getServersIds
Short[] getServersIds() throws ConnectException, AdminException
Returns the list of the platform's servers' identifiers.- Returns:
- an array containing the list of the platform's servers' identifiers.
- Throws:
AdminException- If the request fails.ConnectException- If the connection fails.
-
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.
-
getStorage
String getStorage()
The persistence directory of the JORAM server to start, needed when StartJoramServer is set to true.- Returns:
- the persistence directory.
-
getJndiName
String getJndiName()
The Joram resource adapter jndi name.- Returns:
- the Joram resource adapter jndi name.
-
getRootName
String getRootName()
login name for administrator.
-
getIdentityClass
String getIdentityClass()
Identity class needed for authentication
-
getStartJoramServer
Boolean getStartJoramServer()
true if the resource adapter start the JoramServer
-
getCollocatedServer
Boolean getCollocatedServer()
Deprecated.only needed for compatibility with JOnAS 5.2 administration GUIReturns true if the server is colocated.- See Also:
getCollocatedServer()
-
getServerName
String getServerName()
Deprecated.only needed for compatibility with JOnAS 5.2 administration GUIReturns the server name.- See Also:
getServerName()
-
-