Java Doc for AbstractServiceMBeansImpl.java in  » ESB » open-esb » com » sun » esb » management » base » services » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ESB » open esb » com.sun.esb.management.base.services 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.esb.management.base.services.AbstractServiceMBeansImpl

All known Subclasses:   com.sun.esb.management.impl.installation.InstallationServiceMBeanImpl,  com.sun.esb.management.base.services.AbstractListStateServiceMBeansImpl,  com.sun.esb.management.impl.performance.PerformanceMeasurementServiceMBeanImpl,  com.sun.esb.management.impl.deployment.DeploymentServiceMBeanImpl,
AbstractServiceMBeansImpl
abstract public class AbstractServiceMBeansImpl implements Serializable(Code)

author:
   graj


Field Summary
final protected static  StringCOLON
    
final protected static  StringCOMMA
    
final protected static  StringCOMPONENT_CONFIG_INSTANCE_ERROR_KEY
    
final protected static  StringCUSTOM_ADMINISTRATION_NAME_KEY
    
final protected static  StringCUSTOM_CONFIGURATION_NAME_KEY
    
final protected static  StringCUSTOM_LOGGER_NAME_KEY
    
final protected static  StringCUSTOM_MANAGEMENT_ACTIONS_NAME_KEY
    
final protected static  StringCUSTOM_STATISTICS_NAME_KEY
    
final protected static  StringDOMAIN_TARGET_KEY
    
protected static  StringEBIJMXDOMAIN
    
final protected static  StringEQUAL
    
final protected static  StringIDENTIFICATION_NAME_KEY
    
final protected static  StringJMX_EBI_DOMAIN
    
final protected static  charPASSWORD_MASK_CHARACTER
    
final protected static  StringRUNNING_STATE
    
final protected static  StringSERVER_TARGET_KEY
    
final protected static  StringSERVICE_TYPE_KEY
    
final protected static  StringSTARTED_STATE
    
protected  ComponentConfigurationHelpercomponentConfigurationHelper
    
protected  EnvironmentContextenvironmentContext
     Jbi Environment context.
final static  longserialVersionUID
    

Constructor Summary
public  AbstractServiceMBeansImpl(EnvironmentContext anEnvContext)
    

Method Summary
protected  voidcheckForValidTarget(ObjectName objectName, String targetName)
    
protected  voidcheckForValidTarget(ObjectName objectName, String targetName, boolean useTargetNameFlag)
    
protected  TargetTypecheckTargetType(String target)
    
protected  AttributeListconstructMBeanAttributes(ObjectName objectName, Properties params)
    
protected  AttributeListconstructMBeanAttributes(ObjectName objectName, Map<String /*attributeName*/, Object params)
    
protected  AttributeListconstructMBeanAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, Properties params)
    
protected  ExceptioncreateManagementException(String bundleKey, String[] args, Exception sourceException)
    
protected  StringcreateManagementMessage(String taskId, boolean successResult, String msgType, String msgCode, Object[] args)
     Creates a management message.
protected  voiddomainTargetCheck(String target)
    
protected  Map<String /*instanceName*/, ObjectName[]>findLiveExtensionMBeanObjectNames(String componentName, String extensionName, String targetName)
    
protected  ObjectNamegetAdminServiceMBeanObjectName()
     returns the ObjectName for the AdminService Mbean of this component.
protected  ObjectNamegetAdminServiceMBeanObjectName(String targetName)
    
protected  ObjectgetAttributeValue(String targetName, ObjectName objectName, String attributeName)
    
protected  ObjectgetAttributeValue(MBeanServer mbeanServer, ObjectName objectName, String attributeName)
    
protected  ObjectgetAttributeValue(MBeanServerConnection mbeanServer, ObjectName objectName, String attributeName)
    
protected  ObjectgetAttributeValue(ObjectName objectName, String attributeName)
    
protected  Map<String, ObjectName[]>getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName)
    
protected  ObjectName[]getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName)
    
protected  ObjectNamegetDeploymentServiceMBeanObjectName(String targetName)
     returns the ObjectName for the DeploymentService Mbean of this component.
protected static  StringgetEbiJmxDomain()
    
protected  ObjectNamegetEbiStatusMBeanObjectName(String componentName, String targetName)
    
protected static  EnvironmentContextgetEnvironmentContext()
    
