TestInvocationManagementServer

public class TestInvocationManagementServer
extends TestInvocationManagementGrpc.TestInvocationManagementImplBase

java.lang.Object
com.proto.tradefed.invocation.TestInvocationManagementGrpc.TestInvocationManagementImplBase
com.android.tradefed.service.management.TestInvocationManagementServer


يساعد خادم GRPC على استدعاء اختبار الإدارة ودورة حياتها. هذه الخدمة ليست إلزامية حاليًا ويتم تشغيلها فقط إذا تم تكوينها باستخدام منفذ.

ملخص

المنشئون العامة

TestInvocationManagementServer (int port, ICommandScheduler commandScheduler, DeviceManagementGrpcServer deviceReservationManager)
TestInvocationManagementServer (ServerBuilder<?> serverBuilder, ICommandScheduler commandScheduler, DeviceManagementGrpcServer deviceReservationManager)
TestInvocationManagementServer (Server server, ICommandScheduler commandScheduler, DeviceManagementGrpcServer deviceReservationManager)

الطرق العامة

void getInvocationDetail (InvocationDetailRequest request, StreamObserver<InvocationDetailResponse> responseObserver)
static Integer getPort ()

إرجاع المنفذ المستخدم من قبل الخادم.

void shutdown ()

أوقف خادم grpc.

void start ()

ابدأ تشغيل خادم grpc.

void submitTestCommand (NewTestCommandRequest request, StreamObserver<NewTestCommandResponse> responseObserver)

المنشئون العامة

TestInvocationManagementServer

public TestInvocationManagementServer (int port, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

المعلمات
port int

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

public TestInvocationManagementServer (ServerBuilder<?> serverBuilder, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

المعلمات
serverBuilder ServerBuilder

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

TestInvocationManagementServer

public TestInvocationManagementServer (Server server, 
                ICommandScheduler commandScheduler, 
                DeviceManagementGrpcServer deviceReservationManager)

المعلمات
server Server

commandScheduler ICommandScheduler

deviceReservationManager DeviceManagementGrpcServer

الطرق العامة

getInvocationDetail

public void getInvocationDetail (InvocationDetailRequest request, 
                StreamObserver<InvocationDetailResponse> responseObserver)

المعلمات
request InvocationDetailRequest

responseObserver StreamObserver

getPort

public static Integer getPort ()

إرجاع المنفذ المستخدم من قبل الخادم.

عائدات
Integer

اغلق

public void shutdown ()

أوقف خادم grpc.

بداية

public void start ()

ابدأ تشغيل خادم grpc.

SubmitTestCommand

public void submitTestCommand (NewTestCommandRequest request, 
                StreamObserver<NewTestCommandResponse> responseObserver)

المعلمات
request NewTestCommandRequest

responseObserver StreamObserver