AbstractHostMonitor
  public
  
  
  abstract
  class
  AbstractHostMonitor
  
    extends Object
  
  
  
  
  
      implements
      
        IHostMonitor
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.util.hostmetric.AbstractHostMonitor | 
Classe type pour la surveillance de l'état de l'hôte. Implémentation de dispatch() avec des informations spécifiques à l'agent.
Résumé
| Champs | |
|---|---|
| 
    protected
    
    
     | mHostData
 | 
| 
    protected
    
    
     | mHostEvents
 | 
| Constructeurs publics | |
|---|---|
| 
      AbstractHostMonitor()
       | |
| Méthodes publiques | |
|---|---|
| 
        
        
        
        
        
        void | 
      addHostEvent(IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
      Méthode appelée pour ajouter un événement spécial à envoyer. | 
| 
        abstract
        
        
        
        
        void | 
      dispatch()
      Collecte et émet les valeurs de données d'hôte actuelles. | 
| 
        
        
        
        
        
        IHostMonitor.HostMetricType | 
      getTag()
      Renvoie la balise identifiant la "classe" de  | 
| 
        
        
        
        
        
        void | 
      run()
       | 
| 
        
        
        
        
        
        void | 
      terminate()
      Méthode appelée pour arrêter le moniteur d'hôte. | 
Champs
mHostData
protectedmHostData 
mHostEvents
protectedmHostEvents 
Constructeurs publics
AbstractHostMonitor
public AbstractHostMonitor ()
Méthodes publiques
addHostEvent
public void addHostEvent (IHostMonitor.HostMetricType tag, IHostMonitor.HostDataPoint event)
Méthode appelée pour ajouter un événement spécial à envoyer.
| Paramètres | |
|---|---|
| tag | IHostMonitor.HostMetricType | 
| event | IHostMonitor.HostDataPoint | 
distribution
public abstract void dispatch ()
Collecte et émet les valeurs de données d'hôte actuelles. Doit émettre les événements de la file d'attente, le cas échéant.
getTag
public IHostMonitor.HostMetricType getTag ()
Renvoie la balise identifiant la "classe" de IHostMonitor à atteindre.
| Renvoie | |
|---|---|
| IHostMonitor.HostMetricType | |
Exécuter
public void run ()
finis
public void terminate ()
Méthode appelée pour arrêter le moniteur d'hôte.
