com.vmware.vim25.mo
Class EventManager

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.EventManager

public class EventManager
extends ManagedObject

The managed object class corresponding to the one defined in VI SDK API reference.

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
EventManager(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 EventHistoryCollector createCollectorForEvents(EventFilterSpec filter)
           
 EventDescription getDescription()
           
 Event getLatestEvent()
           
 int getMaxCollector()
           
 void logUserEvent(ManagedEntity entity, String msg)
           
 void postEvent(Event eventToPost, TaskInfo taskInfo)
           
 Event[] queryEvents(EventFilterSpec filter)
           
 EventArgDesc[] retrieveArgumentDescription(String eventTypeId)
           
 
Methods inherited from class com.vmware.vim25.mo.ManagedObject
convertMors, getCurrentProperty, getDatastores, getFilter, getHosts, getManagedObject, getManagedObjects, getManagedObjects, getMOR, getNetworks, getPropertiesByPaths, getPropertyByPath, getResourcePools, getScheduledTasks, getServerConnection, getTasks, getViews, getVimService, getVms, retrieveObjectProperties, setMOR, setServerConnection, toString, waitForValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EventManager

public EventManager(ServerConnection serverConnection,
                    ManagedObjectReference mor)
Method Detail

getDescription

public EventDescription getDescription()

getLatestEvent

public Event getLatestEvent()

getMaxCollector

public int getMaxCollector()

createCollectorForEvents

public EventHistoryCollector createCollectorForEvents(EventFilterSpec filter)
                                               throws InvalidState,
                                                      RuntimeFault,
                                                      RemoteException
Throws:
InvalidState
RuntimeFault
RemoteException

logUserEvent

public void logUserEvent(ManagedEntity entity,
                         String msg)
                  throws RuntimeFault,
                         RemoteException
Throws:
RuntimeFault
RemoteException

postEvent

public void postEvent(Event eventToPost,
                      TaskInfo taskInfo)
               throws InvalidEvent,
                      RuntimeFault,
                      RemoteException
Throws:
InvalidEvent
RuntimeFault
RemoteException

queryEvents

public Event[] queryEvents(EventFilterSpec filter)
                    throws RuntimeFault,
                           RemoteException
Throws:
RuntimeFault
RemoteException

retrieveArgumentDescription

public EventArgDesc[] retrieveArgumentDescription(String eventTypeId)
                                           throws RuntimeFault,
                                                  RemoteException
Throws:
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.