Search in sources :

Example 1 with MCGetThreadDumpCodec

use of com.hazelcast.client.impl.protocol.codec.MCGetThreadDumpCodec in project hazelcast by hazelcast.

the class MCMessageTasksTest method testGetThreadDumpMessageTask.

@Test
public void testGetThreadDumpMessageTask() throws Exception {
    ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCGetThreadDumpCodec.encodeRequest(false), null);
    ClientDelegatingFuture<String> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCGetThreadDumpCodec::decodeResponse);
    assertFalse(isNullOrEmptyAfterTrim(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS)));
}
Also used : MCGetThreadDumpCodec(com.hazelcast.client.impl.protocol.codec.MCGetThreadDumpCodec) ClientDelegatingFuture(com.hazelcast.client.impl.ClientDelegatingFuture) ClientInvocation(com.hazelcast.client.impl.spi.impl.ClientInvocation) ParallelJVMTest(com.hazelcast.test.annotation.ParallelJVMTest) QuickTest(com.hazelcast.test.annotation.QuickTest) Test(org.junit.Test)

Aggregations

ClientDelegatingFuture (com.hazelcast.client.impl.ClientDelegatingFuture)1 MCGetThreadDumpCodec (com.hazelcast.client.impl.protocol.codec.MCGetThreadDumpCodec)1 ClientInvocation (com.hazelcast.client.impl.spi.impl.ClientInvocation)1 ParallelJVMTest (com.hazelcast.test.annotation.ParallelJVMTest)1 QuickTest (com.hazelcast.test.annotation.QuickTest)1 Test (org.junit.Test)1