org.modeshape.rhq.plugin.util
Class ProfileServiceUtil

java.lang.Object
  extended by org.modeshape.rhq.plugin.util.ProfileServiceUtil

public class ProfileServiceUtil
extends Object


Field Summary
protected static Log LOG
           
 
Constructor Summary
ProfileServiceUtil()
           
 
Method Summary
static Boolean booleanValue(org.jboss.metatype.api.values.MetaValue v1)
           
static void convertConfigurationToManagedProperties(Map<String,org.jboss.managed.api.ManagedProperty> managedProperties, org.rhq.core.domain.configuration.Configuration configuration, org.rhq.core.domain.resource.ResourceType resourceType)
           
static org.rhq.core.domain.configuration.Configuration convertManagedObjectToConfiguration(Map<String,org.jboss.managed.api.ManagedProperty> managedProperties, Map<String,org.rhq.core.domain.configuration.PropertySimple> customProps, org.rhq.core.domain.resource.ResourceType resourceType)
           
static org.jboss.metatype.api.types.MetaType convertPropertyDefinitionToMetaType(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef)
           
static Map<String,org.rhq.core.domain.configuration.PropertySimple> getCustomProperties(org.rhq.core.domain.configuration.Configuration pluginConfig)
           
static File getDeployDirectory(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
           
static org.jboss.deployers.spi.management.deploy.DeploymentManager getDeploymentManager(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
          Get the DeploymentManager from the ProfileService
static org.jboss.managed.api.ManagedComponent getManagedComponent(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection, org.jboss.managed.api.ComponentType componentType, String componentName)
          Get the passed in ManagedComponent
static Set<org.jboss.managed.api.ManagedComponent> getManagedComponents(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection, org.jboss.managed.api.ComponentType componentType)
          Get the ManagedComponent for the ComponentType and sub type.
static org.jboss.managed.api.ManagedComponent getManagedEngine(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
          Get the passed in ManagedComponent
static org.jboss.managed.api.ManagedComponent getManagedSequencingService(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
          Get the ManagedSequencingService
static org.jboss.deployers.spi.management.ManagementView getManagementView(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
           
static
<T> T
getSimpleValue(org.jboss.managed.api.ManagedCommon mc, String prop, Class<T> expectedType)
           
static
<T> T
getSimpleValue(org.jboss.managed.api.ManagedComponent mc, String prop, Class<T> expectedType)
           
static void populateManagedPropertyFromProperty(org.jboss.managed.api.ManagedProperty managedProperty, org.rhq.core.domain.configuration.definition.PropertyDefinition propertyDefinition, org.rhq.core.domain.configuration.Configuration configuration)
           
static String stringValue(org.jboss.metatype.api.values.MetaValue v1)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

protected static final Log LOG
Constructor Detail

ProfileServiceUtil

public ProfileServiceUtil()
Method Detail

getManagedComponent

public static org.jboss.managed.api.ManagedComponent getManagedComponent(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection,
                                                                         org.jboss.managed.api.ComponentType componentType,
                                                                         String componentName)
                                                                  throws NamingException,
                                                                         Exception
Get the passed in ManagedComponent

Parameters:
connection -
componentType -
componentName -
Returns:
ManagedComponent
Throws:
NamingException
Exception

getManagedEngine

public static org.jboss.managed.api.ManagedComponent getManagedEngine(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
                                                               throws NamingException,
                                                                      Exception
Get the passed in ManagedComponent

Parameters:
connection -
Returns:
ManagedComponent
Throws:
NamingException
Exception

getManagedSequencingService

public static org.jboss.managed.api.ManagedComponent getManagedSequencingService(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
                                                                          throws NamingException,
                                                                                 Exception
Get the ManagedSequencingService

Parameters:
connection -
Returns:
ManagedSequencingService
Throws:
NamingException
Exception

getManagedComponents

public static Set<org.jboss.managed.api.ManagedComponent> getManagedComponents(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection,
                                                                               org.jboss.managed.api.ComponentType componentType)
                                                                        throws NamingException,
                                                                               Exception
Get the ManagedComponent for the ComponentType and sub type.

Parameters:
connection -
componentType -
Returns:
Set of ManagedComponents
Throws:
NamingException - , Exception
Exception

getManagementView

public static org.jboss.deployers.spi.management.ManagementView getManagementView(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
Parameters:
connection -
Returns:
ManagementView

getDeploymentManager

public static org.jboss.deployers.spi.management.deploy.DeploymentManager getDeploymentManager(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
                                                                                        throws NamingException,
                                                                                               Exception
Get the DeploymentManager from the ProfileService

Parameters:
connection -
Returns:
DeploymentManager
Throws:
NamingException
Exception

getDeployDirectory

public static File getDeployDirectory(org.rhq.plugins.jbossas5.connection.ProfileServiceConnection connection)
                               throws NamingException,
                                      Exception
Parameters:
connection -
Returns:
File
Throws:
NamingException
Exception

stringValue

public static String stringValue(org.jboss.metatype.api.values.MetaValue v1)
                          throws Exception
Throws:
Exception

booleanValue

public static Boolean booleanValue(org.jboss.metatype.api.values.MetaValue v1)
                            throws Exception
Throws:
Exception

getSimpleValue

public static <T> T getSimpleValue(org.jboss.managed.api.ManagedComponent mc,
                                   String prop,
                                   Class<T> expectedType)

getSimpleValue

public static <T> T getSimpleValue(org.jboss.managed.api.ManagedCommon mc,
                                   String prop,
                                   Class<T> expectedType)

getCustomProperties

public static Map<String,org.rhq.core.domain.configuration.PropertySimple> getCustomProperties(org.rhq.core.domain.configuration.Configuration pluginConfig)

convertManagedObjectToConfiguration

public static org.rhq.core.domain.configuration.Configuration convertManagedObjectToConfiguration(Map<String,org.jboss.managed.api.ManagedProperty> managedProperties,
                                                                                                  Map<String,org.rhq.core.domain.configuration.PropertySimple> customProps,
                                                                                                  org.rhq.core.domain.resource.ResourceType resourceType)

convertConfigurationToManagedProperties

public static void convertConfigurationToManagedProperties(Map<String,org.jboss.managed.api.ManagedProperty> managedProperties,
                                                           org.rhq.core.domain.configuration.Configuration configuration,
                                                           org.rhq.core.domain.resource.ResourceType resourceType)

populateManagedPropertyFromProperty

public static void populateManagedPropertyFromProperty(org.jboss.managed.api.ManagedProperty managedProperty,
                                                       org.rhq.core.domain.configuration.definition.PropertyDefinition propertyDefinition,
                                                       org.rhq.core.domain.configuration.Configuration configuration)

convertPropertyDefinitionToMetaType

public static org.jboss.metatype.api.types.MetaType convertPropertyDefinitionToMetaType(org.rhq.core.domain.configuration.definition.PropertyDefinition propDef)


Copyright © 2008-2010 JBoss, a division of Red Hat. All Rights Reserved.