com.vmware.vim25.mo
Class HostServiceSystem

java.lang.Object
  extended by com.vmware.vim25.mo.ManagedObject
      extended by com.vmware.vim25.mo.ExtensibleManagedObject
          extended by com.vmware.vim25.mo.HostServiceSystem

public class HostServiceSystem
extends ExtensibleManagedObject

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

Author:
Steve JIN (sjin@vmware.com)

Constructor Summary
HostServiceSystem(ServerConnection serverConnection, ManagedObjectReference mor)
           
 
Method Summary
 HostServiceInfo getServiceInfo()
           
 void refreshServices()
           
 void restartService(String id)
           
 void startService(String id)
           
 void stopService(String id)
           
 void uninstallService(String id)
           
 void updateServicePolicy(String id, String policy)
           
 
Methods inherited from class com.vmware.vim25.mo.ExtensibleManagedObject
getAvailableField, getValues, setCustomValue
 
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

HostServiceSystem

public HostServiceSystem(ServerConnection serverConnection,
                         ManagedObjectReference mor)
Method Detail

getServiceInfo

public HostServiceInfo getServiceInfo()

refreshServices

public void refreshServices()
                     throws RuntimeFault,
                            RemoteException
Throws:
RuntimeFault
RemoteException

restartService

public void restartService(String id)
                    throws HostConfigFault,
                           InvalidState,
                           NotFound,
                           RuntimeFault,
                           RemoteException
Throws:
HostConfigFault
InvalidState
NotFound
RuntimeFault
RemoteException

startService

public void startService(String id)
                  throws HostConfigFault,
                         InvalidState,
                         NotFound,
                         RuntimeFault,
                         RemoteException
Throws:
HostConfigFault
InvalidState
NotFound
RuntimeFault
RemoteException

stopService

public void stopService(String id)
                 throws HostConfigFault,
                        InvalidState,
                        NotFound,
                        RuntimeFault,
                        RemoteException
Throws:
HostConfigFault
InvalidState
NotFound
RuntimeFault
RemoteException

uninstallService

public void uninstallService(String id)
                      throws HostConfigFault,
                             NotFound,
                             RuntimeFault,
                             RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException

updateServicePolicy

public void updateServicePolicy(String id,
                                String policy)
                         throws HostConfigFault,
                                NotFound,
                                RuntimeFault,
                                RemoteException
Throws:
HostConfigFault
NotFound
RuntimeFault
RemoteException


Copyright © 2011-2012. All Rights Reserved.