com.ibm.mmconsole.extension
Class WebServerResource

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

public class WebServerResource
extends Resource

This class represents a resource of the type web server. This class can be used to retrieve known properties of the server, such as: server instance name.


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
WebServerResource(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 serverInstance)
          Initializes a web server resource with the specified data.
 
Method Summary
 void destroy()
          destroy method for cleanup
 java.lang.String getServerInstanceName()
          Returns the name of the server instance.
 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

WebServerResource

public WebServerResource(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 serverInstance)
Initializes a web server resource with the specified data. Note: Should not create one directly. Use the BusinessApplication.getResources()

Parameters:
uid - - String containing a unique ID representation for this resource.
titles - - Hashtable containing a list of all the available localized titles for the resource.
server - - String containing the name of the host where the resource is located.
agentPort - - String containing the port that the console agent is running on.
version - - String containing the version of the resource.
propPageNavId - - String containing the navigation ID of the task page for the resource property page.
serverInstance - - String containing the name of the server instance within the profile.
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.WEB_SERVER

getServerInstanceName

public java.lang.String getServerInstanceName()
Returns the name of the server instance.

Returns:
String or null if value does not exist