1 package autotest.moblab.rpc; 2 3 import java.util.List; 4 5 /** 6 * Moblab RPC callback interfaces. 7 */ 8 public class MoblabRpcCallbacks { MoblabRpcCallbacks()9 private MoblabRpcCallbacks() {} 10 11 /** 12 * Callback for network info fetch. 13 */ 14 public interface FetchNetworkInfoRpcCallback { onNetworkInfoFetched(NetworkInfo info)15 public void onNetworkInfoFetched(NetworkInfo info); 16 } 17 18 /** 19 * Callback for cloud storage info fetch. 20 */ 21 public interface FetchCloudStorageInfoCallback { onCloudStorageInfoFetched(CloudStorageInfo info)22 public void onCloudStorageInfoFetched(CloudStorageInfo info); 23 } 24 25 /** 26 * Callback for cloud storage info validation. 27 */ 28 public interface ValidateCloudStorageInfoCallback { onCloudStorageInfoValidated(OperationStatus status)29 public void onCloudStorageInfoValidated(OperationStatus status); 30 } 31 32 /** 33 * Callback for wizard configuration info submission. 34 */ 35 public interface SubmitWizardConfigInfoCallback { onWizardConfigInfoSubmitted(OperationStatus status)36 public void onWizardConfigInfoSubmitted(OperationStatus status); 37 } 38 39 /** 40 * Callback for network info fetch. 41 */ 42 public interface FetchVersionInfoCallback { onVersionInfoFetched(VersionInfo info)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 { onFetchConnectedDutInfoSubmitted(ConnectedDutInfo info)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 { onLogActionComplete(boolean didSucceed, String information)57 public void onLogActionComplete(boolean didSucceed, String information); 58 } 59 60 public interface FetchConnectedBoardsCallback { onFetchConnectedBoardsSubmitted(List<String> boards)61 public void onFetchConnectedBoardsSubmitted(List<String> boards); 62 } 63 64 public interface FetchConnectedPoolsCallback { onFetchConnectedPoolsSubmitted(List<String> pools)65 public void onFetchConnectedPoolsSubmitted(List<String> pools); 66 } 67 68 public interface FetchBuildsForBoardCallback { onFetchBuildsForBoardCallbackSubmitted(List<String> builds)69 public void onFetchBuildsForBoardCallbackSubmitted(List<String> builds); 70 } 71 72 public interface FetchFirmwareForBoardCallback { onFetchFirmwareForBoardCallbackSubmitted(List<String> firmwareBuilds)73 public void onFetchFirmwareForBoardCallbackSubmitted(List<String> firmwareBuilds); 74 } 75 76 public interface RunSuiteCallback { onRunSuiteComplete()77 public void onRunSuiteComplete(); 78 } 79 } 80