1 package autotest.moblab.rpc; 2 3 import java.util.List; 4 5 /** 6 * Moblab RPC callback interfaces. 7 */ 8 public class MoblabRpcCallbacks { 9 private MoblabRpcCallbacks() {} 10 11 /** 12 * Callback for network info fetch. 13 */ 14 public interface FetchNetworkInfoRpcCallback { 15 public void onNetworkInfoFetched(NetworkInfo info); 16 } 17 18 /** 19 * Callback for cloud storage info fetch. 20 */ 21 public interface FetchCloudStorageInfoCallback { 22 public void onCloudStorageInfoFetched(CloudStorageInfo info); 23 } 24 25 /** 26 * Callback for cloud storage info validation. 27 */ 28 public interface ValidateCloudStorageInfoCallback { 29 public void onCloudStorageInfoValidated(OperationStatus status); 30 } 31 32 /** 33 * Callback for wizard configuration info submission. 34 */ 35 public interface SubmitWizardConfigInfoCallback { 36 public void onWizardConfigInfoSubmitted(OperationStatus status); 37 } 38 39 /** 40 * Callback for network info fetch. 41 */ 42 public interface FetchVersionInfoCallback { 43 public void onVersionInfoFetched(VersionInfo info); 44 } 45 46 /** 47 * Callback for to get information about the connected DUT's. 48 */ 49 public interface FetchConnectedDutInfoCallback { 50 public void onFetchConnectedDutInfoSubmitted(ConnectedDutInfo info); 51 } 52 53 /** 54 * Generic callback to return a status and information string from a RPC call. 55 */ 56 public interface LogActionCompleteCallback { 57 public void onLogActionComplete(boolean didSucceed, String information); 58 } 59 60 public interface FetchConnectedBoardsCallback { 61 public void onFetchConnectedBoardsSubmitted(List<String> boards); 62 } 63 64 public interface FetchConnectedPoolsCallback { 65 public void onFetchConnectedPoolsSubmitted(List<String> pools); 66 } 67 68 public interface FetchBuildsForBoardCallback { 69 public void onFetchBuildsForBoardCallbackSubmitted(List<String> builds); 70 } 71 72 public interface FetchFirmwareForBoardCallback { 73 public void onFetchFirmwareForBoardCallbackSubmitted(List<String> firmwareBuilds); 74 } 75 76 public interface RunSuiteCallback { 77 public void onRunSuiteComplete(); 78 } 79 } 80