protected  ObjectNamegetExtensionMBeanObjectName(String componentName, String targetName)
     returns the ObjectName for the Extension Mbean of this component.
protected static  I18NBundlegetI18NBundle()
    
protected static  I18NBundlegetI18NBundle(String packageName)
    
protected  ObjectNamegetInstallationServiceMBeanObjectName(String targetName)
     returns the ObjectName for the InstallationService Mbean of this component.
protected  ObjectgetMBeanAttribute(ObjectName objectName, String attributeName)
    
protected  PropertiesgetMBeanAttributeValues(MBeanServerConnection connection, ObjectName objectName)
    
protected  Map<String /*attributeName*/, ObjectgetMBeanAttributeValuesAsMap(MBeanServerConnection connection, ObjectName objectName)
    
protected  MBeanServerConnectiongetMBeanServerConnection(String targetName)
    
protected  PlatformContextgetPlatformContext()
    
protected  StringgetPlatformContextAdminServerName()
     Get the instance name of the platform's administration server.
protected  Set<String>getPlatformContextClusterNames()
     Get a set of the names of all the clusters in the domain.
protected  Set<String>getPlatformContextClusteredServerNames()
     Get a set of the names of all the clustered servers in the domain.
protected  StringgetPlatformContextInstallRoot()
     Get the full path to the platform's instaall root directory.
protected  StringgetPlatformContextInstanceName()
     Get the name of this instance.
protected  StringgetPlatformContextInstanceRoot()
     Get the full path to the platform's instance root directory.
protected  StringgetPlatformContextJmxRmiPort()
     Get a string representation of the DAS JMX RMI connector port.
protected  MBeanServergetPlatformContextMBeanServer()
     Provides access to the platform's MBean server.
protected  Set<String>getPlatformContextServersInCluster(String clusterName)
     Get a set of the names of all the servers in the specified cluster.
protected  Set<String>getPlatformContextStandaloneServerNames()
     Get a set of the names of all the standalone servers in the domain.
protected  StringgetPlatformContextTargetName()
     Get the Target Name.
protected  StringgetPlatformContextTargetName(String instanceName)
     Get the Target Name for a specified instance.
protected  StringgetStackTrace(JBIRemoteException exception)
    
protected  ObjectinvokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature)
    
protected  ObjectinvokeMBeanOperation(MBeanServerConnection connection, ObjectName objectName, String operationName, Object[] params, String[] signature)
    
protected  ObjectinvokeMBeanOperation(String targetName, ObjectName objectName, String operationName, Object[] params, String[] signature)
    
protected  ObjectinvokeMBeanOperation(ObjectName objectName, String operationName, String param)
    
protected  ObjectinvokeMBeanOperation(ObjectName objectName, String operationName)
    
protected  booleanisMBeanRegistered(ObjectName objectName)
     Test whether an mbean is registered.
protected  booleanisPlatformContextAdminServer()
     Determine whether this instance is the administration server instance.
protected  booleanisPlatformContextCluster(String targetName)
     Determine whether a target is a cluster.
protected  booleanisPlatformContextClusteredServer(String targetName)
     Determine whether the target is a clustered server.
protected  booleanisPlatformContextInstanceClustered(String instanceName)
     Determine whether or not an instance is clustered.
protected  booleanisPlatformContextInstanceUp(String instanceName)
     Determine if the specified instance is up.
protected  booleanisPlatformContextStandaloneServer(String targetName)
     Determine whether a target is a standalone server.
protected  booleanisPlatformContextValidTarget(String targetName)
     Determine whether a target is a valid server or cluster name.
protected  booleanisTargetUp(String targetName)
     Checks to see if the Target (server, cluster) is up or down.
protected  booleanisValidTarget(ObjectName objectName)
     Test whether it is a valid target.
protected  booleanisValidTarget(ObjectName objectName, String targetName)
     Test whether it is a valid target.
protected  Map<String /*targetName*/, String[]listTargetNames()
     Returns a map of target names to an array of target instance names.
protected static  voidlog(String aMsg)
    
protected static  voidlogDebug(String aMsg)
    
protected static  voidlogDebug(Exception ex)
    
protected static  voidlogError(Exception ex)
    
public static  voidlogWarning(Exception ex)
    
protected  booleanplatformContextSupportsMultipleServers()
     Determine whether multiple servers are permitted within this AS installation.
