StreamProtoReceiver
public class StreamProtoReceiver
extends Object
java.lang.Objeto | |
↳ | com.android.tradefed.result.proto.StreamProtoReceiver |
Un receptor que traduce proto TestRecord recibido en eventos Tradefed.
Resumen
Constructores públicos | |
---|---|
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation) Ctor. | |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing) Ctor. | |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix) Ctor. | |
StreamProtoReceiver ( ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix) Ctor. |
Métodos públicos | |
---|---|
void | close () |
void | completeModuleEvents () Si es necesario para garantizar informes coherentes, complete los eventos del módulo. |
Throwable | getError () Devuelve el error capturado en el hilo del receptor. |
int | getSocketServerPort () Devuelve el socket del receptor que estaba abierto. |
boolean | hasInvocationFailed () Devuelve si se ha informado o no de la invocación fallida. |
boolean | joinReceiver (long millis) |
Métodos protegidos | |
---|---|
long | getJoinTimeout (long millis) |
Constructores públicos
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation)
Ctor.
Parámetros | |
---|---|
listener | ITestInvocationListener : el ITestInvocationListener donde reportar los resultados. |
mainContext | IInvocationContext |
reportInvocation | boolean : si informar o no los eventos de nivel de invocación. |
Lanza | |
---|---|
| IOException |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing)
Ctor.
Parámetros | |
---|---|
listener | ITestInvocationListener : el ITestInvocationListener donde reportar los resultados. |
mainContext | IInvocationContext |
reportInvocation | boolean : si informar o no los eventos de nivel de invocación. |
quietParsing | boolean : si permitir o no que el analizador registre información de depuración. |
Lanza | |
---|---|
| IOException |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, String logNamePrefix)
Ctor.
Parámetros | |
---|---|
listener | ITestInvocationListener : el ITestInvocationListener donde reportar los resultados. |
mainContext | IInvocationContext |
reportInvocation | boolean : si informar o no los eventos de nivel de invocación. |
quietParsing | boolean : si permitir o no que el analizador registre información de depuración. |
logNamePrefix | String : el prefijo del archivo registrado a través del analizador. |
Lanza | |
---|---|
| IOException |
StreamProtoReceiver
public StreamProtoReceiver (ITestInvocationListener listener, IInvocationContext mainContext, boolean reportInvocation, boolean quietParsing, boolean reportLogs, String logNamePrefix)
Ctor.
Parámetros | |
---|---|
listener | ITestInvocationListener : el ITestInvocationListener donde reportar los resultados. |
mainContext | IInvocationContext |
reportInvocation | boolean : si informar o no los eventos de nivel de invocación. |
quietParsing | boolean : si permitir o no que el analizador registre información de depuración. |
reportLogs | boolean : si informar o no los registros |
logNamePrefix | String : el prefijo del archivo registrado a través del analizador. |
Lanza | |
---|---|
| IOException |
Métodos públicos
cerca
public void close ()
completeModuleEvents
public void completeModuleEvents ()
Si es necesario para garantizar informes coherentes, complete los eventos del módulo.
getError
public Throwable getError ()
Devuelve el error capturado en el hilo del receptor. Si no hay ninguno, devolverá nulo.
Devoluciones | |
---|---|
Throwable |
getSocketServerPort
public int getSocketServerPort ()
Devuelve el socket del receptor que estaba abierto. -1 si ninguno.
Devoluciones | |
---|---|
int |
ha fallado la invocación
public boolean hasInvocationFailed ()
Devuelve si se ha informado o no de la invocación fallida.
Devoluciones | |
---|---|
boolean |
unirse al receptor
public boolean joinReceiver (long millis)
Parámetros | |
---|---|
millis | long |
Devoluciones | |
---|---|
boolean |
Métodos protegidos
getJoinTimeout
protected long getJoinTimeout (long millis)
Parámetros | |
---|---|
millis | long |
Devoluciones | |
---|---|
long |