use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testGetSystemPropertiesMessageTask.
@Test
public void testGetSystemPropertiesMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCGetSystemPropertiesCodec.encodeRequest(), null);
ClientDelegatingFuture<List<Entry<String, String>>> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCGetSystemPropertiesCodec::decodeResponse);
assertFalse(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS).isEmpty());
}
use of com.hazelcast.client.impl.ClientDelegatingFuture 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)));
}
use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testHotRestartTriggerBackupMessageTask.
@Test
public void testHotRestartTriggerBackupMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCTriggerHotRestartBackupCodec.encodeRequest(), null);
ClientDelegatingFuture<Void> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), clientMessage -> null);
future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS);
}
use of com.hazelcast.client.impl.ClientDelegatingFuture in project hazelcast by hazelcast.
the class MCMessageTasksTest method testHotRestartTriggerForceStartMessageTask.
@Test
public void testHotRestartTriggerForceStartMessageTask() throws Exception {
ClientInvocation invocation = new ClientInvocation(getClientImpl(), MCTriggerForceStartCodec.encodeRequest(), null);
ClientDelegatingFuture<Boolean> future = new ClientDelegatingFuture<>(invocation.invoke(), getClientImpl().getSerializationService(), MCTriggerForceStartCodec::decodeResponse);
assertFalse(future.get(ASSERT_TRUE_EVENTUALLY_TIMEOUT, SECONDS));
}
Aggregations