protected  voidsetAttributeValue(String targetName, ObjectName objectName, String attributeName, Object attributeValue)
    
protected  voidsetAttributeValue(ObjectName objectName, String attributeName, Object attributeValue)
    
protected  voidsetAttributeValue(MBeanServerConnection connection, ObjectName objectName, String attributeName, Object attributeValue)
    
protected  voidsetMBeanAttribute(ObjectName objectName, String attributeName, Object attributeValue)
    
protected  voidsetMBeanAttributes(ObjectName objectName, AttributeList attrList)
    
protected  AttributeListsetMBeanAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, AttributeList attrList)
    
protected  StringsetMBeanConfigAttributes(ObjectName objectName, AttributeList attrList)
    
protected  StringsetMBeanConfigAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, AttributeList attrList)
    

Field Detail
COLON
final protected static String COLON(Code)



COMMA
final protected static String COMMA(Code)



COMPONENT_CONFIG_INSTANCE_ERROR_KEY
final protected static String COMPONENT_CONFIG_INSTANCE_ERROR_KEY(Code)



CUSTOM_ADMINISTRATION_NAME_KEY
final protected static String CUSTOM_ADMINISTRATION_NAME_KEY(Code)



CUSTOM_CONFIGURATION_NAME_KEY
final protected static String CUSTOM_CONFIGURATION_NAME_KEY(Code)



CUSTOM_LOGGER_NAME_KEY
final protected static String CUSTOM_LOGGER_NAME_KEY(Code)



CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY
final protected static String CUSTOM_MANAGEMENT_ACTIONS_NAME_KEY(Code)



CUSTOM_STATISTICS_NAME_KEY
final protected static String CUSTOM_STATISTICS_NAME_KEY(Code)



DOMAIN_TARGET_KEY
final protected static String DOMAIN_TARGET_KEY(Code)



EBIJMXDOMAIN
protected static String EBIJMXDOMAIN(Code)
Enterprise Business Integration JMX domain



EQUAL
final protected static String EQUAL(Code)



IDENTIFICATION_NAME_KEY
final protected static String IDENTIFICATION_NAME_KEY(Code)



JMX_EBI_DOMAIN
final protected static String JMX_EBI_DOMAIN(Code)
JMX Domain name for the Enterprise Business Integration JMX MBeans



PASSWORD_MASK_CHARACTER
final protected static char PASSWORD_MASK_CHARACTER(Code)



RUNNING_STATE
final protected static String RUNNING_STATE(Code)



SERVER_TARGET_KEY
final protected static String SERVER_TARGET_KEY(Code)



SERVICE_TYPE_KEY
final protected static String SERVICE_TYPE_KEY(Code)



STARTED_STATE
final protected static String STARTED_STATE(Code)



componentConfigurationHelper
protected ComponentConfigurationHelper componentConfigurationHelper(Code)
Component Configuration helper



environmentContext
protected EnvironmentContext environmentContext(Code)
Jbi Environment context.



serialVersionUID
final static long serialVersionUID(Code)




Constructor Detail
AbstractServiceMBeansImpl
public AbstractServiceMBeansImpl(EnvironmentContext anEnvContext)(Code)




Method Detail
checkForValidTarget
protected void checkForValidTarget(ObjectName objectName, String targetName) throws ManagementRemoteException(Code)
Check if a target is valid or not
Parameters:
  objectName -
Parameters:
  targetName -
throws:
  ManagementRemoteException -



checkForValidTarget
protected void checkForValidTarget(ObjectName objectName, String targetName, boolean useTargetNameFlag) throws ManagementRemoteException(Code)
Check if a target is valid or not
Parameters:
  objectName -
Parameters:
  targetName -
Parameters:
  useTargetNameFlag -
throws:
  ManagementRemoteException -



checkTargetType
protected TargetType checkTargetType(String target)(Code)
Check the type of the specified target
Parameters:
  targetName - an enum representing the type of the target.



constructMBeanAttributes
protected AttributeList constructMBeanAttributes(ObjectName objectName, Properties params) throws ManagementRemoteException(Code)
invokes the operation on mbean Attribute List of the mbean to set
Parameters:
  objectName - mbean name
Parameters:
  params - a name value pair properties object contains the attributename and its value as string.
throws:
  ManagementRemoteException - on user error



