public static ServiceName<AbstractRaftState> candidateServiceName(String raftName, int term) { return ServiceName.newServiceName( String.format("raft.candidate.%s.%d", raftName, term), AbstractRaftState.class); } }
public static final ServiceName<LogStorageAppender> logStorageAppenderServiceName( String logName) { return ServiceName.newServiceName( String.format("logstream.%s.storage.appender", logName), LogStorageAppender.class); }
public static ServiceName<Void> replicateLogConrollerServiceName( String raftName, int term, int followerNodeId) { return ServiceName.newServiceName( String.format("raft.leader.%s.%d.replicate.%d", raftName, term, followerNodeId), Void.class); }
public static final ServiceName<Subscription> logWriteBufferSubscriptionServiceName( String logName, String subscriptionName) { return ServiceName.newServiceName( String.format("logstream.%s.writeBuffer.subscription.%s", logName, subscriptionName), Subscription.class); }
public static final ServiceName<StateStorageFactory> stateStorageFactoryServiceName( String partitionName) { return ServiceName.newServiceName( String.format("%s.rocksdb.storage", partitionName), StateStorageFactory.class); }
public static ServiceName<Void> leaderInitialEventCommittedServiceName( String raftName, int term) { return ServiceName.newServiceName( String.format("raft.leader.%s.%d.initialEventCommitted", raftName, term), Void.class); }
public static final ServiceName<StreamProcessorService> streamProcessorService( String logName, String processorName) { return ServiceName.newServiceName( String.format("logstream.%s.processor.%s", logName, processorName), StreamProcessorService.class); } }
public static ServiceName<Void> replicateLogConrollerServiceName( String raftName, int term, int followerNodeId) { return ServiceName.newServiceName( String.format("raft.leader.%s.%d.replicate.%d", raftName, term, followerNodeId), Void.class); }
public static final ServiceName<StreamProcessorService> streamProcessorService( String logName, String processorName) { return ServiceName.newServiceName( String.format("logstream.%s.processor.%s", logName, processorName), StreamProcessorService.class); } }
public static ServiceName<ClientTransport> clientTransport(String identifier) { return ServiceName.newServiceName( String.format("transport.%s.client", identifier), ClientTransport.class); } }
public static final ServiceName<Void> logStorageAppenderRootService(String logName) { return ServiceName.newServiceName( String.format("logstream.%s.storage.appender-root", logName), Void.class); }
public static ServiceName<ServerTransport> serverTransport(String identifier) { return ServiceName.newServiceName( String.format("transport.%s.server", identifier), ServerTransport.class); }
public static final ServiceName<LogStorageAppender> logStorageAppenderServiceName( String logName) { return ServiceName.newServiceName( String.format("logstream.%s.storage.appender", logName), LogStorageAppender.class); }
public static final ServiceName<Subscription> logWriteBufferSubscriptionServiceName( String logName, String subscriptionName) { return ServiceName.newServiceName( String.format("logstream.%s.writeBuffer.subscription.%s", logName, subscriptionName), Subscription.class); }
public static ServiceName<ClientTransport> clientTransport(String identifier) { return ServiceName.newServiceName( String.format("transport.%s.client", identifier), ClientTransport.class); } }
public static ServiceName<Void> pollServiceName(String raftName, int term) { return ServiceName.newServiceName( String.format("raft.follower.%s.%d.pollService", raftName, term), Void.class); }
public static ServiceName<Void> partitionInstallServiceName(final String partitionName) { return ServiceName.newServiceName( String.format("cluster.base.partition.install.%s", partitionName), Void.class); }
public static ServiceName<Dispatcher> receiveBufferName(String identifier) { return ServiceName.newServiceName( String.format("transport.%s.receive-buffer", identifier), Dispatcher.class); }
public static final ServiceName<StateStorageFactory> stateStorageFactoryServiceName( String partitionName) { return ServiceName.newServiceName( String.format("%s.rocksdb.storage", partitionName), StateStorageFactory.class); }
@Override public <S> S getService(String name, Class<S> type) { validCheck(); return getService(ServiceName.newServiceName(name, type)); }