Examples of MetaValue


Examples of org.jboss.metatype.api.values.MetaValue

  }

  protected MetaValue getRequestsForVDB(ProfileServiceConnection connection,
      String vdbName, int vdbVersion) {

    MetaValue requestsCollection = null;
    MetaValue[] args = new MetaValue[] {
        SimpleValueSupport.wrap(vdbName),
        SimpleValueSupport.wrap(vdbVersion) };

    try {
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

  }

  protected MetaValue getTransactions(ProfileServiceConnection connection) {

    MetaValue transactionsCollection = null;
    MetaValue args = null;

    try {
      transactionsCollection = executeManagedOperation(connection,
          getRuntimeEngineDeployer(connection, mc),
          Platform.Operations.GET_TRANSACTIONS, args);
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

  }

  public MetaValue getSessions(ProfileServiceConnection connection) {

    MetaValue sessionCollection = null;
    MetaValue args = null;

    try {
      sessionCollection = executeManagedOperation(connection,
          getRuntimeEngineDeployer(connection, mc),
          PluginConstants.Operation.GET_SESSIONS, args);
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

  private Integer getQueryCount(ProfileServiceConnection connection) throws Exception {

    Integer count = new Integer(0);

    MetaValue requests = null;
    Collection<RequestMetadata> requestsCollection = new ArrayList<RequestMetadata>();

    requests = getRequests(connection);

    getRequestCollectionValue(requests, requestsCollection);
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

  }

  private Integer getSessionCount(ProfileServiceConnection connection) throws Exception {

    Collection<SessionMetadata> activeSessionsCollection = new ArrayList<SessionMetadata>();
    MetaValue sessionMetaValue = getSessions(connection);
    getSessionCollectionValue(sessionMetaValue, activeSessionsCollection);
    return activeSessionsCollection.size();
  }
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

    for (MetaValue value : metaValues) {
      GenericValueSupport genValueSupport = (GenericValueSupport) value;
      ManagedObjectImpl managedObject = (ManagedObjectImpl) genValueSupport.getValue();

      // Get any model errors/warnings
      MetaValue errors = managedObject.getProperty("errors").getValue(); //$NON-NLS-1$
      if (errors != null) {
        CollectionValueSupport errorValueSupport = (CollectionValueSupport) errors;
        MetaValue[] errorArray = errorValueSupport.getElements();
        count += errorArray.length;
      }
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

  }

  protected MetaValue getLongRunningQueries(
      ProfileServiceConnection connection) {

    MetaValue requestsCollection = null;
    MetaValue args = null;

    try {
      requestsCollection = executeManagedOperation(connection,
          getRuntimeEngineDeployer(connection, mc),
          Platform.Operations.GET_LONGRUNNINGQUERIES, args);
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

    return requestsCollection;
  }

  protected MetaValue getUsedBufferSpace(ProfileServiceConnection connection) {

    MetaValue usedBufferSpace = null;

    try {
      usedBufferSpace = getManagedProperty(connection, getBufferService(
          connection, mc), Platform.Operations.GET_BUFFER_USAGE);
    } catch (Exception e) {
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

            MetaType metaType = managedProp.getMetaType();
            PropertyAdapter propertyAdapter = PropertyAdapterFactory.getPropertyAdapter(metaType);
            PropertyDefinition mapMemberPropDef = propDefMap.get(propName);
            if (managedProp.getValue() == null)
            {
                MetaValue managedPropMetaValue = propertyAdapter.convertToMetaValue(mapMemberProp, mapMemberPropDef, metaType);
                managedProp.setValue(managedPropMetaValue);
            }
            else
            {
                MetaValue managedPropMetaValue = (MetaValue)managedProp.getValue();
                propertyAdapter.populateMetaValueFromProperty(mapMemberProp, managedPropMetaValue, mapMemberPropDef);
            }
        }
    }
View Full Code Here

Examples of org.jboss.metatype.api.values.MetaValue

        MetaValue[] listMemberValues = new MetaValue[listMemberProps.size()];
        PropertyAdapter propertyAdapter = PropertyAdapterFactory.getPropertyAdapter(listMemberMetaType);
        int memberIndex = 0;
        for (Property listMemberProp : listMemberProps)
        {
            MetaValue listMemberValue = propertyAdapter.convertToMetaValue(listMemberProp, listMemberPropDef, listMemberMetaType);
            listMemberValues[memberIndex++] = listMemberValue;
        }
        // Replace the existing elements with the new ones.
        collectionValue.setElements(listMemberValues);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.