constructMBeanAttributes
protected AttributeList constructMBeanAttributes(ObjectName objectName, Map<String /*attributeName*/, Object params) throws ManagementRemoteException(Code)
invokes the operation on mbean Attribute List of the mbean to set
Parameters:
  objectName - mbean name
Parameters:
  params - a name value pair Map object contains the attributename and its value.
throws:
  ManagementRemoteException - on user error



constructMBeanAttributes
protected AttributeList constructMBeanAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, Properties params) throws ManagementRemoteException(Code)
invokes the operation on mbean Attribute List of the mbean to set
Parameters:
  objectName - mbean name
Parameters:
  params - a name value pair properties object contains the attributename and its value as string.
throws:
  ManagementRemoteException - on user error



createManagementException
protected Exception createManagementException(String bundleKey, String[] args, Exception sourceException)(Code)
Creates a management message string and populates the exception
Parameters:
  bundleKey -
Parameters:
  args - of Strings
Parameters:
  sourceException - -the source exception to propagate Exception object created with a valid XML Management Message



createManagementMessage
protected String createManagementMessage(String taskId, boolean successResult, String msgType, String msgCode, Object[] args)(Code)
Creates a management message.
Parameters:
  taskId -
Parameters:
  successResult -
Parameters:
  msgType -
Parameters:
  msgCode -
Parameters:
  args -



domainTargetCheck
protected void domainTargetCheck(String target) throws ManagementRemoteException(Code)
Check to ensure that the target is a domain target
throws:
  ManagementRemoteException - if target is domain



findLiveExtensionMBeanObjectNames
protected Map<String /*instanceName*/, ObjectName[]> findLiveExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException(Code)
Find Extension MBeans for targets that are up
Parameters:
  componentName -
Parameters:
  extensionName -
Parameters:
  targetName - map of instanceName to ObjectNames[] the contain live instances
throws:
  ManagementRemoteException -



getAdminServiceMBeanObjectName
protected ObjectName getAdminServiceMBeanObjectName() throws ManagementRemoteException(Code)
returns the ObjectName for the AdminService Mbean of this component. the ObjectName of the InstallationService MBean or null.
throws:
  JBIRemoteException - on error.



getAdminServiceMBeanObjectName
protected ObjectName getAdminServiceMBeanObjectName(String targetName)(Code)
returns the ObjectName for the AdminService facade Mbean for a target
Parameters:
  targetName - the ObjectName of the AdminService MBean or null.



getAttributeValue
protected Object getAttributeValue(String targetName, ObjectName objectName, String attributeName) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  targetName -
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



getAttributeValue
protected Object getAttributeValue(MBeanServer mbeanServer, ObjectName objectName, String attributeName) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  mbeanServer - connection to MBean Server
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



getAttributeValue
protected Object getAttributeValue(MBeanServerConnection mbeanServer, ObjectName objectName, String attributeName) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  mbeanServer - connection to MBean Server
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



getAttributeValue
protected Object getAttributeValue(ObjectName objectName, String attributeName) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



getComponentExtensionMBeanObjectNames
protected Map<String, ObjectName[]> getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName) throws ManagementRemoteException(Code)
Gets the extension MBean object names
Parameters:
  componentName - name of the component
Parameters:
  extensionName - the name of the extension (e.g., Configuration, Logger, etc.)
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
throws:
  ManagementRemoteException - on error



getComponentExtensionMBeanObjectNames
protected ObjectName[] getComponentExtensionMBeanObjectNames(String componentName, String extensionName, String targetName, String targetInstanceName) throws ManagementRemoteException(Code)
Gets the extension MBean object names
Parameters:
  componentName - name of the component
Parameters:
  extensionName - the name of the extension (e.g., Configuration, Logger, etc.)
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.)
Parameters:
  targetInstanceName - name of the target instance (e.g., cluster1-instance1, etc.) an array of ObjectName(s)
throws:
  ManagementRemoteException - on error



getDeploymentServiceMBeanObjectName
protected ObjectName getDeploymentServiceMBeanObjectName(String targetName)(Code)
returns the ObjectName for the DeploymentService Mbean of this component.
Parameters:
  targetName - the ObjectName of the DeploymentService MBean or null.



getEbiJmxDomain
protected static String getEbiJmxDomain()(Code)
gets the ebi jmx domain name domain name



