Search in sources :

Example 1 with ClusterStats

use of com.facebook.presto.server.ClusterStatsResource.ClusterStats in project presto by prestodb.

the class TestThriftClusterStats method testRoundTripSerializeBinaryProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeBinaryProtocol(ThriftCodec<ClusterStats> readCodec, ThriftCodec<ClusterStats> writeCodec) throws Exception {
    ClusterStats clusterStats = getRoundTripSerialize(readCodec, writeCodec, TBinaryProtocol::new);
    assertSerde(clusterStats);
}
Also used : ClusterStats(com.facebook.presto.server.ClusterStatsResource.ClusterStats) TBinaryProtocol(com.facebook.drift.protocol.TBinaryProtocol) Test(org.testng.annotations.Test)

Example 2 with ClusterStats

use of com.facebook.presto.server.ClusterStatsResource.ClusterStats in project presto by prestodb.

the class TestThriftClusterStats method testRoundTripSerializeTCompactProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeTCompactProtocol(ThriftCodec<ClusterStats> readCodec, ThriftCodec<ClusterStats> writeCodec) throws Exception {
    ClusterStats clusterStats = getRoundTripSerialize(readCodec, writeCodec, TCompactProtocol::new);
    assertSerde(clusterStats);
}
Also used : ClusterStats(com.facebook.presto.server.ClusterStatsResource.ClusterStats) TCompactProtocol(com.facebook.drift.protocol.TCompactProtocol) Test(org.testng.annotations.Test)

Example 3 with ClusterStats

use of com.facebook.presto.server.ClusterStatsResource.ClusterStats in project presto by prestodb.

the class TestThriftClusterStats method testRoundTripSerializeTFacebookCompactProtocol.

@Test(dataProvider = "codecCombinations")
public void testRoundTripSerializeTFacebookCompactProtocol(ThriftCodec<ClusterStats> readCodec, ThriftCodec<ClusterStats> writeCodec) throws Exception {
    ClusterStats clusterStats = getRoundTripSerialize(readCodec, writeCodec, TFacebookCompactProtocol::new);
    assertSerde(clusterStats);
}
Also used : ClusterStats(com.facebook.presto.server.ClusterStatsResource.ClusterStats) TFacebookCompactProtocol(com.facebook.drift.protocol.TFacebookCompactProtocol) Test(org.testng.annotations.Test)

Aggregations

ClusterStats (com.facebook.presto.server.ClusterStatsResource.ClusterStats)3 Test (org.testng.annotations.Test)3 TBinaryProtocol (com.facebook.drift.protocol.TBinaryProtocol)1 TCompactProtocol (com.facebook.drift.protocol.TCompactProtocol)1 TFacebookCompactProtocol (com.facebook.drift.protocol.TFacebookCompactProtocol)1