com.ibm.mmconsole.extension
Class Resource

java.lang.Object
  extended by com.ibm.mmconsole.extension.Resource
All Implemented Interfaces:
IConsoleContainer
Direct Known Subclasses:
ApplicationServerResource, DatabaseResource, WebServerResource

public abstract class Resource
extends java.lang.Object
implements IConsoleContainer

This class represents a resource configured within the console. This class can be used to retrieve known properties of the resource, such as: server name or version.


Field Summary
static int APP_SERVER
          Application Server
static int DATABASE
          Database Server
static int UNKNOWN_RESOURCE
          Unknown resource type
static int WEB_SERVER
          Web (HTTP) Server
 
Fields inherited from interface com.ibm.mmconsole.extension.IConsoleContainer
DEFAULT_STRING
 
Method Summary
 void destroy()
          destroy method for cleanup
 java.lang.String getAgentPort()
          Returns the value of the console agent port.
 java.lang.String getDefaultTitle()
          Returns the default title for this console object
 java.lang.String getLocalizedTitle(java.util.Locale locale)
          Returns the localized title for this console object
 java.lang.String getPropertiesPageNavId()
          Returns the navigation ID for the resource's properties page
 java.lang.String getServer()
          Returns the server name for this resource.
 int getType()
          Returns the type of resource.
 java.lang.String getUniqueId()
          Returns the unique ID for this console object
 java.lang.String getVersion()
          Returns the version of the resource.
 java.lang.String toString()
          Returns a String representation of the resource.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

APP_SERVER

public static final int APP_SERVER
Application Server

See Also:
Constant Field Values

WEB_SERVER

public static final int WEB_SERVER
Web (HTTP) Server

See Also:
Constant Field Values

DATABASE

public static final int DATABASE
Database Server

See Also:
Constant Field Values

UNKNOWN_RESOURCE

public static final int UNKNOWN_RESOURCE
Unknown resource type

See Also:
Constant Field Values
Method Detail

getPropertiesPageNavId

public java.lang.String getPropertiesPageNavId()
Returns the navigation ID for the resource's properties page

Returns:
The properties page navigation ID.

destroy

public void destroy()
destroy method for cleanup

Specified by:
destroy in interface IConsoleContainer

getUniqueId

public java.lang.String getUniqueId()
Returns the unique ID for this console object

Specified by:
getUniqueId in interface IConsoleContainer
Returns:
The unique ID of this object.

getDefaultTitle

public java.lang.String getDefaultTitle()
Returns the default title for this console object

Specified by:
getDefaultTitle in interface IConsoleContainer
Returns:
The default title of this object.

getLocalizedTitle

public java.lang.String getLocalizedTitle(java.util.Locale locale)
Returns the localized title for this console object

Specified by:
getLocalizedTitle in interface IConsoleContainer
Parameters:
locale - - Locale to use for the title string.
Returns:
The localized title, or the default if there is no title for the specified locale.

getType

public int getType()
Returns the type of resource.

Returns:
An integer with the following values: UNKNOWN_RESOURCE, APP_SERVER, WEB_SERVER, DATABASE

getServer

public java.lang.String getServer()
Returns the server name for this resource.

Returns:
String or null if value does not exist

getAgentPort

public java.lang.String getAgentPort()
Returns the value of the console agent port.

Returns:
String or null if value does not exist

toString

public java.lang.String toString()
Returns a String representation of the resource.

Overrides:
toString in class java.lang.Object

getVersion

public java.lang.String getVersion()
Returns the version of the resource.

Returns:
String or null if value does not exist