getEbiStatusMBeanObjectName
protected ObjectName getEbiStatusMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException(Code)
Get the EBI Status MBean ObjectName
Parameters:
  componentName -
Parameters:
  targetName - object name of ebi config MBean
throws:
  ManagementRemoteException -



getEnvironmentContext
protected static EnvironmentContext getEnvironmentContext()(Code)
the EnvironmentContext



getExtensionMBeanObjectName
protected ObjectName getExtensionMBeanObjectName(String componentName, String targetName) throws ManagementRemoteException(Code)
returns the ObjectName for the Extension Mbean of this component.
Parameters:
  componentName -
Parameters:
  targetName - the ObjectName of the Extension MBean or null.



getI18NBundle
protected static I18NBundle getI18NBundle()(Code)
gives the I18N bundle I18NBundle object



getI18NBundle
protected static I18NBundle getI18NBundle(String packageName)(Code)
gives the I18N bundle
Parameters:
  packageName - I18NBundle object



getInstallationServiceMBeanObjectName
protected ObjectName getInstallationServiceMBeanObjectName(String targetName)(Code)
returns the ObjectName for the InstallationService Mbean of this component.
Parameters:
  targetName - the ObjectName of the InstallationService MBean or null.



getMBeanAttribute
protected Object getMBeanAttribute(ObjectName objectName, String attributeName) throws ManagementRemoteException(Code)
invokes the operation on mbean result object
Parameters:
  attributeName - attribute name
Parameters:
  objectName - object name
throws:
  ManagementRemoteException - on user error



getMBeanAttributeValues
protected Properties getMBeanAttributeValues(MBeanServerConnection connection, ObjectName objectName) throws ManagementRemoteException(Code)
Get the attributes on the MBean
Parameters:
  connection -
Parameters:
  objectName -
throws:
  ManagementRemoteException -



getMBeanAttributeValuesAsMap
protected Map<String /*attributeName*/, Object getMBeanAttributeValuesAsMap(MBeanServerConnection connection, ObjectName objectName) throws ManagementRemoteException(Code)
Get the attributes on the MBean
Parameters:
  connection -
Parameters:
  objectName -
throws:
  ManagementRemoteException -



getMBeanServerConnection
protected MBeanServerConnection getMBeanServerConnection(String targetName) throws ManagementRemoteException(Code)
Retrieve MBeanServerConnection for targets other than server
Parameters:
  targetName - MBeanServerConnection
throws:
  ManagementRemoteException -



getPlatformContext
protected PlatformContext getPlatformContext()(Code)
the platform context



getPlatformContextAdminServerName
protected String getPlatformContextAdminServerName()(Code)
Get the instance name of the platform's administration server. If the platform does not provide a separate administration server, then this method returns the name of the local instance. instance name of the administration server



getPlatformContextClusterNames
protected Set<String> getPlatformContextClusterNames()(Code)
Get a set of the names of all the clusters in the domain. a set of names of clusters in the domain.



getPlatformContextClusteredServerNames
protected Set<String> getPlatformContextClusteredServerNames()(Code)
Get a set of the names of all the clustered servers in the domain. a set of names of clustered servers in the domain.



getPlatformContextInstallRoot
protected String getPlatformContextInstallRoot()(Code)
Get the full path to the platform's instaall root directory. platform install root



getPlatformContextInstanceName
protected String getPlatformContextInstanceName()(Code)
Get the name of this instance. the name of this server instance.



getPlatformContextInstanceRoot
protected String getPlatformContextInstanceRoot()(Code)
Get the full path to the platform's instance root directory. platform instance root



