当前位置: 首页>>代码示例>>Java>>正文


Java MessagingService.Verb方法代码示例

本文整理汇总了Java中org.apache.cassandra.net.MessagingService.Verb方法的典型用法代码示例。如果您正苦于以下问题:Java MessagingService.Verb方法的具体用法?Java MessagingService.Verb怎么用?Java MessagingService.Verb使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.apache.cassandra.net.MessagingService的用法示例。


在下文中一共展示了MessagingService.Verb方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: getTimeout

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public static long getTimeout(MessagingService.Verb verb)
{
    switch (verb)
    {
        case READ:
            return getReadRpcTimeout();
        case RANGE_SLICE:
            return getRangeRpcTimeout();
        case TRUNCATE:
            return getTruncateRpcTimeout();
        case READ_REPAIR:
        case MUTATION:
        case PAXOS_COMMIT:
        case PAXOS_PREPARE:
        case PAXOS_PROPOSE:
            return getWriteRpcTimeout();
        case COUNTER_MUTATION:
            return getCounterWriteRpcTimeout();
        default:
            return getRpcTimeout();
    }
}
 
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:23,代码来源:DatabaseDescriptor.java

示例2: getTimeout

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public static long getTimeout(MessagingService.Verb verb)
{
    switch (verb)
    {
        case READ:
            return getReadRpcTimeout();
        case RANGE_SLICE:
            return getRangeRpcTimeout();
        case TRUNCATE:
            return getTruncateRpcTimeout();
        case READ_REPAIR:
        case MUTATION:
            return getWriteRpcTimeout();
        default:
            return getRpcTimeout();
    }
}
 
开发者ID:pgaref,项目名称:ACaZoo,代码行数:18,代码来源:DatabaseDescriptor.java

示例3: getTimeout

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public static long getTimeout(MessagingService.Verb verb)
{
    switch (verb)
    {
        case READ:
            return getReadRpcTimeout();
        case RANGE_SLICE:
        case PAGED_RANGE:
            return getRangeRpcTimeout();
        case TRUNCATE:
            return getTruncateRpcTimeout();
        case READ_REPAIR:
        case MUTATION:
        case PAXOS_COMMIT:
        case PAXOS_PREPARE:
        case PAXOS_PROPOSE:
        case HINT:
        case BATCH_STORE:
        case BATCH_REMOVE:
            return getWriteRpcTimeout();
        case COUNTER_MUTATION:
            return getCounterWriteRpcTimeout();
        default:
            return getRpcTimeout();
    }
}
 
开发者ID:scylladb,项目名称:scylla-tools-java,代码行数:27,代码来源:DatabaseDescriptor.java

示例4: DroppedMessageMetrics

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public DroppedMessageMetrics(MessagingService.Verb verb) {
    this.verb = verb;
}
 
开发者ID:scylladb,项目名称:scylla-jmx,代码行数:4,代码来源:DroppedMessageMetrics.java

示例5: DroppedMessageMetrics

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public DroppedMessageMetrics(MessagingService.Verb verb)
{
    MetricNameFactory factory = new DefaultNameFactory("DroppedMessage", verb.toString());
    dropped = Metrics.newMeter(factory.createMetricName("Dropped"), "dropped", TimeUnit.SECONDS);
}
 
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:6,代码来源:DroppedMessageMetrics.java

示例6: createMessage

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public MessageOut<Mutation> createMessage(MessagingService.Verb verb)
{
    return new MessageOut<>(verb, this, serializer);
}
 
开发者ID:vcostet,项目名称:cassandra-kmean,代码行数:5,代码来源:Mutation.java

示例7: createMessage

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public MessageOut<RowMutation> createMessage(MessagingService.Verb verb)
{
    return new MessageOut<RowMutation>(verb, this, serializer);
}
 
开发者ID:pgaref,项目名称:ACaZoo,代码行数:5,代码来源:RowMutation.java

示例8: DroppedMessageMetrics

import org.apache.cassandra.net.MessagingService; //导入方法依赖的package包/类
public DroppedMessageMetrics(MessagingService.Verb verb)
{
    MetricNameFactory factory = new DefaultNameFactory("DroppedMessage", verb.toString());
    dropped = Metrics.meter(factory.createMetricName("Dropped"));
}
 
开发者ID:scylladb,项目名称:scylla-tools-java,代码行数:6,代码来源:DroppedMessageMetrics.java


注:本文中的org.apache.cassandra.net.MessagingService.Verb方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。