|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.ibm.mmconsole.extension.Resource
com.ibm.mmconsole.extension.DatabaseResource
public class DatabaseResource
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 |
|---|
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)
BusinessApplication.getResources()
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 |
|---|
public void destroy()
destroy in interface IConsoleContainerdestroy in class Resourcepublic int getType()
getType in class ResourceResource.DATABASEpublic java.lang.String getJdbcPort()
public java.lang.String getDatabaseName()
public java.lang.String getDatabaseContainerName()
public java.lang.String getInstallPath()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||