com.ibm.mmconsole.extension
Class ApplicationServerResource

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

public class ApplicationServerResource
extends Resource

This class represents a resource of the type application server. This class can be used to retrieve known properties of the server, such as: server instance name or the profile 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
ApplicationServerResource(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 adminPort, java.lang.String appPort, java.lang.String profileName, java.lang.String serverInstance, java.lang.String profileBinPath)
          Initializes an application resource with the specified data.
 
Method Summary
 void destroy()
          destroy method for cleanup
 java.lang.String getAdminPort()
          Returns the port which the administrative console runs on.
 java.lang.String getApplicationPort()
          Returns the port the which a server application runs on.
 java.lang.String getProfileBinPath()
          Returns the bin directory for the profile.
 java.lang.String getProfileName()
          Returns the name of the profile.
 java.lang.String getServerInstanceName()
          Returns the name of the server instance.
 int getType()
          Returns the type of resource this is.
 
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

ApplicationServerResource

public ApplicationServerResource(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 adminPort,
                                 java.lang.String appPort,
                                 java.lang.String profileName,
                                 java.lang.String serverInstance,
                                 java.lang.String profileBinPath)
Initializes an application 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.
adminPort - - A String representing the port on which the server's administrative console runs on.
appPort - - A String representing the port which a server application runs on.
profileName - - A String representing the name of profile for the application server.
serverInstance - - A String representing the name of the server instance within the profile.
profileBinPath - - A String representing the bin directory location for 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 this is.

Overrides:
getType in class Resource
Returns:
Resource.APP_SERVER

getAdminPort

public java.lang.String getAdminPort()
Returns the port which the administrative console runs on.

Returns:
String or null if value does not exist

getApplicationPort

public java.lang.String getApplicationPort()
Returns the port the which a server application runs on.

Returns:
String or null if value does not exist

getProfileName

public java.lang.String getProfileName()
Returns the name of the profile.

Returns:
String or null if value does not exist

getServerInstanceName

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

Returns:
String or null if value does not exist

getProfileBinPath

public java.lang.String getProfileBinPath()
Returns the bin directory for the profile.

Returns:
String or null if value does not exist