RemoteCacheClient
  public
  
  
  
  class
  RemoteCacheClient
  
    extends Object
  
  
  
  
  
      implements
      
        ICacheClient
      
  
  
| java.lang.Object | |
| ↳ | com.android.tradefed.cache.remote.RemoteCacheClient | 
تنفيذ RemoteActionCache يستخدم طلبات gRPC إلى خادم واجهة برمجة تطبيقات عن بُعد
ملخّص
الحقول | |
|---|---|
    public
    static
    final
    Duration | 
    
      REMOTE_TIMEOUT
      
  | 
  
وظائف الإنشاء العامة | |
|---|---|
      
      RemoteCacheClient(File workFolder, String instanceName, ManagedChannel channel, CallCredentials callCredentials, ByteStreamDownloader downloader, ByteStreamUploader uploader)
      
      
     | 
  |
الطرق العامة | |
|---|---|
        
        
        
        
        
        ExecutableActionResult
     | 
  
    
      
      lookupCache(ExecutableAction action)
      
      
        البحث عن   | 
  
        
        
        
        
        
        void
     | 
  
    
      
      uploadCache(ExecutableAction action, ExecutableActionResult actionResult)
      
      
        تحميل نتائج   | 
  
الحقول
REMOTE_TIMEOUT
public static final Duration REMOTE_TIMEOUT
وظائف الإنشاء العامة
RemoteCacheClient
public RemoteCacheClient (File workFolder, 
                String instanceName, 
                ManagedChannel channel, 
                CallCredentials callCredentials, 
                ByteStreamDownloader downloader, 
                ByteStreamUploader uploader)| المعلمات | |
|---|---|
workFolder | 
        
          File  | 
      
instanceName | 
        
          String  | 
      
channel | 
        
          ManagedChannel  | 
      
callCredentials | 
        
          CallCredentials  | 
      
downloader | 
        
          ByteStreamDownloader  | 
      
uploader | 
        
          ByteStreamUploader  | 
      
الطرق العامة
lookupCache
public ExecutableActionResult lookupCache (ExecutableAction action)
البحث عن ExecutableActionResult للمكان action
 
يُرجى العِلم أنّه على المُتصل حذف ملفات الإخراج بعد الاستخدام لتجنُّب نفاذ مساحة القرص.
| المعلمات | |
|---|---|
action | 
        
          ExecutableAction: ExecutableAction التي يجب عرض نتيجتها. | 
      
| المرتجعات | |
|---|---|
ExecutableActionResult | 
        ExecutableActionResult من action إذا كانت النتيجة متوفّرة،
     بخلاف ذلك، تكون فارغة. | 
      
uploadCache
public void uploadCache (ExecutableAction action, ExecutableActionResult actionResult)
تحميل نتائج ExecutableAction
 
إذا لم تكن نتيجة action متوفّرة، سيتم
 تخزين actionResult. وإلا، سيتم تعديل النتيجة.
| المعلمات | |
|---|---|
action | 
        
          ExecutableAction: الإجراء الذي أدّى إلى ظهور النتائج | 
      
actionResult | 
        
          ExecutableActionResult: نتيجة الإجراء المرتبط بـ action |