getPlatformContextJmxRmiPort
protected String getPlatformContextJmxRmiPort()(Code)
Get a string representation of the DAS JMX RMI connector port. the JMX RMI connector port as a (CODE>String.



getPlatformContextMBeanServer
protected MBeanServer getPlatformContextMBeanServer()(Code)
Provides access to the platform's MBean server. platform MBean server.



getPlatformContextServersInCluster
protected Set<String> getPlatformContextServersInCluster(String clusterName)(Code)
Get a set of the names of all the servers in the specified cluster. a set of names of servers in the cluster.



getPlatformContextStandaloneServerNames
protected Set<String> getPlatformContextStandaloneServerNames()(Code)
Get a set of the names of all the standalone servers in the domain. a set of names of standalone servers in the domain.



getPlatformContextTargetName
protected String getPlatformContextTargetName()(Code)
Get the Target Name. If the instance is not a clustered instance then the target name is the instance name. If the instance is part of a cluster then the target name is the cluster name. the target name.



getPlatformContextTargetName
protected String getPlatformContextTargetName(String instanceName)(Code)
Get the Target Name for a specified instance. If the instance is not clustered the instance name is returned. This operation is invoked by the JBI instance MBeans only. the target name.



getStackTrace
protected String getStackTrace(JBIRemoteException exception)(Code)
Returns the stack-trace of the exception
Parameters:
  exception - stack traces as a string



invokeMBeanOperation
protected Object invokeMBeanOperation(ObjectName objectName, String operationName, Object[] params, String[] signature) throws ManagementRemoteException(Code)
invokes the operation on mbean
Parameters:
  objectName - object name
Parameters:
  operationName - operation name
Parameters:
  params - parameters
Parameters:
  signature - signature of the parameters result object
throws:
  ManagementRemoteException - on user error



invokeMBeanOperation
protected Object invokeMBeanOperation(MBeanServerConnection connection, ObjectName objectName, String operationName, Object[] params, String[] signature) throws ManagementRemoteException(Code)
invokes the operation on mbean
Parameters:
  connection -
Parameters:
  objectName - object name
Parameters:
  operationName - operation name
Parameters:
  params - parameters
Parameters:
  signature - signature of the parameters result object
throws:
  ManagementRemoteException - on user error



invokeMBeanOperation
protected Object invokeMBeanOperation(String targetName, ObjectName objectName, String operationName, Object[] params, String[] signature) throws ManagementRemoteException(Code)
invokes the operation on mbean on appropriate target
Parameters:
  targetName -
Parameters:
  objectName - object name
Parameters:
  operationName - operation name
Parameters:
  params - parameters
Parameters:
  signature - signature of the parameters result object
throws:
  ManagementRemoteException - on user error



invokeMBeanOperation
protected Object invokeMBeanOperation(ObjectName objectName, String operationName, String param) throws ManagementRemoteException(Code)
invokes the operation on mbean result object
Parameters:
  objectName - object name
Parameters:
  operationName - operation name
Parameters:
  param - operation param of type String
throws:
  ManagementRemoteException - on user error



invokeMBeanOperation
protected Object invokeMBeanOperation(ObjectName objectName, String operationName) throws ManagementRemoteException(Code)
invokes the operation on mbean result object
Parameters:
  objectName - object name
Parameters:
  operationName - operation name
throws:
  ManagementRemoteException - on user error



isMBeanRegistered
protected boolean isMBeanRegistered(ObjectName objectName) throws ManagementRemoteException(Code)
Test whether an mbean is registered.
Parameters:
  objectName - true when the mbean is registered, false otherwise
throws:
  ManagementRemoteException -



isPlatformContextAdminServer
protected boolean isPlatformContextAdminServer()(Code)
Determine whether this instance is the administration server instance. true if this instance is the administration server,false if not.



isPlatformContextCluster
protected boolean isPlatformContextCluster(String targetName)(Code)
Determine whether a target is a cluster. true if targetName is a cluster,false if not.



isPlatformContextClusteredServer
protected boolean isPlatformContextClusteredServer(String targetName)(Code)
Determine whether the target is a clustered server. true if targetName is a clusteredserver, false if not.



isPlatformContextInstanceClustered
protected boolean isPlatformContextInstanceClustered(String instanceName)(Code)
Determine whether or not an instance is clustered. true if the instance is clustered,false if not.



isPlatformContextInstanceUp
protected boolean isPlatformContextInstanceUp(String instanceName)(Code)
Determine if the specified instance is up. true if the instance is up and running, false otherwise



isPlatformContextStandaloneServer
protected boolean isPlatformContextStandaloneServer(String targetName)(Code)
Determine whether a target is a standalone server. true if targetName is a standaloneserver, false if not.



isPlatformContextValidTarget
protected boolean isPlatformContextValidTarget(String targetName)(Code)
Determine whether a target is a valid server or cluster name. true if targetName is a validstandalone server name or cluster name, false if not.



isTargetUp
protected boolean isTargetUp(String targetName) throws ManagementRemoteException(Code)
Checks to see if the Target (server, cluster) is up or down.
Parameters:
  targetName - name of the target (e.g., cluster1, server, etc.) true if Target is up, false if not
throws:
  ManagementRemoteException - if error or exception occurs.



isValidTarget
protected boolean isValidTarget(ObjectName objectName) throws ManagementRemoteException(Code)
Test whether it is a valid target.
Parameters:
  objectName - true when the mbean is registered, false otherwise
throws:
  ManagementRemoteException -



isValidTarget
protected boolean isValidTarget(ObjectName objectName, String targetName) throws ManagementRemoteException(Code)
Test whether it is a valid target.
Parameters:
  objectName -
Parameters:
  targetName - true when the mbean is registered, false otherwise
throws:
  ManagementRemoteException -



listTargetNames
protected Map<String /*targetName*/, String[] listTargetNames() throws ManagementRemoteException(Code)
Returns a map of target names to an array of target instance names. In the case cluster targets, the key contains the cluster target name, and the the value contains an array of the "target instance" names. If it is not a cluster target, the key contains the targetName, and the value is null. map of target names to array of target instance names
throws:
  ManagementRemoteException -



log
protected static void log(String aMsg)(Code)
logs the message
Parameters:
  aMsg - message string



logDebug
protected static void logDebug(String aMsg)(Code)
logs the message
Parameters:
  aMsg - message string



logDebug
protected static void logDebug(Exception ex)(Code)
logs the message
Parameters:
  ex - exception



logError
protected static void logError(Exception ex)(Code)
logs errors
Parameters:
  ex - exception



logWarning
public static void logWarning(Exception ex)(Code)
logs warnings
Parameters:
  ex - exception



platformContextSupportsMultipleServers
protected boolean platformContextSupportsMultipleServers()(Code)
Determine whether multiple servers are permitted within this AS installation. true if multiple servers are permitted.



setAttributeValue
protected void setAttributeValue(String targetName, ObjectName objectName, String attributeName, Object attributeValue) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  targetName -
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



setAttributeValue
protected void setAttributeValue(ObjectName objectName, String attributeName, Object attributeValue) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



setAttributeValue
protected void setAttributeValue(MBeanServerConnection connection, ObjectName objectName, String attributeName, Object attributeValue) throws ManagementRemoteException(Code)
Invokes the mbean and retrieves the attribute value
Parameters:
  connection -
Parameters:
  objectName - object name
Parameters:
  attributeName - attribute name the value of the attribute
throws:
  ManagementRemoteException - on error



setMBeanAttribute
protected void setMBeanAttribute(ObjectName objectName, String attributeName, Object attributeValue) throws ManagementRemoteException(Code)
invokes the operation on mbean
Parameters:
  attributeValue - attrbute name
Parameters:
  attributeName - attribute value
Parameters:
  objectName - object name
throws:
  ManagementRemoteException - on user error



setMBeanAttributes
protected void setMBeanAttributes(ObjectName objectName, AttributeList attrList) throws ManagementRemoteException(Code)
set the specified attribute values on the mbean attributes
Parameters:
  attrList - list of attributes
Parameters:
  objectName - object name
throws:
  ManagementRemoteException - on user error



setMBeanAttributes
protected AttributeList setMBeanAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, AttributeList attrList) throws ManagementRemoteException(Code)
set the specified attribute values on the mbean attributes
Parameters:
  attrList - list of attributes
Parameters:
  objectName - object name
throws:
  ManagementRemoteException - on user error



setMBeanConfigAttributes
protected String setMBeanConfigAttributes(ObjectName objectName, AttributeList attrList) throws ManagementRemoteException(Code)
set the specified attribute values on the mbean attributes
Parameters:
  attrList - list of attributes
Parameters:
  objectName - object name management message response from setConfigurationAttributes
throws:
  ManagementRemoteException - on user error



setMBeanConfigAttributes
protected String setMBeanConfigAttributes(MBeanServerConnection mbeanServer, ObjectName objectName, AttributeList attrList) throws ManagementRemoteException(Code)
set the specified attribute values on the mbean attributes
Parameters:
  MBeanServer - the MBean server to use
Parameters:
  attrList - list of attributes
Parameters:
  objectName - object name management message response from setConfigurationAttributes
throws:
  ManagementRemoteException - on user error



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.