com.ibm.mmconsole.extension
Class DatabaseResource

java.lang.Object
  extended by com.ibm.mmconsole.extension.Resource
      extended by com.ibm.mmconsole.extension.DatabaseResource
All Implemented Interfaces:
IConsoleContainer

public class DatabaseResource
extends Resource

This class represents a resource of the type database. This class can be used to retrieve known properties of the database, for example: database name or JDBC port.


Field Summary
 
Fields inherited from class com.ibm.mmconsole.extension.Resource
APP_SERVER, DATABASE, UNKNOWN_RESOURCE, WEB_SERVER
 
Fields inherited from interface com.ibm.mmconsole.extension.IConsoleContainer
DEFAULT_STRING
 
Constructor Summary
DatabaseResource(java.lang.String uid, java.util.Hashtable titles, java.lang.String server, java.lang.String agentPort, java.lang.String version, java.lang.String propPageNavId, java.lang.String databaseContainer, java.lang.String databaseName, java.lang.String jdbcPort, java.lang.String databasePath)
          Initializes a database resource with the specified data.
 
Method Summary
 void destroy()
          destroy method for cleanup
 java.lang.String getDatabaseContainerName()
          Returns the name of the database container.
 java.lang.String getDatabaseName()
          Returns the name of the database.
 java.lang.String getInstallPath()
          Returns the install path of the database.
 java.lang.String getJdbcPort()
          Returns the JDBC port for the database.
 int getType()
          Returns the type of resource.
 
Methods inherited from class com.ibm.mmconsole.extension.Resource
getAgentPort, getDefaultTitle, getLocalizedTitle, getPropertiesPageNavId, getServer, getUniqueId, getVersion, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatabaseResource

public DatabaseResource(java.lang.String uid,
                        java.util.Hashtable titles,
                        java.lang.String server,
                        java.lang.String agentPort,
                        java.lang.String version,
                        java.lang.String propPageNavId,
                        java.lang.String databaseContainer,
                        java.lang.String databaseName,
                        java.lang.String jdbcPort,
                        java.lang.String databasePath)
Initializes a database resource with the specified data. Note: Should not create one directly. Use the BusinessApplication.getResources()

Parameters:
uid - - A String representing the unique ID for this resource.
titles - - A Hashtable containing all the available localized and default titles for the resource.
server - - A String representing the name of the host where the resource is located.
agentPort - - A String representing the port that the console agent is running on.
version - - A String representing the version of the resource.
propPageNavId - - A String representing the navigation ID of the task page for the resource property page.
databaseContainer - - A String representing the name of the database instance (DB2) or server (Informix).
databaseName - - A String representing the name of the database.
jdbcPort - - A String representing the JDBC port for the database.
databasePath - - A String representing the install path for the database.
Method Detail

destroy

public void destroy()
destroy method for cleanup

Specified by:
destroy in interface IConsoleContainer
Overrides:
destroy in class Resource

getType

public int getType()
Returns the type of resource.

Overrides:
getType in class Resource
Returns:
Resource.DATABASE

getJdbcPort

public java.lang.String getJdbcPort()
Returns the JDBC port for the database.

Returns:
String or null if value does not exist

getDatabaseName

public java.lang.String getDatabaseName()
Returns the name of the database.

Returns:
String or null if value does not exist

getDatabaseContainerName

public java.lang.String getDatabaseContainerName()
Returns the name of the database container. The container is the database instance in DB2 and the database server in Informix.

Returns:
String or null if value does not exist

getInstallPath

public java.lang.String getInstallPath()
Returns the install path of the database.

Returns:
String or null if value does not exist