Package com.vmware.vim.binding.impl.vim.event

Examples of com.vmware.vim.binding.impl.vim.event.GeneralUserEventImpl


    * @throws Exception
    */
   public void postGeneralUserEvent(VcCluster cluster, String msg, String fullMsg,
            String userName)
   throws Exception {
      GeneralUserEventImpl event = new GeneralUserEventImpl();
      event.setMessage(msg);
      event.setFullFormattedMessage(fullMsg);
      event.setEntity(new ManagedEntityEventArgumentImpl(cluster.getName(), cluster.getMoRef()));
      event.setComputeResource(new ComputeResourceEventArgumentImpl(cluster.getName(), cluster.getMoRef()));
      event.setCreatedTime(new GregorianCalendar());
      event.setUserName(userName);
      getEventManager().postEvent(event, null);
   }
View Full Code Here

TOP

Related Classes of com.vmware.vim.binding.impl.vim.event.GeneralUserEventImpl

Copyright © 2018 www.massapicom. 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.