Examples of Extension


Examples of com.vmware.vim.binding.vim.Extension

   }

   private void configureExtensionVService() throws Exception {
      ExtensionManager em = service.extensionManager;

      Extension us = em.findExtension(extKey);
      AuAssert.check(us != null);

      // Describe Aurora itself
      Description desc = new DescriptionImpl();
      desc.setLabel("VMware Serengeti Management Server");
      desc.setSummary("VMware Serengeti Management Server, instance " + Configuration.getCmsInstanceId());
      us.setDescription(desc);
      us.setCompany("VMware, Inc.");
      us.setVersion(Configuration.getNonEmptyString("serengeti.version"));
      us.setShownInSolutionManager(true);
      ExtendedProductInfo extInfo = new ExtendedProductInfoImpl();
      extInfo.setCompanyUrl("http://www.vmware.com");
      us.setExtendedProductInfo(extInfo);
      // XXX: Set health info, any other fields?

      // Describe the entities we manage (DBVM)
      ManagedEntityInfo info = new ManagedEntityInfoImpl();
      info.setType("hadoop node");
      info.setDescription("VMware Serengeti - Node Template");
      //info.setSmallIconUrl("https://*:443/some-16x16.png");
      ManagedEntityInfo[] infos = new ManagedEntityInfo[1];
      infos[0] = info;
      us.setManagedEntityInfo(infos);

      // Generate ResourceInfo
      Extension.ResourceInfo extensionResourceInfo = new ExtensionImpl.ResourceInfoImpl();
      extensionResourceInfo.setLocale("en");
      extensionResourceInfo.setModule("extension");

      KeyValue localizedExt[] = new KeyValue[2];
      localizedExt[0] = new KeyValueImpl();
      localizedExt[0].setKey(us.getKey() + ".label");
      localizedExt[0].setValue(us.getDescription().getLabel());

      localizedExt[1] = new KeyValueImpl();
      localizedExt[1].setKey(us.getKey() + ".summary");
      localizedExt[1].setValue(us.getDescription().getSummary());

      extensionResourceInfo.setData(localizedExt);

      // Generate event type specifications
      Extension.ResourceInfo eventResourceInfo = new ExtensionImpl.ResourceInfoImpl();
      eventResourceInfo.setLocale("en");
      eventResourceInfo.setModule("event");

      class KeyValueList extends ArrayList<KeyValue> {
         public void add(String key, String value) {
            KeyValue pair = new KeyValueImpl();
            pair.setKey(key);
            pair.setValue(value);
            super.add(pair);
         }
      };

      KeyValueList resourceInfo = new KeyValueList();
      ArrayList<Extension.EventTypeInfo> eventTypes = new ArrayList<Extension.EventTypeInfo>();

      for (EventSeverity severity : Event.EventSeverity.values()) {
         resourceInfo.add("com.vmware.vhadoop.vhm.vc.events."+severity.name()+".label", "BDE notification");
         resourceInfo.add("com.vmware.vhadoop.vhm.vc.events."+severity.name()+".summary", "BDE notification");
         resourceInfo.add("com.vmware.vhadoop.vhm.vc.events."+severity.name()+".category", severity.name());
         resourceInfo.add("com.vmware.vhadoop.vhm.vc.events."+severity.name()+".fullFormat", "{message}");
         resourceInfo.add("com.vmware.vhadoop.vhm.vc.events."+severity.name()+".formatOnVm", "BDE notification");

         Extension.EventTypeInfo event = new ExtensionImpl.EventTypeInfoImpl();
         event.setEventID("com.vmware.vhadoop.vhm.vc.events."+severity.name());
         event.setEventTypeSchema("<EventType><eventTypeID>com.vmware.vhadoop.vhm.vc.events."+severity.name()+"</eventTypeID><description>Status update for a Big Data Extensions compute VM</description><arguments/></EventType>");
         eventTypes.add(event);
      }

      eventResourceInfo.setData(resourceInfo.toArray(new KeyValue[0]));

      us.setResourceList(new Extension.ResourceInfo[] {extensionResourceInfo, eventResourceInfo});
      us.setEventList(eventTypes.toArray(new Extension.EventTypeInfo[0]));
      us.setShownInSolutionManager(true);

      SolutionManagerInfo sm = new SolutionManagerInfoImpl();
      sm.setSmallIconUrl("http://www.vmware.com");
      us.setSolutionManagerInfo(sm);
     
      // Push this info into VC
      em.updateExtension(us);
   }
View Full Code Here

Examples of com.vmware.vim25.Extension

        System.out.println("Plugin key: " + keyStr +
            " is used. Please try with a new key.");
      }
      else
      {
        Extension ext = createExtensionObject(props);
        extMgr.registerExtension(ext);
        System.out.println("Plugin: " + keyStr +
            " has been successfully registered.");
      }
    }
    else if ("update".equalsIgnoreCase(operation))
    {
      if(extMgr.findExtension(keyStr)!=null)
      {
        Extension ext = createExtensionObject(props);
        extMgr.updateExtension(ext);
        System.out.println("Plugin: " + keyStr +
            " has been successfully updated.");
      }
      else
View Full Code Here

Examples of gnu.java.security.x509.ext.Extension

  public boolean hasUnsupportedCriticalExtension()
  {
    for (Iterator it = extensions.values().iterator(); it.hasNext(); )
      {
        Extension e = (Extension) it.next();
        if (e.isCritical() && !e.isSupported())
          return true;
      }
    return false;
  }
View Full Code Here

Examples of hudson.Extension

        return null;
    }

    public static Boolean isOptional(final Class<?> type) {
        if (type != null) {
            Extension extension = type.getAnnotation(Extension.class);
            if (extension != null) {
                return Boolean.valueOf(extension.optional());
            }
            ExtensionQualifier qualifier = type.getAnnotation(ExtensionQualifier.class);
            if (qualifier != null) {
                return Boolean.valueOf(qualifier.extension().optional());
            }
View Full Code Here

Examples of javax.enterprise.inject.spi.Extension

        final List<String> services = servicesAttachment.getServiceImplementations(Extension.class.getName());
        if (services == null) {
            return;
        }
        for (String service : services) {
            final Extension extension = loadExtension(service, index,  module.getClassLoader());
            if(extension == null) {
                continue;
            }
            Metadata<Extension> metadata = new MetadataImpl<Extension>(extension, deploymentUnit.getName());
            WeldLogger.DEPLOYMENT_LOGGER.debug("Loaded portable extension " + extension);
View Full Code Here

Examples of javax.websocket.Extension

        final Map<String, Extension> extMap = new HashMap<>();
        for (Extension ext : cec.getExtensions()) {
            extMap.put(ext.getName(), ext);
        }
        for (WebSocketExtension e : clientNegotiation.getSelectedExtensions()) {
            Extension ext = extMap.get(e.getName());
            if (ext == null) {
                throw JsrWebSocketMessages.MESSAGES.extensionWasNotPresentInClientHandshake(e.getName(), clientNegotiation.getSupportedExtensions());
            }
            extensions.add(ExtensionImpl.create(e));
        }
View Full Code Here

Examples of net.rim.tumbler.file.Library.Extension

    } else {
      ExtensionInfo info = new ExtensionInfo(lib, javaPaths, jsPaths);
      boolean extensionIdFound = false;
     
      if (lib.getExtension() != null) {
        Extension extension = lib.getExtension();
        String id = extension.getId();

        if (id != null && !id.isEmpty()) {
          if (_extensionLookupTable.contains(id)) {
            // more than one library.xml contain the same extension id
            Logger.logMessage(LogType.WARNING,
View Full Code Here

Examples of net.sf.cpsolver.ifs.extension.Extension

    }
   
    /** Initialization */
    public void init(Solver solver) {
        for (Enumeration i = solver.getExtensions().elements(); i.hasMoreElements();) {
            Extension extension = (Extension)i.nextElement();
            if (extension instanceof ConflictStatistics)
                iStat = (ConflictStatistics)extension;
        }
    }
View Full Code Here

Examples of nu.fw.jeti.jabber.elements.Extension

    clearCurrentChars();
  }

  public Extension build()
  {
        Extension e = null;
        e = iqBuilder.build();
        iqBuilder.reset();
    return e;
  }
View Full Code Here

Examples of org.activiti.workflow.simple.alfresco.model.config.Extension

    return model;
  }
 
  protected void addExtension(WorkflowDefinitionConversion conversion, String processId) {
    // Create form-configuration
    Extension extension = new Extension();
    Module module = new Module();
    extension.addModule(module);
    module.setId(MessageFormat.format(MODULE_ID, processId));
    AlfrescoConversionUtil.storeExtension(extension, conversion);
  }
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.