A B C D E F G H I J K L M N O P Q R S T U V W Z

A

ABORT_HANDLER_KEY - Static variable in class com.twitter.common.net.http.handlers.AbortHandler
A @Named binding key for the QuitHandler listener.
AbortHandler - Class in com.twitter.common.net.http.handlers
A servlet that provides a way to remotely terminate the running process immediately.
AbortHandler(Runnable) - Constructor for class com.twitter.common.net.http.handlers.AbortHandler
Constructs a new AbortHandler that will notify the given abortListener when the servlet is accessed.
AbstractApplication - Class in com.twitter.common.application
A base application class that provides empty implementations of all but the Runnable.run() method.
AbstractApplication() - Constructor for class com.twitter.common.application.AbstractApplication
 
AbstractGauge<T extends Number> - Class in com.twitter.common.metrics
A partial Gauge implementation.
AbstractGauge(String) - Constructor for class com.twitter.common.metrics.AbstractGauge
Creates an abstract gauge using the provided name.
accept(AuditEvent) - Method in class com.twitter.common.checkstyle.SplitSuppressionFilter
 
acceptImpl() - Method in class com.twitter.common.thrift.monitoring.TMonitoredNonblockingServerSocket
 
acceptImpl() - Method in class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
acceptToken() - Method in class com.twitter.common.text.filter.TokenFilter
Overwrite this method to control which tokens are filtered out.
acceptToken() - Method in class com.twitter.common.text.filter.TokenTypeFilter
 
accessTokenAt(int) - Method in class com.twitter.common.text.token.TokenGroupStream
 
accumulate(long) - Method in class com.twitter.common.metrics.Events
Accumulates a value and increments the event counter.
accumulate(long) - Method in class com.twitter.common.stats.SlidingStats
Accumulates counter by an offset.
accumulate(long) - Method in class com.twitter.common.stats.Statistics
 
adapt(ProxyConfig) - Static method in class com.twitter.common.net.ProxyAuthorizer
 
add(T) - Method in class com.twitter.common.collections.BoundedQueue
Adds a value to head of the queue, evicting the oldest item if the queue is at capacity.
add(TokenStreamSerializer.AttributeSerializer) - Method in class com.twitter.common.text.util.TokenStreamSerializer.Builder
Adds an AttributeSerializer.
addAction(T) - Method in interface com.twitter.common.application.ShutdownRegistry
 
addAction(T) - Method in class com.twitter.common.application.ShutdownRegistry.ShutdownRegistryImpl
Registers an action to execute during ShutdownRegistry.ShutdownRegistryImpl.execute().
addAction(T) - Method in class com.twitter.common.testing.TearDownRegistry
 
addConnectResult(S, LoadBalancingStrategy.ConnectionResult, long) - Method in class com.twitter.common.net.loadbalancing.LeastConnectedStrategy
 
addConnectResult(K, LoadBalancingStrategy.ConnectionResult, long) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancingStrategy
Offers information about a connection result.
addConnectResult(S, LoadBalancingStrategy.ConnectionResult, long) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategy
 
addConnectResult(S, LoadBalancingStrategy.ConnectionResult, long) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategyWithHostCheck
Overrides the base class implementation by adding this connection result to the host checker.
addConnectResult(S, LoadBalancingStrategy.ConnectionResult) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategyWithHostCheck.LiveHostChecker
Adds the connection result of this backend to the last connection result map.
addConnectResult(S, LoadBalancingStrategy.ConnectionResult, long) - Method in class com.twitter.common.net.loadbalancing.SubsetStrategy
 
addConnectResult(K, LoadBalancingStrategy.ConnectionResult, long) - Method in class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
addExceptionChars(String) - Method in class com.twitter.common.text.combiner.PunctuationExceptionCombiner.Builder
Add additional exception chars.
addFailure() - Method in class com.twitter.common.util.BackoffDecider
Records a failed request to the backend.
addNumber(int) - Method in class com.twitter.common.util.Stat
Add a number to the statistics collector.
addNumber(float) - Method in class com.twitter.common.util.Stat
Add a number to the statistics collector.
addNumber(double) - Method in class com.twitter.common.util.Stat
Add a number to the statistics collector.
addProtocol(String) - Static method in class com.twitter.common.net.UrlHelper
Checks whether a URL specifies its protocol, prepending http if it does not.
addRequestResult(K, RequestTracker.RequestResult, long) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancingStrategy
Offers information about a request result.
addRequestResult(S, RequestTracker.RequestResult, long) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategy
 
addRequestResult(S, RequestTracker.RequestResult, long) - Method in class com.twitter.common.net.loadbalancing.SubsetStrategy
 
addRequestResult(K, RequestTracker.RequestResult, long) - Method in class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
addState(StateMachine.Rule<T>) - Method in class com.twitter.common.util.StateMachine.Builder
Adds a state and its allowed transitions.
addState(Closure<StateMachine.Transition<T>>, T, Set<T>) - Method in class com.twitter.common.util.StateMachine.Builder
Adds a state and its allowed transitions.
addState(Closure<StateMachine.Transition<T>>, T, T...) - Method in class com.twitter.common.util.StateMachine.Builder
Varargs version of StateMachine.Builder.addState(com.twitter.common.base.Closure, Object, java.util.Set).
addState(T, T...) - Method in class com.twitter.common.util.StateMachine.Builder
Adds a state and its allowed transitions.
addSuccess() - Method in class com.twitter.common.util.BackoffDecider
Records a successful request to the backend.
addToken(int, int) - Method in class com.twitter.common.text.token.TokenizedCharSequence.Builder
 
addToken(int, int, TokenType) - Method in class com.twitter.common.text.token.TokenizedCharSequence.Builder
 
addToken(int, int, TokenType, int) - Method in class com.twitter.common.text.token.TokenizedCharSequence.Builder
 
addValue(double) - Method in class com.twitter.common.stats.PrintableHistogram
 
addValue(double, int) - Method in class com.twitter.common.stats.PrintableHistogram
 
advance(Amount<Long, Time>) - Method in class com.twitter.common.util.testing.FakeClock
Advances the current time by millis milliseconds.
ago(int, int) - Static method in class com.twitter.common.util.DateUtils
 
ago(Date, int, int) - Static method in class com.twitter.common.util.DateUtils
 
Amount<T extends Number & Comparable<T>,U extends Unit<U>> - Class in com.twitter.common.quantity
Represents a value in a unit system and facilitates unambiguous communication of amounts.
AmountParser - Class in com.twitter.common.args.parsers
Amount parser.
AmountParser() - Constructor for class com.twitter.common.args.parsers.AmountParser
 
ANY_VERSION - Static variable in class com.twitter.common.zookeeper.ZooKeeperUtils
The magic version number that allows any mutation to always succeed regardless of actual version number.
AppLauncher - Class in com.twitter.common.application
An application launcher that sets up a framework for pluggable binding modules.
AppLauncher() - Constructor for class com.twitter.common.application.AppLauncher
 
AppLauncherModule - Class in com.twitter.common.application.modules
Binding module for the bare minimum requirements for the AppLauncher.
AppLauncherModule() - Constructor for class com.twitter.common.application.modules.AppLauncherModule
 
AppLauncherModule.LoggingExceptionHandler - Class in com.twitter.common.application.modules
 
AppLauncherModule.LoggingExceptionHandler() - Constructor for class com.twitter.common.application.modules.AppLauncherModule.LoggingExceptionHandler
 
Application - Interface in com.twitter.common.application
An application that supports a limited lifecycle and optional binding of guice modules.
apply(S) - Method in interface com.twitter.common.base.ExceptionalFunction
Performs a unit of work on item, possibly throwing E in the process.
apply(S) - Method in interface com.twitter.common.base.Function
 
apply(S) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategyWithHostCheck.LiveHostChecker
Checks if the last connection result for this backend and returns true if it was ConnectionResult#SUCCESS otherwise returns false.
apply(Long) - Method in class com.twitter.common.zookeeper.Partitioner.Partition
Equivalent to Partitioner.Partition.isMember(long) for all non-null values; however incurs unboxing overhead.
applyDefaultChain(TokenStream) - Method in class com.twitter.common.text.DefaultTextTokenizer
 
applyDefaultChain(TokenStream) - Method in class com.twitter.common.text.TextTokenizer
 
Arg<T> - Class in com.twitter.common.args
Wrapper class for the value of an argument.
Arg() - Constructor for class com.twitter.common.args.Arg
Creates an arg that has no default value, meaning that its value can only ever be retrieved if it has been externally set.
Arg(T) - Constructor for class com.twitter.common.args.Arg
Creates an arg that has a default value, and may optionally be set.
ArgFilters - Class in com.twitter.common.args
Utilities for generating @CmdLine Arg filters suitable for use with ArgScanner.parse(Predicate, Iterable).
ArgParser - Annotation Type in com.twitter.common.args
Annotation to register a command line argument parser globally.
ArgScanner - Class in com.twitter.common.args
Argument scanning, parsing, and validating system.
ArgScanner() - Constructor for class com.twitter.common.args.ArgScanner
Equivalent to calling ArgScanner.ArgScanner(PrintStream) passing System.out.
ArgScanner(PrintStream) - Constructor for class com.twitter.common.args.ArgScanner
Creates a new ArgScanner that prints help on arg parse failure or when help is requested to out or else prints applied argument information to out when parsing is successful.
ArgScanner.ArgScanException - Exception in com.twitter.common.args
Indicates a problem scanning @CmdLine arg definitions.
ArgScanner.ArgScanException(Throwable) - Constructor for exception com.twitter.common.args.ArgScanner.ArgScanException
 
as(U) - Method in class com.twitter.common.quantity.Amount
 
asFunction(ExceptionalClosure<T, ?>) - Static method in class com.twitter.common.base.Closures
Converts a closure into a function returning null.
AssetHandler - Class in com.twitter.common.net.http.handlers
Servlet that is responsible for serving an asset.
AssetHandler(AssetHandler.StaticAsset) - Constructor for class com.twitter.common.net.http.handlers.AssetHandler
Creates a new asset handler.
AssetHandler.StaticAsset - Class in com.twitter.common.net.http.handlers
 
AssetHandler.StaticAsset(InputSupplier<? extends InputStream>, String, boolean) - Constructor for class com.twitter.common.net.http.handlers.AssetHandler.StaticAsset
Creates a new static asset.
asSupplier(ExceptionalCommand<E>) - Static method in class com.twitter.common.base.Commands
Converts a command into a supplier returning null.
asSupplier(Gauge) - Static method in class com.twitter.common.metrics.Gauges
Creates a supplier that serves as an accessor for gauge values.
asyncDecode(CachedData) - Method in class com.twitter.common.memcached.ThriftTranscoder
 
authenticate(ZooKeeper) - Method in interface com.twitter.common.zookeeper.ZooKeeperClient.Credentials
Authenticates these credentials against the given ZooKeeper client.
authorize(HttpURLConnection) - Method in class com.twitter.common.net.ProxyAuthorizer
 
authToken() - Method in interface com.twitter.common.zookeeper.ZooKeeperClient.Credentials
Returns the authentication token.
auxiliaryService(String, int, Command) - Static method in class com.twitter.common.application.modules.LocalServiceRegistry.LocalService
Creates a named auxiliary service.
awaitBackoff() - Method in class com.twitter.common.util.BackoffDecider
Checks whether the caller should back off and if not then returns immediately; otherwise the method blocks until it is safe for the caller to proceed without backing off further based on all data available at the time of this call.
awaitShutdown() - Method in class com.twitter.common.application.Lifecycle
Allows a caller to wait forever; typically used when all work is done in daemon threads.
awaitShutdown(Amount<Long, Time>) - Method in class com.twitter.common.thrift.ThriftServer
Attempts to shut down this server, and waits for the shutdown operation to complete.
awaitTermination(long, TimeUnit) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 

B

BackingOffFutureTask - Class in com.twitter.common.util.concurrent
A RetryingFutureTask that will resubmit itself to a work queue with a backoff.
BackingOffFutureTask(ScheduledExecutorService, Callable<Boolean>, int, BackoffStrategy) - Constructor for class com.twitter.common.util.concurrent.BackingOffFutureTask
Creates a new retrying future task that will execute a unit of work until successfully completed, or the retry limit has been reached.
BackoffDecider - Class in com.twitter.common.util
Handles logic for deciding whether to back off from calls to a backend.
BackoffDecider.Builder - Class in com.twitter.common.util
Builder class to configure a BackoffDecider.
BackoffDecider.RecoveryType - Enum in com.twitter.common.util
Different types of recovery mechanisms to use after exiting the backoff state.
BackoffHelper - Class in com.twitter.common.util
A utility for dealing with backoffs of retryable actions.
BackoffHelper() - Constructor for class com.twitter.common.util.BackoffHelper
Creates a new BackoffHelper that uses truncated binary backoff starting at a 1 second backoff and maxing out at a 1 minute backoff.
BackoffHelper(Amount<Long, Time>, Amount<Long, Time>) - Constructor for class com.twitter.common.util.BackoffHelper
Creates a new BackoffHelper that uses truncated binary backoff starting at the given initialBackoff and maxing out at the given maxBackoff.
BackoffHelper(Amount<Long, Time>, Amount<Long, Time>, boolean) - Constructor for class com.twitter.common.util.BackoffHelper
Creates a new BackoffHelper that uses truncated binary backoff starting at the given initialBackoff and maxing out at the given maxBackoff.
BackoffHelper(BackoffStrategy) - Constructor for class com.twitter.common.util.BackoffHelper
Creates a BackoffHelper that uses the given backoffStrategy to calculate backoffs between retries.
BackoffHelper.BackoffStoppedException - Exception in com.twitter.common.util
Occurs after the backoff strategy should stop.
BackoffHelper.BackoffStoppedException(String) - Constructor for exception com.twitter.common.util.BackoffHelper.BackoffStoppedException
 
BackoffStrategy - Interface in com.twitter.common.util
Encapsulates a strategy for backing off from an operation that repeatedly fails.
BaseZooKeeperTest - Class in com.twitter.common.zookeeper.testing
A baseclass for in-process zookeeper tests.
BaseZooKeeperTest() - Constructor for class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Creates a test case where the test server uses its ZooKeeperTestServer.DEFAULT_SESSION_TIMEOUT for clients created without an explicit session timeout.
BaseZooKeeperTest(Amount<Integer, Time>) - Constructor for class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Creates a test case where the test server uses the given defaultSessionTimeout for clients created without an explicit session timeout.
BINARY_PROTOCOL - Static variable in class com.twitter.common.io.ThriftCodec
 
BINARY_PROTOCOL - Static variable in class com.twitter.common.thrift.ThriftServer
 
bind(Binder) - Static method in class com.twitter.common.inject.TimedInterceptor
Installs an interceptor in a guice Injector, enabling @Timed method interception in guice-provided instances.
binderFor(Key<T>) - Static method in class com.twitter.common.inject.Bindings
Creates a BindHelper for the given binding key that can be used to bind a single instance.
Bindings - Class in com.twitter.common.inject
A utility that helps with guice bindings.
Bindings.BindHelper<T> - Interface in com.twitter.common.inject
A guice binding helper that allows for any combination of Class, TypeLiteral or Key binding without forcing guiced implementation to provide all the overloaded binding methods they would otherwise have to.
bindLocalService(Binder, LocalServiceRegistry.LocalService) - Static method in class com.twitter.common.application.modules.LifecycleModule
Binds a local service instance, without attaching an explicit lifecycle.
bindOrElse(Key<T>, Key<T>, Key<T>, Binder) - Static method in class com.twitter.common.inject.DefaultProvider
Creates a DefaultProvider and installs a new module to binder, which will serve as an indirection layer for swapping the default binding with a custom one.
bindOrElse(TypeLiteral<T>, String, Binder) - Static method in class com.twitter.common.inject.DefaultProvider
Convenience function for creating and installing a DefaultProvider.
bindOrElse(Class<T>, String, Binder) - Static method in class com.twitter.common.inject.DefaultProvider
Convenience method for calls to DefaultProvider.bindOrElse(TypeLiteral, String, Binder), that are not binding a parameterized type.
bindServiceRunner(Binder, Class<? extends LifecycleModule.ServiceRunner>) - Static method in class com.twitter.common.application.modules.LifecycleModule
Binds a service runner that will start and stop a local service.
bindStartupAction(Binder, Class<? extends ExceptionalCommand>) - Static method in class com.twitter.common.application.modules.LifecycleModule
Adds a startup action to the startup registry binding.
Bits - Class in com.twitter.common.collections
Convenience class for doing bit-level operations on ints and longs.
blocking() - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Specifies that all calls be blocking calls with no inherent deadline.
BooleanParser - Class in com.twitter.common.args.parsers
Boolean parser.
BooleanParser() - Constructor for class com.twitter.common.args.parsers.BooleanParser
 
BoundedQueue<T> - Class in com.twitter.common.collections
A limited implementation of a bounded queue.
BoundedQueue(int) - Constructor for class com.twitter.common.collections.BoundedQueue
Creates a new bounded queue.
buffer(Log<T, R>) - Method in class com.twitter.common.logging.BufferedLog.Builder
Specifies the log that should be buffered.
BufferedLog<T,R> - Class in com.twitter.common.logging
Log that buffers requests before sending them to a wrapped log.
BufferedLog.Builder<T,R> - Class in com.twitter.common.logging
Configures a BufferedLog object.
BufferedLog.Builder() - Constructor for class com.twitter.common.logging.BufferedLog.Builder
 
build() - Method in class com.twitter.common.logging.BufferedLog.Builder
Creates the buffered log.
build() - Method in class com.twitter.common.stats.Rate.Builder
 
build() - Method in class com.twitter.common.text.combiner.PunctuationExceptionCombiner.Builder
 
build() - Method in class com.twitter.common.text.DefaultTextTokenizer.Builder
 
build() - Method in class com.twitter.common.text.detector.PunctuationDetector.AbstractBuilder
 
build() - Method in class com.twitter.common.text.detector.RegexDetector.AbstractBuilder
 
build() - Method in class com.twitter.common.text.extractor.RegexExtractor.AbstractBuilder
 
build() - Method in class com.twitter.common.text.filter.TokenTypeFilter.Builder
 
build() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Builder
 
build() - Method in class com.twitter.common.text.tokenizer.RegexTokenizer.AbstractBuilder
 
build() - Method in class com.twitter.common.text.util.TokenStreamSerializer.Builder
Builds the TokenStreamSerializer.
build(Set<InetSocketAddress>) - Method in class com.twitter.common.thrift.ThriftFactory
Creates the thrift client, and initializes connection pools.
build(DynamicHostSet<ServiceInstance>) - Method in class com.twitter.common.thrift.ThriftFactory
Creates a synchronous thrift client that will communicate with a dynamic host set.
build() - Method in class com.twitter.common.util.BackoffDecider.Builder
Gets a reference to the built decider object.
build() - Method in class com.twitter.common.util.caching.LRUCache.Builder
 
build() - Method in class com.twitter.common.util.StateMachine.Builder
Builds the state machine.
buildAsync(Set<InetSocketAddress>) - Method in class com.twitter.common.thrift.ThriftFactory
Creates an asynchronous thrift client that will communicate with a fixed set of backends.
buildAsync(DynamicHostSet<ServiceInstance>) - Method in class com.twitter.common.thrift.ThriftFactory
Creates an asynchronous thrift client that will communicate with a dynamic host set.
builder() - Static method in class com.twitter.common.logging.BufferedLog
 
builder() - Static method in class com.twitter.common.text.util.TokenStreamSerializer
Returns a new Builder to build a TokenStreamSerializer.
builder() - Static method in class com.twitter.common.thrift.Config
Created a builder for a new Config.
builder(Config) - Static method in class com.twitter.common.thrift.Config
 
builder() - Method in class com.twitter.common.thrift.Thrift
Creates a new thrift client builder that inherits this Thrift instance's default configuration.
builder(Config) - Method in class com.twitter.common.thrift.Thrift
Creates a new thrift client builder that inherits the given configuration.
builder(String) - Static method in class com.twitter.common.util.BackoffDecider
Creates a builder object.
builder() - Static method in class com.twitter.common.util.caching.LRUCache
 
builder(String) - Static method in class com.twitter.common.util.StateMachine
Convenience method to create a builder object.
BuildInfo - Class in com.twitter.common.util
Handles loading of a build properties file, and provides keys to look up known values in the properties.
BuildInfo() - Constructor for class com.twitter.common.util.BuildInfo
Creates a build info container that will use the default properties file path.
BuildInfo(String) - Constructor for class com.twitter.common.util.BuildInfo
Creates a build info container, reading from the given path.
BuildInfo(Properties) - Constructor for class com.twitter.common.util.BuildInfo
 
BuildInfo.Key - Enum in com.twitter.common.util
Values of keys that are expected to exist in the loaded properties file.
BYTE_ARRAY_VALUE - Static variable in class com.twitter.common.zookeeper.ZooKeeperNode
Deserializer for the constructor if you want to simply store the zookeeper byte[] data as-is.
BYTE_ARRAY_VALUES - Static variable in class com.twitter.common.zookeeper.ZooKeeperMap
Default deserializer for the constructor if you want to simply store the zookeeper byte[] data in this map.
ByteParser - Class in com.twitter.common.args.parsers
Byte parser.
ByteParser() - Constructor for class com.twitter.common.args.parsers.ByteParser
 

C

Cache<K,V> - Interface in com.twitter.common.util.caching
Definition of basic caching functionality.
cache(V, Cache<List, V>) - Method in class com.twitter.common.util.caching.CachingMethodProxy
 
cache(V, Cache<List, V>, Predicate<V>) - Method in class com.twitter.common.util.caching.CachingMethodProxy
 
cache(V, Cache<K, V>, Function<Object[], K>) - Method in class com.twitter.common.util.caching.CachingMethodProxy
 
cache(V, Cache<K, V>, Function<Object[], K>, Predicate<V>) - Method in class com.twitter.common.util.caching.CachingMethodProxy
 
CachingMethodProxy<T> - Class in com.twitter.common.util.caching
A proxy class that handles caching of return values for method calls to a wrapped object.
CachingSupplier<T> - Class in com.twitter.common.base
A supplier that caches responses from an underling supplier, expiring the cached value after a fixed expiration time.
CachingSupplier(Supplier<T>, Amount<Long, Time>) - Constructor for class com.twitter.common.base.CachingSupplier
Creates a new caching supplier.
calculateBackoffMs(long) - Method in interface com.twitter.common.util.BackoffStrategy
Calculates the amount of time to backoff from an operation.
calculateBackoffMs(long) - Method in class com.twitter.common.util.TruncatedBinaryBackoff
 
calculateObjectSize(Object) - Method in class com.twitter.common.objectsize.ObjectSizeCalculator
Given an object, returns the total allocated size, in bytes, of the object and all other objects reachable from it.
call() - Method in class com.twitter.common.base.CallableExceptionalSupplier
 
call(Method, Object[], AsyncMethodCallback, Amount<Long, Time>) - Method in interface com.twitter.common.thrift.callers.Caller
Invokes a method on an object, using the given arguments.
call(Method, Object[], AsyncMethodCallback, Amount<Long, Time>) - Method in class com.twitter.common.thrift.callers.DeadlineCaller
 
call(Method, Object[], AsyncMethodCallback, Amount<Long, Time>) - Method in class com.twitter.common.thrift.callers.DebugCaller
 
call(Method, Object[], AsyncMethodCallback, Amount<Long, Time>) - Method in class com.twitter.common.thrift.callers.RetryingCaller
 
call(Method, Object[], AsyncMethodCallback, Amount<Long, Time>) - Method in class com.twitter.common.thrift.callers.StatTrackingCaller
 
call(Method, Object[], AsyncMethodCallback, Amount<Long, Time>) - Method in class com.twitter.common.thrift.callers.ThriftCaller
 
callable - Variable in class com.twitter.common.util.concurrent.RetryingFutureTask
 
CallableExceptionalSupplier<T,E extends Exception> - Class in com.twitter.common.base
A supplier that may also be called.
CallableExceptionalSupplier() - Constructor for class com.twitter.common.base.CallableExceptionalSupplier
 
Caller - Interface in com.twitter.common.thrift.callers
A caller that invokes a method on an object.
Caller.ResultCapture - Interface in com.twitter.common.thrift.callers
Captures the result of a request, whether synchronous or asynchronous.
Caller.WrappedMethodCallback - Class in com.twitter.common.thrift.callers
A callback that adapts a Caller.ResultCapture with an AsyncMethodCallback while maintaining the AsyncMethodCallback interface.
Caller.WrappedMethodCallback(AsyncMethodCallback, Caller.ResultCapture) - Constructor for class com.twitter.common.thrift.callers.Caller.WrappedMethodCallback
 
canBeCombinedWithNextToken(CharSequence) - Method in class com.twitter.common.text.combiner.DotContractedTokenCombiner
 
canBeCombinedWithNextToken(CharSequence) - Method in class com.twitter.common.text.combiner.LookAheadTokenCombiner
 
canBeCombinedWithPreviousToken(CharSequence) - Method in class com.twitter.common.text.combiner.DotContractedTokenCombiner
 
canBeCombinedWithPreviousToken(CharSequence) - Method in class com.twitter.common.text.combiner.LookAheadTokenCombiner
 
cancel() - Method in interface com.twitter.common.zookeeper.Group.Membership
Cancels group membership by deleting the associated ZooKeeper member node.
Candidate - Interface in com.twitter.common.zookeeper
Interface definition for becoming or querying for a ZooKeeper-based group leader.
Candidate.Leader - Interface in com.twitter.common.zookeeper
Encapsulates a leader that can be elected and subsequently defeated.
CandidateImpl - Class in com.twitter.common.zookeeper
Implements leader election for small groups of candidates.
CandidateImpl(Group) - Constructor for class com.twitter.common.zookeeper.CandidateImpl
Equivalent to CandidateImpl.CandidateImpl(Group, com.google.common.base.Function) using a judge that always picks the lowest numbered candidate ephemeral node - by proxy the oldest or 1st candidate.
CandidateImpl(Group, Function<Iterable<String>, String>) - Constructor for class com.twitter.common.zookeeper.CandidateImpl
Creates a candidate that can be used to offer leadership for the given group.
CanExecute - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates an entity must be executable.
CanExecuteFileVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a file is executable.
CanExecuteFileVerifier() - Constructor for class com.twitter.common.args.constraints.CanExecuteFileVerifier
 
CanRead - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates an entity must be readable.
CanReadFileVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a file is readable.
CanReadFileVerifier() - Constructor for class com.twitter.common.args.constraints.CanReadFileVerifier
 
CanWrite - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates an entity must be writable.
CanWriteFileVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a file can be written to.
CanWriteFileVerifier() - Constructor for class com.twitter.common.args.constraints.CanWriteFileVerifier
 
CharacterParser - Class in com.twitter.common.args.parsers
Character parser.
CharacterParser() - Constructor for class com.twitter.common.args.parsers.CharacterParser
 
charAt(int) - Method in class com.twitter.common.text.token.TokenizedCharSequence
 
CharSequenceTermAttribute - Interface in com.twitter.common.text.token.attribute
TermAttribute backed by a larger CharSequence that does not change as TokenStream.incrementToken() is called.
CharSequenceTermAttributeImpl - Class in com.twitter.common.text.token.attribute
Implementation of CharSequenceTermAttribute.
CharSequenceTermAttributeImpl() - Constructor for class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
CharSequenceTermAttributeSerializer - Class in com.twitter.common.text.util
(De)Serializes {@link CharSequenceTermAttribute).
CharSequenceTermAttributeSerializer() - Constructor for class com.twitter.common.text.util.CharSequenceTermAttributeSerializer
 
checkArgumentRange(double, double, double, String) - Static method in class com.twitter.common.base.MorePreconditions
Checks that a double falls within a specified range, inclusive
checkArgumentRange(int, int, int, String) - Static method in class com.twitter.common.base.MorePreconditions
Checks that an int falls within a specified range, inclusive
checkArguments(String, Boolean...) - Static method in class com.twitter.common.base.MorePreconditions
Checks that at least one of the specified arguments is true.
checkNotBlank(String) - Static method in class com.twitter.common.base.MorePreconditions
Checks that a string is both non-null and non-empty.
checkNotBlank(String, String, Object...) - Static method in class com.twitter.common.base.MorePreconditions
Checks that a string is both non-null and non-empty.
checkNotBlank(T) - Static method in class com.twitter.common.base.MorePreconditions
Checks that an Iterable is both non-null and non-empty.
checkNotBlank(T, String, Object...) - Static method in class com.twitter.common.base.MorePreconditions
Checks that an Iterable is both non-null and non-empty.
checkState(T) - Method in class com.twitter.common.util.StateMachine
Checks that the current state is the expectedState and throws if it is not.
checkState(Set<T>) - Method in class com.twitter.common.util.StateMachine
Checks that the current state is one of the allowedStates and throws if it is not.
CheckStyleUtils - Class in com.twitter.common.checkstyle
Utilities needed by custom checkstyle rules.
chiSqrScore(double, double) - Static method in class com.twitter.common.stats.Significance
 
className - Variable in class com.twitter.common.args.apt.Configuration.ArgInfo
 
ClassParser - Class in com.twitter.common.args.parsers
Class parser.
ClassParser() - Constructor for class com.twitter.common.args.parsers.ClassParser
 
clear() - Method in class com.twitter.common.collections.BoundedQueue
Removes all values from the queue.
clear() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
clear() - Method in class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
clear() - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
clear() - Method in class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
clear() - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
clear() - Method in class com.twitter.common.util.Stat
Clear the statistics counters...
clear() - Method in class com.twitter.common.zookeeper.ZooKeeperMap
This map is readonly, this method throws a UnsupportedOperationException
clearAsyncTasks(int) - Method in class com.twitter.common.net.UrlResolver
Terminates the thread pool, waiting at most waitSeconds for active threads to complete.
clearBit(int, int) - Static method in class com.twitter.common.collections.Bits
Clears a bit in an int value.
clearBit(long, int) - Static method in class com.twitter.common.collections.Bits
Clears a bit in a long value.
Clock - Interface in com.twitter.common.util
An abstraction of the system clock.
clone() - Method in class com.twitter.common.stats.CounterMap
 
close() - Method in interface com.twitter.common.net.pool.Connection
Closes this connection.
close() - Method in class com.twitter.common.net.pool.ConnectionPool
 
close() - Method in class com.twitter.common.net.pool.DynamicPool
 
close() - Method in class com.twitter.common.net.pool.MetaPool
 
close() - Method in interface com.twitter.common.net.pool.ObjectPool
Disallows further gets from this pool, "closes" all idle objects and any outstanding objects when they are released.
close() - Method in class com.twitter.common.thrift.monitoring.TMonitoredNonblockingServerSocket
 
close() - Method in class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
close() - Method in class com.twitter.common.thrift.testing.MockTSocket
 
close() - Method in class com.twitter.common.thrift.Thrift
Closes any open connections and prepares this thrift client for graceful shutdown.
close() - Method in class com.twitter.common.thrift.TTransportConnection
 
close() - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Closes the current connection if any expiring the current ZooKeeper session.
Closure<T> - Interface in com.twitter.common.base
A closure that does not throw any checked exceptions.
Closures - Class in com.twitter.common.base
Utilities for dealing with Closures.
CmdLine - Annotation Type in com.twitter.common.args
Annotation for a command line argument.
CmdLineProcessor - Class in com.twitter.common.args.apt
Processes @CmdLine annotated fields and @ArgParser and @VerifierFor parser and verifier registrations and stores configuration data listing these fields, parsers and verifiers on the classpath for discovery via Configuration.load().
CmdLineProcessor() - Constructor for class com.twitter.common.args.apt.CmdLineProcessor
 
Codec<T> - Interface in com.twitter.common.io
A Codec represents a reversible encoding for a given type.
com.twitter.common.application - package com.twitter.common.application
 
com.twitter.common.application.http - package com.twitter.common.application.http
 
com.twitter.common.application.modules - package com.twitter.common.application.modules
 
com.twitter.common.args - package com.twitter.common.args
 
com.twitter.common.args.apt - package com.twitter.common.args.apt
 
com.twitter.common.args.constraints - package com.twitter.common.args.constraints
 
com.twitter.common.args.parsers - package com.twitter.common.args.parsers
 
com.twitter.common.base - package com.twitter.common.base
 
com.twitter.common.checkstyle - package com.twitter.common.checkstyle
 
com.twitter.common.collections - package com.twitter.common.collections
 
com.twitter.common.inject - package com.twitter.common.inject
 
com.twitter.common.io - package com.twitter.common.io
 
com.twitter.common.logging - package com.twitter.common.logging
 
com.twitter.common.memcached - package com.twitter.common.memcached
 
com.twitter.common.metrics - package com.twitter.common.metrics
 
com.twitter.common.net - package com.twitter.common.net
 
com.twitter.common.net.http - package com.twitter.common.net.http
 
com.twitter.common.net.http.handlers - package com.twitter.common.net.http.handlers
 
com.twitter.common.net.loadbalancing - package com.twitter.common.net.loadbalancing
 
com.twitter.common.net.monitoring - package com.twitter.common.net.monitoring
 
com.twitter.common.net.pool - package com.twitter.common.net.pool
 
com.twitter.common.objectsize - package com.twitter.common.objectsize
 
com.twitter.common.quantity - package com.twitter.common.quantity
 
com.twitter.common.reflect - package com.twitter.common.reflect
 
com.twitter.common.stats - package com.twitter.common.stats
 
com.twitter.common.testing - package com.twitter.common.testing
 
com.twitter.common.testing.runner - package com.twitter.common.testing.runner
 
com.twitter.common.text - package com.twitter.common.text
 
com.twitter.common.text.combiner - package com.twitter.common.text.combiner
 
com.twitter.common.text.detector - package com.twitter.common.text.detector
 
com.twitter.common.text.example - package com.twitter.common.text.example
 
com.twitter.common.text.extractor - package com.twitter.common.text.extractor
 
com.twitter.common.text.filter - package com.twitter.common.text.filter
 
com.twitter.common.text.token - package com.twitter.common.text.token
 
com.twitter.common.text.token.attribute - package com.twitter.common.text.token.attribute
 
com.twitter.common.text.tokenizer - package com.twitter.common.text.tokenizer
 
com.twitter.common.text.util - package com.twitter.common.text.util
 
com.twitter.common.thrift - package com.twitter.common.thrift
 
com.twitter.common.thrift.callers - package com.twitter.common.thrift.callers
 
com.twitter.common.thrift.monitoring - package com.twitter.common.thrift.monitoring
 
com.twitter.common.thrift.testing - package com.twitter.common.thrift.testing
 
com.twitter.common.thrift.text - package com.twitter.common.thrift.text
 
com.twitter.common.tools - package com.twitter.common.tools
 
com.twitter.common.util - package com.twitter.common.util
 
com.twitter.common.util.caching - package com.twitter.common.util.caching
 
com.twitter.common.util.concurrent - package com.twitter.common.util.concurrent
 
com.twitter.common.util.logging - package com.twitter.common.util.logging
 
com.twitter.common.util.testing - package com.twitter.common.util.testing
 
com.twitter.common.zookeeper - package com.twitter.common.zookeeper
 
com.twitter.common.zookeeper.guice - package com.twitter.common.zookeeper.guice
 
com.twitter.common.zookeeper.testing - package com.twitter.common.zookeeper.testing
 
combine(Closure<T>...) - Static method in class com.twitter.common.base.Closures
Varargs equivalent of Closures.combine(Iterable).
combine(Iterable<Closure<T>>) - Static method in class com.twitter.common.base.Closures
Combines multiple closures into a single closure, whose calls are replicated sequentially in the order that they were provided.
Command - Interface in com.twitter.common.base
A command that does not throw any checked exceptions.
CommandExecutor - Interface in com.twitter.common.util
Asynchronous executor of enqueued tasks in a rate limited manner.
Commands - Class in com.twitter.common.base
Utility functions for working with commands.
COMPACT_PROTOCOL - Static variable in class com.twitter.common.io.ThriftCodec
 
COMPACT_PROTOCOL - Static variable in class com.twitter.common.thrift.ThriftServer
 
compareTo(Amount<T, U>) - Method in class com.twitter.common.quantity.Amount
 
compareTo(TestThriftTypes.Struct) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
CompatibilityCodec<T> - Class in com.twitter.common.io
A codec that composes two codecs: a primary and a compatibility codec.
compile(String[]) - Static method in class com.twitter.common.tools.Compiler
Passes through all args to the system java compiler and tracks classes generated for each source file.
Compiler - Class in com.twitter.common.tools
A simple dependency tracking compiler that maps generated classes to the owning sources.
Compiler() - Constructor for class com.twitter.common.tools.Compiler
Should not be used; instead invoke Compiler.main(java.lang.String[]) directly.
compose(Iterable<ExceptionalFunction<T, T, E>>) - Static method in class com.twitter.common.base.ExceptionalFunctions
Returns an ExceptionalFunction that is a composition of multiple ExceptionalFunctions.
compose(ExceptionalFunction<T, T, E>, ExceptionalFunction<T, T, E>...) - Static method in class com.twitter.common.base.ExceptionalFunctions
Returns a List of ExceptionalFunctions from variable number of ExceptionalFunctions.
Config - Class in com.twitter.common.thrift
Represents the configuration for a thrift call.
Config.AbstractBuilder<T extends Config.AbstractBuilder> - Class in com.twitter.common.thrift
 
Config.Builder - Class in com.twitter.common.thrift
 
Configuration - Class in com.twitter.common.args.apt
Loads and stores @CmdLine configuration data.
Configuration.ArgInfo - Class in com.twitter.common.args.apt
 
Configuration.ArgInfo(String, String) - Constructor for class com.twitter.common.args.apt.Configuration.ArgInfo
 
Configuration.ConfigurationException - Exception in com.twitter.common.args.apt
Indicates a problem reading stored @CmdLine arg configuration data.
Configuration.ConfigurationException(String, Object...) - Constructor for exception com.twitter.common.args.apt.Configuration.ConfigurationException
 
Configuration.ConfigurationException(Throwable) - Constructor for exception com.twitter.common.args.apt.Configuration.ConfigurationException
 
Configuration.ParserInfo - Class in com.twitter.common.args.apt
 
Configuration.ParserInfo(String, String) - Constructor for class com.twitter.common.args.apt.Configuration.ParserInfo
 
Configuration.VerifierInfo - Class in com.twitter.common.args.apt
 
Configuration.VerifierInfo(String, String, String) - Constructor for class com.twitter.common.args.apt.Configuration.VerifierInfo
 
configure() - Method in class com.twitter.common.application.modules.AppLauncherModule
 
configure() - Method in class com.twitter.common.application.modules.HttpModule
 
configure() - Method in class com.twitter.common.application.modules.LifecycleModule
 
configure() - Method in class com.twitter.common.application.modules.LogModule
 
configure() - Method in class com.twitter.common.application.modules.StatsExportModule
 
configure() - Method in class com.twitter.common.application.modules.StatsModule
 
configure() - Method in class com.twitter.common.application.modules.ThriftModule
 
configure() - Method in class com.twitter.common.inject.ProviderMethodModule
Does no binding; subclasses should implement provider methods.
configure() - Method in class com.twitter.common.zookeeper.guice.ServerSetModule
 
connected(K, long) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancer
Signals the load balancer that a connection was made.
connected(K, long) - Method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
 
connected(K) - Method in interface com.twitter.common.net.monitoring.ConnectionMonitor
Instructs the monitor that a connection was established.
connected(K) - Method in class com.twitter.common.net.monitoring.TrafficMonitor
 
connectFailed(K, LoadBalancingStrategy.ConnectionResult) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancer
Signals the load balancer that a connection was attempted, but failed.
connectFailed(K, LoadBalancingStrategy.ConnectionResult) - Method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
 
Connection<T,E> - Interface in com.twitter.common.net.pool
An interface to a connection resource that may become invalid.
ConnectionFactory<S extends Connection<?,?>> - Interface in com.twitter.common.net.pool
A factory for connections that also dictates policy for the size of the connection population.
ConnectionMonitor<K> - Interface in com.twitter.common.net.monitoring
Monitors active connections between two hosts..
ConnectionPool<S extends Connection<?,?>> - Class in com.twitter.common.net.pool
A generic connection pool that delegates growth policy to a ConnectionFactory and connection choice to a supplied strategy.
ConnectionPool(ConnectionFactory<S>) - Constructor for class com.twitter.common.net.pool.ConnectionPool
Creates a connection pool with a connection picker that selects the first item in the set of available connections, exporting statistics to stats provider Stats.STATS_PROVIDER.
ConnectionPool(ConnectionFactory<S>, StatsProvider) - Constructor for class com.twitter.common.net.pool.ConnectionPool
Creates a connection pool with a connection picker that selects the first item in the set of available connections and uses the supplied StatsProvider to register stats with.
connectionReturned(S) - Method in class com.twitter.common.net.loadbalancing.LeastConnectedStrategy
 
connectionReturned(K) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancingStrategy
Offers information about a connection that was returned.
connectionReturned(S) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategy
 
connectionReturned(S) - Method in class com.twitter.common.net.loadbalancing.SubsetStrategy
 
connectionReturned(K) - Method in class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
consumeForever() - Method in class com.twitter.common.util.KestrelConsumer
 
contains(String) - Method in interface com.twitter.common.net.Environment
Checks if a given hostname is a valid hostname for a host in this network environment; does not guarantee that the host exists in this network environment.
ContentionPrinter - Class in com.twitter.common.net.http.handlers
HTTP request handler that prints information about blocked threads.
ContentionPrinter() - Constructor for class com.twitter.common.net.http.handlers.ContentionPrinter
 
control - Variable in class com.twitter.common.testing.EasyMockTest
 
convertToSockets(Iterable<String>) - Static method in class com.twitter.common.net.InetSocketAddressHelper
Converts backend definitions (in host:port form) a set of socket addresses.
copyTo(AttributeImpl) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
Passing a CharSequenceTermAttribute instead of a TermAttribute will obviate the construction of an extra String.
copyTo(AttributeImpl) - Method in class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
copyTo(AttributeImpl) - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
copyTo(AttributeImpl) - Method in class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
copyValues() - Method in class com.twitter.common.util.caching.LRUCache
 
CounterMap<K> - Class in com.twitter.common.stats
A map from a key type to integers.
CounterMap() - Constructor for class com.twitter.common.stats.CounterMap
 
CounterMapWithTopKey<K> - Class in com.twitter.common.stats
Same as CounterMap, but also keeps track of the item with the highest count.
CounterMapWithTopKey() - Constructor for class com.twitter.common.stats.CounterMapWithTopKey
 
create() - Static method in class com.twitter.common.args.Arg
Convenience factory method to create an arg that has no default value.
create(T) - Static method in class com.twitter.common.args.Arg
Convenience factory method to create an arg with a default value.
create(Codec<T>, Codec<T>, int, Predicate<byte[]>) - Static method in class com.twitter.common.io.CompatibilityCodec
Creates a new compatibility codec instance.
create(Class<T>) - Static method in class com.twitter.common.io.JsonCodec
Creates a new JSON codec instance for objects of the specified class.
create(Class<T>, Gson) - Static method in class com.twitter.common.io.JsonCodec
Creates a new JSON codec instance for objects of the specified class and the specified Gson instance.
create(Class<T>, Function<TTransport, TProtocol>) - Static method in class com.twitter.common.io.ThriftCodec
 
create(LoadBalancingStrategy<K>) - Static method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
Convenience method to create a new load balancer.
create(LoadBalancingStrategy<K>, TrafficMonitor<K>) - Static method in class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
create(String) - Static method in class com.twitter.common.net.monitoring.TrafficMonitor
Convenience method to create a typed traffic monitor.
create(Amount<Long, Time>) - Method in interface com.twitter.common.net.pool.ConnectionFactory
Attempts to create a new connection within the given timeout and subject to this factory's connection population size policy.
create(Class<T>) - Static method in class com.twitter.common.reflect.TypeToken
Creates a type token for the given raw class.
create(Type) - Static method in class com.twitter.common.reflect.TypeToken
Creates a type token wrapping the given type.
create() - Method in class com.twitter.common.thrift.Config.Builder
 
create() - Method in class com.twitter.common.thrift.Thrift.ClientBuilder
Creates a new client using the built up configuration changes.
create() - Method in class com.twitter.common.thrift.Thrift
Creates a new client using the default configuration specified for this Thrift instance.
create(Amount<Long, Time>) - Method in class com.twitter.common.thrift.ThriftConnectionFactory
FIXME: shouldn't this throw TimeoutException instead of returning null in the timeout cases as per the ConnectionFactory.create javadoc?
create(Class<T>) - Static method in class com.twitter.common.thrift.ThriftFactory
 
create(ZooKeeperClient, String, Function<byte[], V>) - Static method in class com.twitter.common.zookeeper.ZooKeeperMap
Returns an initialized ZooKeeperMap.
create(ZooKeeperClient, String, Function<byte[], T>) - Static method in class com.twitter.common.zookeeper.ZooKeeperNode
Returns an initialized ZooKeeperNode.
create(ZooKeeperClient, String, Function<byte[], T>, Closure<T>) - Static method in class com.twitter.common.zookeeper.ZooKeeperNode
Like the above, but optionally takes in a Closure that will get notified whenever the data is updated from the remote node.
createCapture() - Static method in class com.twitter.common.testing.EasyMockTest
A type-inferring convenience method for creating new captures.
createClient() - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Returns a new unauthenticated zookeeper client connected to the in-process zookeeper server with the default session timeout.
createClient(ZooKeeperClient.Credentials) - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Returns a new authenticated zookeeper client connected to the in-process zookeeper server with the default session timeout.
createClient(Amount<Integer, Time>) - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Returns a new unauthenticated zookeeper client connected to the in-process zookeeper server with a custom sessionTimeout.
createClient(Amount<Integer, Time>, ZooKeeperClient.Credentials) - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Returns a new authenticated zookeeper client connected to the in-process zookeeper server with a custom sessionTimeout.
createDefaultCodec() - Static method in class com.twitter.common.zookeeper.ServerSetImpl
Returns a codec for ServiceInstance objects that uses either the Thrift or the JSON encoding, depending on whether the command line argument serverset_json_encofing is set to true, and can decode both Thrift and JSON encodings.
createDir() - Method in class com.twitter.common.io.FileUtils.Temporary
Returns a new empty temporary directory.
createFile() - Method in class com.twitter.common.io.FileUtils.Temporary
Creates a new empty temporary file.
createFile(String) - Method in class com.twitter.common.io.FileUtils.Temporary
Creates a new empty temporary file with the given filename suffix.
createFrom(CharSequence, TokenStream) - Static method in class com.twitter.common.text.token.TokenizedCharSequence
 
createFromTokenGroupsIn(TokenStream) - Static method in class com.twitter.common.text.token.TokenizedCharSequence
 
createJsonCodec() - Static method in class com.twitter.common.zookeeper.ServerSetImpl
Creates a codec for ServiceInstance objects that uses JSON encoding, and can decode both Thrift and JSON encodings.
createMock() - Method in class com.twitter.common.testing.EasyMockTest.Clazz
 
createMock(IMocksControl) - Method in class com.twitter.common.testing.EasyMockTest.Clazz
 
createMock(Class<T>) - Method in class com.twitter.common.testing.EasyMockTest
Creates an EasyMock mock with this test's control.
createMock(EasyMockTest.Clazz<T>) - Method in class com.twitter.common.testing.EasyMockTest
Creates an EasyMock mock with this test's control.
createTempDir() - Static method in class com.twitter.common.io.FileUtils
Returns a new empty temporary directory.
createThriftCodec() - Static method in class com.twitter.common.zookeeper.ServerSetImpl
Creates a codec for ServiceInstance objects that uses Thrift binary encoding, and can decode both Thrift and JSON encodings.
createZkClient() - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Returns a new unauthenticated zookeeper client connected to the in-process zookeeper server with the default session timeout.
createZkClient(ZooKeeperClient.Credentials) - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Returns a new authenticated zookeeper client connected to the in-process zookeeper server with the default session timeout.
createZkClient(String, String) - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Returns a new authenticated zookeeper client connected to the in-process zookeeper server with the default session timeout.
createZkClient(Amount<Integer, Time>) - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Returns a new unauthenticated zookeeper client connected to the in-process zookeeper server with a custom sessionTimeout.
createZkClient(Amount<Integer, Time>, ZooKeeperClient.Credentials) - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Returns a new authenticated zookeeper client connected to the in-process zookeeper server with a custom sessionTimeout.
credentials(String, byte[]) - Static method in class com.twitter.common.zookeeper.ZooKeeperClient
Creates a set of credentials for the given authentication scheme.
curry(ExceptionalFunction<S, T, E>, S) - Static method in class com.twitter.common.base.ExceptionalFunctions
Returns an ExceptionalSupplier/Callable object that will return the result of function applied to argument.

D

Data - Enum in com.twitter.common.quantity
Provides a unit to allow conversions and unambiguous passing around of data Amounts.
DateParser - Class in com.twitter.common.args.parsers
Date parser.
DateParser() - Constructor for class com.twitter.common.args.parsers.DateParser
 
DateUtils - Class in com.twitter.common.util
Utilities for working with java Dates.
dcName() - Method in interface com.twitter.common.net.Environment
Returns the name of this network environment's datacenter.
DeadlineCaller - Class in com.twitter.common.thrift.callers
A caller that imposes a time deadline on the underlying caller.
DeadlineCaller(Caller, boolean, ExecutorService, Amount<Long, Time>) - Constructor for class com.twitter.common.thrift.callers.DeadlineCaller
Creates a new deadline caller.
DebugCaller - Class in com.twitter.common.thrift.callers
A caller that reports debugging information about calls.
DebugCaller(Caller, boolean) - Constructor for class com.twitter.common.thrift.callers.DebugCaller
Creates a new debug caller.
decode(CachedData) - Method in class com.twitter.common.memcached.ThriftTranscoder
 
deepCopy() - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
DEFAULT_ASYNC_CONFIG - Static variable in class com.twitter.common.thrift.Thrift
The default thrift call configuration used for an async client if none is specified.
DEFAULT_CONFIG - Static variable in class com.twitter.common.thrift.Thrift
The default thrift call configuration used if none is specified.
DEFAULT_PART_OF_SPEECH - Static variable in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
DEFAULT_SESSION_TIMEOUT - Static variable in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
The default session timeout for clients created by servers constructed with ZooKeeperTestServer.ZooKeeperTestServer(int, ShutdownRegistry).
DEFAULT_ZK_SESSION_TIMEOUT - Static variable in class com.twitter.common.zookeeper.ZooKeeperUtils
An appropriate default session timeout for Twitter ZooKeeper clusters.
DefaultProvider<T> - Class in com.twitter.common.inject
Provider that has a default value which can be overridden.
DefaultProvider(Key<T>, Key<T>) - Constructor for class com.twitter.common.inject.DefaultProvider
 
DefaultQuitHandler - Class in com.twitter.common.application.http
 
DefaultQuitHandler(Lifecycle) - Constructor for class com.twitter.common.application.http.DefaultQuitHandler
 
DefaultTextTokenizer - Class in com.twitter.common.text
Default implementation of a tokenizer for processing tweets.
DefaultTextTokenizer.Builder - Class in com.twitter.common.text
Builder for DefaultTextTokenizer
DefaultTextTokenizer.Builder() - Constructor for class com.twitter.common.text.DefaultTextTokenizer.Builder
 
delegate - Variable in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
delegate() - Method in class com.twitter.common.zookeeper.ZooKeeperMap
 
delete(K) - Method in interface com.twitter.common.util.caching.Cache
Deletes an entry from the cache.
delete(K) - Method in class com.twitter.common.util.caching.LRUCache
 
DEPENDENCYFILE_FLAG - Static variable in class com.twitter.common.tools.Compiler
 
deserialize(InputStream) - Method in interface com.twitter.common.io.Codec
Reads an item from the source stream that was written by Codec.serialize(Object, java.io.OutputStream).
deserialize(InputStream) - Method in class com.twitter.common.io.CompatibilityCodec
 
deserialize(InputStream) - Method in class com.twitter.common.io.JsonCodec
 
deserialize(InputStream) - Method in class com.twitter.common.io.ThriftCodec
 
deserialize(TokenStreamSerializer.AttributeInputStream, CharSequence) - Method in class com.twitter.common.text.util.CharSequenceTermAttributeSerializer
 
deserialize(TokenStreamSerializer.AttributeInputStream, CharSequence) - Method in class com.twitter.common.text.util.PositionIncrementAttributeSerializer
 
deserialize(TokenStreamSerializer.AttributeInputStream, CharSequence) - Method in interface com.twitter.common.text.util.TokenStreamSerializer.AttributeSerializer
Deserializes a single attribute.
deserialize(byte[], CharSequence) - Method in class com.twitter.common.text.util.TokenStreamSerializer
Deserializes the previously serialized TokenStream using the provided AttributeSerializer(s).
deserialize(TokenStreamSerializer.AttributeInputStream, CharSequence) - Method in class com.twitter.common.text.util.TokenTypeAttributeSerializer
 
destroy(S) - Method in interface com.twitter.common.net.pool.ConnectionFactory
Destroys a connection.
destroy(Connection<TTransport, InetSocketAddress>) - Method in class com.twitter.common.thrift.ThriftConnectionFactory
 
detector() - Method in class com.twitter.common.text.detector.PunctuationDetector.AbstractBuilder
 
detector() - Method in class com.twitter.common.text.detector.RegexDetector.AbstractBuilder
 
digestCredentials(String, String) - Static method in class com.twitter.common.zookeeper.ZooKeeperClient
Creates a set of credentials for the zoo keeper digest authentication mechanism.
disableStats() - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Disables stats collection on the client (enabled by default).
displayPage(HttpServletRequest, HttpServletResponse, boolean) - Method in class com.twitter.common.net.http.handlers.LogConfig
 
DistributedLock - Interface in com.twitter.common.zookeeper
DistributedLock
DistributedLock.LockingException - Exception in com.twitter.common.zookeeper
 
DistributedLock.LockingException(String, Exception) - Constructor for exception com.twitter.common.zookeeper.DistributedLock.LockingException
 
DistributedLock.LockingException(String) - Constructor for exception com.twitter.common.zookeeper.DistributedLock.LockingException
 
DistributedLockImpl - Class in com.twitter.common.zookeeper
Distributed locking via ZooKeeper.
DistributedLockImpl(ZooKeeperClient, String) - Constructor for class com.twitter.common.zookeeper.DistributedLockImpl
Equivalent to DistributedLockImpl.DistributedLockImpl(ZooKeeperClient, String, Iterable) with a default wide open acl (ZooDefs.Ids#OPEN_ACL_UNSAFE).
DistributedLockImpl(ZooKeeperClient, String, Iterable<ACL>) - Constructor for class com.twitter.common.zookeeper.DistributedLockImpl
Creates a distributed lock using the given zkClient to coordinate locking.
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.AbortHandler
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.AssetHandler
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.HealthHandler
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.LogConfig
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.LogPrinter
Fetches the chrome for the page.
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.QuitHandler
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.TextResponseHandler
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.ThriftServlet
 
doGet(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.VarsJsonHandler
 
doInState(T, ExceptionalSupplier<O, E>) - Method in class com.twitter.common.util.StateMachine
Executes the supplied work if the state machine is in the expectedState, postponing any concurrently requested StateMachine.transition(Object) until after the execution of the work.
doParse(String) - Method in class com.twitter.common.args.parsers.BooleanParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.CharacterParser
 
doParse(ParserOracle, String, List<Type>) - Method in class com.twitter.common.args.parsers.ClassParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.DateParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.FileParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.InetSocketAddressParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.NonParameterizedTypeParser
Performs the parsing of the raw string.
doParse(String) - Method in class com.twitter.common.args.parsers.NumberParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.RangeParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.StringParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.UnitParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.URIParser
 
doParse(String) - Method in class com.twitter.common.args.parsers.URLParser
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.AbortHandler
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.LogConfig
 
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.LogPrinter
A POST request is made from javascript, to request the contents of a log file.
doPost(HttpServletRequest, HttpServletResponse) - Method in class com.twitter.common.net.http.handlers.QuitHandler
 
doSample() - Method in class com.twitter.common.stats.MovingAverage
 
doSample() - Method in class com.twitter.common.stats.MovingWindowDelta
 
doSample() - Method in class com.twitter.common.stats.Rate
 
doSample() - Method in class com.twitter.common.stats.Ratio
 
doSample() - Method in class com.twitter.common.stats.SampledStat
 
doStart(ThriftServer.ServerSetup) - Method in class com.twitter.common.thrift.ThriftServer
 
DotContractedTokenCombiner - Class in com.twitter.common.text.combiner
Combines contracted word followed by dot/period (e.g., Mr.
DotContractedTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.DotContractedTokenCombiner
 
doTimed(SlidingStats, ExceptionalCommand<E>) - Static method in class com.twitter.common.util.Timer
Times the block of code encapsulated by timedWork recoding the result in stat.
doTimed(SlidingStats, ExceptionalSupplier<T, E>) - Static method in class com.twitter.common.util.Timer
Times the block of code encapsulated by timedWork recoding the result in stat.
DoubleParser - Class in com.twitter.common.args.parsers
Double parser.
DoubleParser() - Constructor for class com.twitter.common.args.parsers.DoubleParser
 
doUntilResult(ExceptionalSupplier<T, E>) - Method in class com.twitter.common.util.BackoffHelper
Executes the given task using the configured backoff strategy until the task succeeds as indicated by returning a non-null value.
doUntilSuccess(ExceptionalSupplier<Boolean, E>) - Method in class com.twitter.common.util.BackoffHelper
Executes the given task using the configured backoff strategy until the task succeeds as indicated by returning true.
doWithDir(ExceptionalClosure<File, E>) - Method in class com.twitter.common.io.FileUtils.Temporary
Creates a new temporary directory and executes the unit of work against it ensuring the directory and its contents are removed after the work completes normally or abnormally.
doWithDir(ExceptionalFunction<File, T, E>) - Method in class com.twitter.common.io.FileUtils.Temporary
Creates a new temporary directory and executes the unit of work against it ensuring the directory and its contents are removed after the work completes normally or abnormally.
doWithFile(ExceptionalClosure<File, E>) - Method in class com.twitter.common.io.FileUtils.Temporary
Creates a new temporary file and executes the unit of work against it ensuring the file is removed after the work completes normally or abnormally.
doWithFile(ExceptionalFunction<File, T, E>) - Method in class com.twitter.common.io.FileUtils.Temporary
Creates a new temporary file and executes the unit of work against it ensuring the file is removed after the work completes normally or abnormally.
duplicate() - Method in class com.twitter.common.text.token.TokenStreamDuplicator
Returns a new TokenStream which provides the same output as the original TokenStream.
DurationParser - Class in com.twitter.common.args.parsers
Utility class for parsing durations of the form "1d23h59m59s" (as well as subvariants, i.e.
DurationParser() - Constructor for class com.twitter.common.args.parsers.DurationParser
 
DynamicHostSet<T> - Interface in com.twitter.common.net.pool
A host set that can be monitored for changes.
DynamicHostSet.HostChangeMonitor<T> - Interface in com.twitter.common.net.pool
An interface to an object that is interested in receiving notification whenever the host set changes.
DynamicHostSet.MonitorException - Exception in com.twitter.common.net.pool
 
DynamicHostSet.MonitorException(String) - Constructor for exception com.twitter.common.net.pool.DynamicHostSet.MonitorException
 
DynamicHostSet.MonitorException(String, Throwable) - Constructor for exception com.twitter.common.net.pool.DynamicHostSet.MonitorException
 
DynamicHostSetUtil - Class in com.twitter.common.net.pool
Util Class for dealing with dynamic sets of hosts.
DynamicHostSetUtil() - Constructor for class com.twitter.common.net.pool.DynamicHostSetUtil
 
DynamicPool<H,T,E> - Class in com.twitter.common.net.pool
An ObjectPool that maintains a set of connections for a set of service endpoints defined by a ServerSet.
DynamicPool(DynamicHostSet<H>, Function<E, ObjectPool<Connection<T, E>>>, LoadBalancer<E>, Closure<Collection<E>>, Amount<Long, Time>, Function<H, E>, Predicate<H>) - Constructor for class com.twitter.common.net.pool.DynamicPool
Creates a new ServerSetConnectionPool and blocks on an initial read and constructions of pools for the given serverSet.

E

EasyMockTest - Class in com.twitter.common.testing
A baseclass for tests that use EasyMock.
EasyMockTest() - Constructor for class com.twitter.common.testing.EasyMockTest
 
EasyMockTest.Clazz<T> - Class in com.twitter.common.testing
A class meant to be sub-classed in order to capture a generic type literal value.
EasyMockTest.Clazz() - Constructor for class com.twitter.common.testing.EasyMockTest.Clazz
 
Elapsed - Class in com.twitter.common.stats
A stat that exports the amount of time since it was last reset.
Elapsed(String) - Constructor for class com.twitter.common.stats.Elapsed
Calls Elapsed.Elapsed(String, Time) using a default granularity of nanoseconds.
Elapsed(String, Time) - Constructor for class com.twitter.common.stats.Elapsed
Creates and exports a new stat that maintains the difference between the system clock time and the time since it was last reset.
EMOTICON_REGEX_PATTERN - Static variable in class com.twitter.common.text.extractor.EmoticonExtractor
 
EmoticonExtractor - Class in com.twitter.common.text.extractor
Extracts emoticons (e.g., :), :-( ) from a text.
EmoticonExtractor() - Constructor for class com.twitter.common.text.extractor.EmoticonExtractor
Default constructor.
EmoticonExtractor.Polarity - Enum in com.twitter.common.text.extractor
The term of art for referring to {positive, negative} sentiment is polarity.
EmoticonTokenCombiner - Class in com.twitter.common.text.combiner
Combines an emoticon (e.g., :) :-P ) back to a single token.
EmoticonTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.EmoticonTokenCombiner
 
enableStats() - Method in class com.twitter.common.thrift.Config
Returns true if the client should track request statistics.
encode(T) - Method in class com.twitter.common.memcached.ThriftTranscoder
 
end() - Method in class com.twitter.common.stats.PipelineStats.Snapshot
Stops the pipeline, recording the interval for the last registered stage.
endOn(Predicate<T>) - Method in class com.twitter.common.io.SerializedFileStreamer
 
endOn(Predicate<T>) - Method in interface com.twitter.common.io.Streamer
Returns a Streamer that will process the same stream as this streamer, but will stop processing when encountering the first item for which cond is true.
ensurePath(ZooKeeperClient, List<ACL>, String) - Static method in class com.twitter.common.zookeeper.ZooKeeperUtils
Ensures the given path exists in the ZK cluster accessed by zkClient.
Entropy<T> - Class in com.twitter.common.stats
Calculate the entropy of a discrete distribution of .
Entropy(Iterable<T>) - Constructor for class com.twitter.common.stats.Entropy
 
entropy() - Method in class com.twitter.common.stats.Entropy
 
EnumParser<T extends Enum<T>> - Class in com.twitter.common.args.parsers
An Enum parser that matches enum values via Enum.valueOf(Class, String).
EnumParser() - Constructor for class com.twitter.common.args.parsers.EnumParser
 
Environment - Interface in com.twitter.common.net
Represents a network environment at the granularity of a datacenter.
equals(Object) - Method in class com.twitter.common.args.apt.Configuration.ArgInfo
 
equals(Object) - Method in class com.twitter.common.args.apt.Configuration.ParserInfo
 
equals(Object) - Method in class com.twitter.common.args.apt.Configuration.VerifierInfo
 
equals(Object) - Method in class com.twitter.common.collections.Pair
 
equals(Object) - Method in class com.twitter.common.quantity.Amount
 
equals(Object) - Method in class com.twitter.common.reflect.TypeToken
Implements value-equality over the this type token's captured type.
equals(Object) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
equals(Object) - Method in class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
equals(Object) - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
equals(Object) - Method in class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
equals(Object) - Method in class com.twitter.common.text.token.TokenizedCharSequence
 
equals(Object) - Method in class com.twitter.common.util.StateMachine.Transition
 
Events - Class in com.twitter.common.metrics
Provides gauge composition to track per-event statistics, where a variable value is associated with each event.
Events(String, String, MetricRegistry) - Constructor for class com.twitter.common.metrics.Events
Creates a new event composition using custom event and value metric names.
EVERYONE_READ_CREATOR_ALL - Static variable in class com.twitter.common.zookeeper.ZooKeeperUtils
An ACL that gives all permissions to node creators and read permissions only to everyone else.
evictionListener(Closure<Pair<K, V>>) - Method in class com.twitter.common.util.caching.LRUCache.Builder
 
ExceptionalClosure<T,E extends Exception> - Interface in com.twitter.common.base
An interface that captures a unit of work against an item.
ExceptionalCommand<E extends Exception> - Interface in com.twitter.common.base
An interface that captures a unit of work.
ExceptionalFunction<S,T,E extends Exception> - Interface in com.twitter.common.base
An interface that captures a unit of work against an item.
ExceptionalFunctions - Class in com.twitter.common.base
Utility functions for working with exceptional functions.
ExceptionalSupplier<T,E extends Exception> - Interface in com.twitter.common.base
An interface that captures a source of data.
ExceptionTransporter<E extends Exception> - Class in com.twitter.common.base
A utility for transporting checked exceptions across boundaries that do not allow for checked exception propagation.
ExceptionTransporter() - Constructor for class com.twitter.common.base.ExceptionTransporter
 
execute() - Method in class com.twitter.common.application.modules.LogModule.ExportLogDir
 
execute() - Method in class com.twitter.common.application.modules.StatsExportModule.StartCuckooExporter
 
execute() - Method in class com.twitter.common.application.modules.StatsModule.StartStatPoller
 
execute() - Method in class com.twitter.common.application.ShutdownRegistry.ShutdownRegistryImpl
Executes an application shutdown stage by executing all registered actions.
execute() - Method in class com.twitter.common.application.StartupRegistry
 
execute(T) - Method in interface com.twitter.common.base.ExceptionalClosure
Performs a unit of work on item, possibly throwing E in the process.
execute() - Method in interface com.twitter.common.base.ExceptionalCommand
Performs a unit of work, possibly throwing E in the process.
execute(String, ExceptionalCommand, Class, int, Amount<Long, Time>) - Method in interface com.twitter.common.util.CommandExecutor
Enqueue a task to be executed with retry semantics defined.
execute() - Method in class com.twitter.common.util.concurrent.ExecutorServiceShutdown
 
execute(Runnable) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
execute(String, ExceptionalCommand, Class, int, Amount<Long, Time>) - Method in class com.twitter.common.util.RateLimitedCommandExecutor
 
executor - Variable in class com.twitter.common.util.concurrent.RetryingFutureTask
 
ExecutorServiceShutdown - Class in com.twitter.common.util.concurrent
An implementation of the graceful shutdown sequence recommended by ExecutorService.
ExecutorServiceShutdown(ExecutorService, Amount<Long, Time>) - Constructor for class com.twitter.common.util.concurrent.ExecutorServiceShutdown
Creates a new ExecutorServiceShutdown command that will try to gracefully shut down the given executor when executed.
Exists - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates an entity must exist.
ExistsFileVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a file exists.
ExistsFileVerifier() - Constructor for class com.twitter.common.args.constraints.ExistsFileVerifier
 
expireClientSession(ZooKeeperClient) - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Expires the active session for the given client.
expireSession(ZooKeeperClient) - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Expires the active session for the given client.
export() - Static method in class com.twitter.common.stats.JvmStats
Exports stats related to the JVM and runtime environment.
export(Stat<T>) - Static method in class com.twitter.common.stats.Stats
Exports a stat for tracking.
export(String, AtomicInteger) - Static method in class com.twitter.common.stats.Stats
Exports an AtomicInteger, which will be included in time series tracking.
export(String, AtomicLong) - Static method in class com.twitter.common.stats.Stats
Exports an AtomicLong, which will be included in time series tracking.
exportAll(Iterable<Stat<? extends Number>>) - Static method in class com.twitter.common.stats.Stats
Adds a collection of stats for export.
exportInt(String) - Static method in class com.twitter.common.stats.Stats
Creates and exports an AtomicInteger.
exportLong(String) - Static method in class com.twitter.common.stats.Stats
Creates and exports an AtomicLong.
exportSize(String, Collection<?>) - Static method in class com.twitter.common.stats.Stats
Exports a metric that tracks the size of a collection.
exportSize(String, Map<?, ?>) - Static method in class com.twitter.common.stats.Stats
Exports a metric that tracks the size of a map.
exportSize(String, Cache<?, ?>) - Static method in class com.twitter.common.stats.Stats
Exports a metric that tracks the size of a cache.
exportStatic(Stat<T>) - Static method in class com.twitter.common.stats.Stats
Exports a 'static' statistic, which will not be registered for time series tracking.
exportString(Stat<String>) - Static method in class com.twitter.common.stats.Stats
Exports a string stat.
ExtractorBasedTokenCombiner - Class in com.twitter.common.text.combiner
Combines multiple tokens into a single one if they define an entity identified by an extractor TokenStream.
ExtractorBasedTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
 
extractTypeToken(Type) - Static method in class com.twitter.common.reflect.TypeToken
Extracts the actual type parameter for a singly parameterized type.

F

fail(Throwable) - Method in interface com.twitter.common.thrift.callers.Caller.ResultCapture
Called when the request failed.
FakeClock - Class in com.twitter.common.util.testing
A clock for use in testing with a configurable value for FakeClock.nowMillis().
FakeClock() - Constructor for class com.twitter.common.util.testing.FakeClock
 
fieldForId(int) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
fieldName - Variable in class com.twitter.common.args.apt.Configuration.ArgInfo
 
FileParser - Class in com.twitter.common.args.parsers
File parser.
FileParser() - Constructor for class com.twitter.common.args.parsers.FileParser
 
FileUtils - Class in com.twitter.common.io
Utility methods for working with files and directories.
FileUtils - Class in com.twitter.common.util
Utilities for working with Files
FileUtils() - Constructor for class com.twitter.common.util.FileUtils
 
FileUtils.Temporary - Class in com.twitter.common.io
A utility for creating and working with temporary files and directories.
FileUtils.Temporary(File) - Constructor for class com.twitter.common.io.FileUtils.Temporary
Creates a new temporary utility that creates files and directories rooted at basedir.
filter(Predicate<T>, Closure<T>) - Static method in class com.twitter.common.base.Closures
Applies a filter to a closure, such that the closure will only be called when the filter is satisfied (returns true}.
filter(Predicate<T>) - Method in class com.twitter.common.io.SerializedFileStreamer
 
filter(Predicate<T>) - Method in interface com.twitter.common.io.Streamer
Returns a Streamer that will process the same stream as this streamer, but with any items failing the filter to be omitted from processing.
filterLines(String, String) - Static method in class com.twitter.common.net.http.handlers.LogPrinter
 
first() - Static method in class com.twitter.common.collections.Pair
Creates a function that can extract the first item of pairs of the given type parametrization.
FloatParser - Class in com.twitter.common.args.parsers
Float parser.
FloatParser() - Constructor for class com.twitter.common.args.parsers.FloatParser
 
flush() - Method in class com.twitter.common.logging.BufferedLog
 
flush() - Method in interface com.twitter.common.logging.Log
Flushes the log, attempting to purge any state that is only stored locally.
flush() - Method in class com.twitter.common.logging.ScribeLog
 
flush() - Static method in class com.twitter.common.stats.Stats
 
forceDeletePath(File) - Static method in class com.twitter.common.util.FileUtils
 
forId(int) - Static method in class com.twitter.common.thrift.testing.TestThriftTypes.Field
 
ForwardingExecutorService<T extends ExecutorService> - Class in com.twitter.common.util.concurrent
An executor service that forwards all calls to another executor service.
ForwardingExecutorService(T) - Constructor for class com.twitter.common.util.concurrent.ForwardingExecutorService
 
from(T) - Static method in class com.twitter.common.util.StateMachine.Rule
Creates a new transition rule.
from(T...) - Static method in class com.twitter.common.util.StateMachine.Transition
Creates a predicate that returns true for transitions from the given states.
fromSystemRandom(Random) - Static method in class com.twitter.common.util.Random.Util
Adapts a java.util.Random into a Random.
FROWNY_REGEX_PATTERN - Static variable in class com.twitter.common.text.extractor.EmoticonExtractor
 
fullyQualify(String) - Method in interface com.twitter.common.net.Environment
Creates a fully qualified hostname for a given unqualified hostname in the network environment's datacenter.
Function<S,T> - Interface in com.twitter.common.base
A convenience typedef that also ties into google's Function.

G

Gauge<T extends Number> - Interface in com.twitter.common.metrics
A metric that has a name and a variable number value.
Gauges - Class in com.twitter.common.metrics
Convenience functions for working with Gauges.
generateDataTable(Query, HttpServletRequest) - Method in class com.twitter.common.net.http.handlers.TimeSeriesDataSource
 
get() - Method in class com.twitter.common.args.Arg
Gets the value of the argument.
get(Class<?>) - Method in interface com.twitter.common.args.ParserOracle
Gets the parser associated with a class.
get(Class<?>) - Method in class com.twitter.common.args.Parsers
 
get() - Method in class com.twitter.common.base.CachingSupplier
 
get() - Method in interface com.twitter.common.base.ExceptionalSupplier
Supplies an item, possibly throwing E in the process of obtaining the item.
get() - Method in interface com.twitter.common.base.Supplier
 
get() - Method in class com.twitter.common.inject.DefaultProvider
 
get() - Method in interface com.twitter.common.net.pool.Connection
This will always be the same underlying connection for the lifetime of this object.
get() - Method in class com.twitter.common.net.pool.ConnectionPool
 
get(Amount<Long, Time>) - Method in class com.twitter.common.net.pool.ConnectionPool
 
get() - Method in class com.twitter.common.net.pool.DynamicPool
 
get(Amount<Long, Time>) - Method in class com.twitter.common.net.pool.DynamicPool
 
get() - Method in class com.twitter.common.net.pool.MetaPool
 
get(Amount<Long, Time>) - Method in class com.twitter.common.net.pool.MetaPool
 
get() - Method in interface com.twitter.common.net.pool.ObjectPool
Gets a resource potentially blocking for as long as it takes to either create a new one or wait for one to be released.
get(Amount<Long, Time>) - Method in interface com.twitter.common.net.pool.ObjectPool
Gets a resource; timing out if there are none available and it takes longer than specified to create a new one or wait for one to be released.
get(K) - Method in class com.twitter.common.stats.CounterMap
Gets the value associated with a key.
get(String) - Method in interface com.twitter.common.stats.TimeSeriesRepository
Fetches a time series by name.
get(String) - Method in class com.twitter.common.stats.TimeSeriesRepositoryImpl
 
get(boolean, boolean) - Static method in enum com.twitter.common.thrift.ThriftConnectionFactory.TransportType
Async clients implicitly use a framed transport, requiring the server they connect to to do the same.
get() - Method in class com.twitter.common.thrift.TTransportConnection
 
get(K) - Method in interface com.twitter.common.util.caching.Cache
Fetches a value from the cache.
get(K) - Method in class com.twitter.common.util.caching.LRUCache
 
get() - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Returns the current active ZK connection or establishes a new one if none has yet been established or a previous connection was disconnected or had its session time out.
get(Amount<Long, Time>) - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Returns the current active ZK connection or establishes a new one if none has yet been established or a previous connection was disconnected or had its session time out.
get() - Method in class com.twitter.common.zookeeper.ZooKeeperNode
Returns the data corresponding to a byte array in a remote zookeeper node.
GET_ADDRESS - Static variable in class com.twitter.common.thrift.Util
 
GET_NAME - Static variable in class com.twitter.common.stats.NumericStatExporter
 
GET_TYPE_PARAM_CLASS - Static variable in class com.twitter.common.args.TypeUtil
A function to extract the type parameter class from fields.
getAccesses() - Method in class com.twitter.common.util.caching.LRUCache
 
getAddress(TSocket) - Method in class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
getArrayHeaderSize() - Method in interface com.twitter.common.objectsize.ObjectSizeCalculator.MemoryLayoutSpecification
Returns the fixed overhead of an array of any type or length in this JVM.
getAuxiliarySockets() - Method in class com.twitter.common.application.modules.LocalServiceRegistry
Gets the mapping from auxiliary port name to socket.
getAvailableSeries() - Method in interface com.twitter.common.stats.TimeSeriesRepository
Fetches the names of all available time series.
getAvailableSeries() - Method in class com.twitter.common.stats.TimeSeriesRepositoryImpl
 
getBacklog() - Method in class com.twitter.common.logging.BufferedLog
Gets the current number of messages in the local buffer.
getBucketRatio(int) - Method in class com.twitter.common.stats.PrintableHistogram
 
getCachingProxy() - Method in class com.twitter.common.util.caching.CachingMethodProxy
 
getCapabilities() - Method in class com.twitter.common.net.http.handlers.TimeSeriesDataSource
 
getCharSequence() - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Provides access to the encapsulated CharSequence.
getCharSequence() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
getChecksum() - Method in class com.twitter.common.net.http.handlers.AssetHandler.StaticAsset
 
getConfig() - Method in class com.twitter.common.thrift.Config.AbstractBuilder
 
getConnectionCount() - Method in class com.twitter.common.net.monitoring.TrafficMonitor.TrafficInfo
 
getConnectTimeout() - Method in class com.twitter.common.thrift.Config
Returns the maximum time to wait for a connection to be established.
getContentType() - Method in class com.twitter.common.net.http.handlers.AssetHandler.StaticAsset
 
getDefaultTokens() - Method in class com.twitter.common.checkstyle.IllegalThrowsCheck
 
getDefaultTokenStream() - Method in class com.twitter.common.text.TextTokenizer
Returns TokenStream to tokenize a text.
getDomain(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the domain from url.
getDomainChecked(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the domain from uri, and throws an exception if it's not a valid uri.
getDomainLevels(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the domain levels for a host.
getEndpoint() - Method in interface com.twitter.common.net.pool.Connection
 
getEndpoint() - Method in class com.twitter.common.thrift.TTransportConnection
 
getEndState() - Method in class com.twitter.common.net.UrlResolver.ResolvedUrl
 
getEndUrl() - Method in class com.twitter.common.net.UrlResolver.ResolvedUrl
Returns the last URL resolved following a redirect chain, or null if the startUrl is a landing URL.
getErrorCount() - Method in class com.twitter.common.stats.RequestStats
 
getErrorCounter() - Method in class com.twitter.common.stats.RequestStats
 
getEventCounter() - Method in class com.twitter.common.stats.SlidingStats
 
getFieldName() - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Field
 
getFieldValue(TestThriftTypes.Field) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
getFirst() - Method in class com.twitter.common.collections.Pair
 
getFrom() - Method in class com.twitter.common.util.StateMachine.Transition
 
getGroupPath() - Method in interface com.twitter.common.zookeeper.Group.Membership
Returns the persistent ZooKeeper path that represents this group.
getGzipData() - Method in class com.twitter.common.net.http.handlers.AssetHandler.StaticAsset
 
getHitRate() - Method in class com.twitter.common.util.caching.LRUCache
 
getInjector() - Method in class com.twitter.common.net.http.GuiceServletConfig
 
getInputStream() - Method in class com.twitter.common.text.token.TokenProcessor
 
getInstanceOf(Class<T>) - Method in class com.twitter.common.text.token.TokenProcessor
 
getInstanceOf(Class<T>) - Method in class com.twitter.common.text.token.TokenStream
Searches and returns an instance of a specified class in this TokenStream chain.
getIntermediateUrls() - Method in class com.twitter.common.net.UrlResolver.ResolvedUrl
Returns any immediate URLs encountered on the resolution chain.
getKey() - Method in class com.twitter.common.net.monitoring.TrafficMonitor.TrafficInfo
 
getLargeGroups(Multimap<K, ?>, int) - Static method in class com.twitter.common.collections.Multimaps
Returns the set of keys associated with groups of a size greater than or equal to a given size.
getLargestGroups(Multimap<K, ?>, int) - Static method in class com.twitter.common.collections.Multimaps
Returns the set of keys associated with the largest values in the multimap.
getLastActiveTimestamp() - Method in class com.twitter.common.net.monitoring.TrafficMonitor.TrafficInfo
 
getLeaderId() - Method in interface com.twitter.common.zookeeper.Candidate
Returns the current group leader by querying ZooKeeper synchronously.
getLeaderId() - Method in class com.twitter.common.zookeeper.CandidateImpl
 
getLength() - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
The length is the length in characters of the span referenced by this CharSequenceTermAttribute.
getLength() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
getLength() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
getLifetimeRequestCount() - Method in class com.twitter.common.net.monitoring.TrafficMonitor
Gets the total number of requests that this monitor has observed, for all remote hosts.
getLines(HttpServletRequest) - Method in class com.twitter.common.net.http.handlers.ContentionPrinter
 
getLines(HttpServletRequest) - Method in class com.twitter.common.net.http.handlers.TextResponseHandler
Returns the lines to be printed as the body of the response.
getLines(HttpServletRequest) - Method in class com.twitter.common.net.http.handlers.ThreadStackPrinter
 
getLines(HttpServletRequest) - Method in class com.twitter.common.net.http.handlers.VarsHandler
 
getListeningPort() - Method in class com.twitter.common.thrift.ThriftServer
 
getLocalAddress(int) - Static method in class com.twitter.common.net.InetSocketAddressHelper
 
getLogManagerLogDir() - Static method in class com.twitter.common.logging.LogUtil
Gets the log directory as configured with the log manager.
getLogManagerLogDir(String) - Static method in class com.twitter.common.logging.LogUtil
Gets the log directory as specified in a log file pattern.
getMax() - Method in class com.twitter.common.util.Stat
Get the max data element added to the statistics object so far.
getMaxRetries() - Method in class com.twitter.common.thrift.Config
Returns the maximum number of retries to perform for each thrift call.
getMaxSize() - Method in class com.twitter.common.memcached.ThriftTranscoder
 
getMean() - Method in class com.twitter.common.util.Stat
Get the average or mean of data elements added to the statistics object so far.
getMemberData(String) - Method in class com.twitter.common.zookeeper.Group
Gets the data for one of this groups members by querying ZooKeeper synchronously.
getMemberId(String) - Method in class com.twitter.common.zookeeper.Group
 
getMemberId() - Method in interface com.twitter.common.zookeeper.Group.Membership
Returns the id (ZooKeeper node name) of this group member.
getMemberIds() - Method in class com.twitter.common.zookeeper.Group
Returns the current list of group member ids by querying ZooKeeper synchronously.
getMemberPath(String) - Method in class com.twitter.common.zookeeper.Group
 
getMemberPath() - Method in interface com.twitter.common.zookeeper.Group.Membership
Returns the full ZooKeeper path to this group member.
getMessageBundle(Class<? extends Check>) - Static method in class com.twitter.common.checkstyle.CheckStyleUtils
Returns the message bundle to use for a custom rule.
getMessageBundle() - Method in class com.twitter.common.checkstyle.IllegalThrowsCheck
 
getMessageBundle() - Method in class com.twitter.common.checkstyle.JavadocMethodRegexCheck
For human readable error messages
getMessageBundle() - Method in class com.twitter.common.checkstyle.NonOverriddenMethodNameCheck
For human readable error messages
getMin() - Method in class com.twitter.common.util.Stat
Get the min data element added to the statistics object so far.
getMisses() - Method in class com.twitter.common.util.caching.LRUCache
 
getModules() - Method in class com.twitter.common.application.AbstractApplication
 
getModules() - Method in interface com.twitter.common.application.Application
Returns an iterable containing binding modules for the application.
getMonitor() - Method in class com.twitter.common.thrift.ThriftFactory
 
getMonitor() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getMostCommonKey() - Method in class com.twitter.common.stats.CounterMapWithTopKey
 
getName() - Method in class com.twitter.common.metrics.AbstractGauge
 
getName() - Method in interface com.twitter.common.metrics.Gauge
Gets the name of this stat.
getName() - Method in interface com.twitter.common.stats.Stat
Gets the name of this stat.
getName() - Method in class com.twitter.common.stats.StatImpl
 
getName() - Method in interface com.twitter.common.stats.TimeSeries
A name describing this time series.
getName() - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
getName() - Method in class com.twitter.common.thrift.ThriftServer
 
getName() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getName() - Method in class com.twitter.common.util.StateMachine
Gets the name of this state machine.
getNumberOfElements() - Method in class com.twitter.common.util.Stat
Get the number of data elements added to the statistics object so far.
getNumPartitions() - Method in class com.twitter.common.zookeeper.Partitioner.Partition
Gets number of members in the group at this time.
getNumThreads() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getObjectHeaderSize() - Method in interface com.twitter.common.objectsize.ObjectSizeCalculator.MemoryLayoutSpecification
Returns the fixed overhead of for any Object subclass in this JVM.
getObjectPadding() - Method in interface com.twitter.common.objectsize.ObjectSizeCalculator.MemoryLayoutSpecification
Returns the quantum field size for a field owned by an object in this JVM.
getObjectSize(Object) - Static method in class com.twitter.common.objectsize.ObjectSizeCalculator
Given an object, returns the total allocated size, in bytes, of the object and all other objects reachable from it.
getOffset() - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
The offset is the character index, with respect to the underlying CharSequence, of the first character in the span referenced by this CharSequenceTermAttribute.
getOffset() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
getOffset() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
getOverridingModules() - Method in class com.twitter.common.application.AbstractApplication
 
getOverridingModules() - Method in interface com.twitter.common.application.Application
Returns an iterable containing modules that should override bindings made in the rest of the application.
getPartOfSpeech() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
getPath(String) - Static method in class com.twitter.common.net.UrlHelper
Gets the path from url.
getPercent() - Method in class com.twitter.common.util.Stat
Get the ratio of the sum of elements divided by the number of elements added * 100
getPercentile() - Method in class com.twitter.common.stats.RequestStats
 
getPercentiles() - Method in class com.twitter.common.stats.Percentile
Get the variables associated with this percentile tracker.
getPolarityOf(CharSequence) - Static method in class com.twitter.common.text.extractor.EmoticonExtractor
Returns the polarity (happy, sad...) of a given emoticon.
getPort() - Method in class com.twitter.common.net.http.HttpServerDispatch
 
getPort() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getPort() - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Returns the current port to connect to the in-process zookeeper instance.
getPort() - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Returns the current port to connect to the in-process zookeeper instance.
getPOS() - Method in interface com.twitter.common.text.token.attribute.PartOfSpeechAttribute
Return PartOfSpeech (POS) of this token.
getPOS() - Method in class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
getPrimarySocket() - Method in class com.twitter.common.application.modules.LocalServiceRegistry
Gets the optional primary socket address, and returns an unresolved local socket address representing that port.
getProcessor() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getProperties() - Method in class com.twitter.common.util.BuildInfo
Fetches the properties stored in the resource location.
getProtocol(TTransport) - Method in class com.twitter.common.thrift.text.TTextProtocol.Factory
 
getProtoFactory() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getProxyAddress() - Method in interface com.twitter.common.net.ProxyConfig
 
getProxyPassword() - Method in interface com.twitter.common.net.ProxyConfig
 
getProxyUser() - Method in interface com.twitter.common.net.ProxyConfig
 
getQueueSize() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getRawData() - Method in class com.twitter.common.net.http.handlers.AssetHandler.StaticAsset
 
getRawType(Type) - Static method in class com.twitter.common.args.TypeUtil
Finds the raw class of type.
getReconnectCount() - Method in class com.twitter.common.stats.RequestStats
 
getReconnectCounter() - Method in class com.twitter.common.stats.RequestStats
 
getReferenceSize() - Method in interface com.twitter.common.objectsize.ObjectSizeCalculator.MemoryLayoutSpecification
Returns the fixed size of an object reference in this JVM.
getRequestFailureCount() - Method in class com.twitter.common.net.monitoring.TrafficMonitor.TrafficInfo
 
getRequestSuccessCount() - Method in class com.twitter.common.net.monitoring.TrafficMonitor.TrafficInfo
 
getRequestTimeout() - Method in class com.twitter.common.thrift.Config
Returns the maximum time to wait for any thrift call to complete.
getRequiredTokens() - Method in class com.twitter.common.checkstyle.IllegalThrowsCheck
 
getRetryableExceptions() - Method in class com.twitter.common.thrift.Config
Returns the set of exceptions to retry calls for.
getReversedDomainParts(String, int) - Static method in class com.twitter.common.net.UrlTokenizerUtil
Given an url host, tokenizes the host parts by dot, reverses them, and pads (with "") or truncates up to numParts pieces.
getRootContext() - Method in class com.twitter.common.net.http.HttpServerDispatch
 
getSamples() - Method in class com.twitter.common.stats.ReservoirSampler
Get samples collected in the reservoir.
getSamples() - Method in interface com.twitter.common.stats.TimeSeries
A series of numbers representing regular samples of a variable.
getSamplingInterval() - Static method in class com.twitter.common.application.modules.StatsModule
 
getSecond() - Method in class com.twitter.common.collections.Pair
 
getServiceName() - Method in class com.twitter.common.net.monitoring.TrafficMonitor
Gets the name of the service that this monitor is monitoring.
getSlidingStats() - Method in class com.twitter.common.stats.RequestStats
 
getSnapshot(DynamicHostSet<T>) - Static method in class com.twitter.common.net.pool.DynamicHostSetUtil
Gets a snapshot of a set of dynamic hosts (e.g.
getSocket() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getSocketTimeout() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
getStandardDev() - Method in class com.twitter.common.util.Stat
Get the standard deviation of the data elements added to the statistics object so far.
getStartUrl() - Method in class com.twitter.common.net.UrlResolver.ResolvedUrl
 
getState() - Method in class com.twitter.common.util.StateMachine
Fetches the state that the machine is currently in.
getStatsForStage(String) - Method in class com.twitter.common.stats.PipelineStats
 
getStatsProvider() - Method in class com.twitter.common.thrift.Config
Returns the stats provider to use to record Thrift client stats.
getStatus() - Method in class com.twitter.common.thrift.ThriftServer
 
getSum() - Method in class com.twitter.common.util.Stat
Get the sum or mean of data elements added to the statistics object so far.
getSumOfSq() - Method in class com.twitter.common.util.Stat
Get the sum of the squares of the data elements added to the statistics object so far.
getSuperclassFieldPadding() - Method in interface com.twitter.common.objectsize.ObjectSizeCalculator.MemoryLayoutSpecification
Returns the quantum field size for a field owned by one of an object's ancestor superclasses in this JVM.
getSupportedAnnotationTypes() - Method in class com.twitter.common.args.apt.CmdLineProcessor
 
getTerm() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
getTermCharSequence() - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Returns the term text as a CharSequence, without needing to construct a String.
getTermCharSequence() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
getTermString() - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Returns the term text as a String.
getTermString() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
getThis() - Method in class com.twitter.common.thrift.Config.AbstractBuilder
 
getThis() - Method in class com.twitter.common.thrift.Config.Builder
 
getThis() - Method in class com.twitter.common.thrift.Thrift.ClientBuilder
 
getThriftExclusionStrategy() - Static method in class com.twitter.common.io.JsonCodec
Returns a Gson exclusion strategy that excludes Thrift synthetic fields from JSON serialization.
getThriftFieldId() - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Field
 
getTimeoutCount() - Method in class com.twitter.common.stats.RequestStats
 
getTimeoutCounter() - Method in class com.twitter.common.stats.RequestStats
 
getTimestamps() - Method in interface com.twitter.common.stats.TimeSeriesRepository
Gets an ordered iterable of the timestamps that all timeseries were sampled at.
getTimestamps() - Method in class com.twitter.common.stats.TimeSeriesRepositoryImpl
 
getTimeUnit() - Method in enum com.twitter.common.quantity.Time
Returns the equivalent TimeUnit.
getTo() - Method in class com.twitter.common.util.StateMachine.Transition
 
getTokenGroupStream() - Method in interface com.twitter.common.text.token.attribute.TokenGroupAttribute
Returns a TokenGroupStream, which provides access to individual tokens in this group.
getTokenGroupStream() - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
getTokens() - Method in class com.twitter.common.text.token.TokenizedCharSequence
Returns all tokens.
getTokensOf(TokenType...) - Method in class com.twitter.common.text.token.TokenizedCharSequence
Returns tokens of one or more specified types.
getTokenStrings() - Method in class com.twitter.common.text.token.TokenizedCharSequence
Returns all tokens as String.
getTokenStringsOf(TokenType...) - Method in class com.twitter.common.text.token.TokenizedCharSequence
Returns tokens of one or more specified types as Strings.
getTotalCounter() - Method in class com.twitter.common.stats.SlidingStats
 
getTrafficInfo() - Method in class com.twitter.common.net.monitoring.TrafficMonitor
Fetches all current traffic information.
getType() - Method in class com.twitter.common.reflect.TypeToken
Returns the type captured by this type token.
getType() - Method in interface com.twitter.common.text.token.attribute.TokenTypeAttribute
Returns the type of the current token.
getType() - Method in class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
getType() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
getTypeParam(Field) - Static method in class com.twitter.common.args.TypeUtil
Gets the type parameter from a field.
getTypeParamClass(Field) - Static method in class com.twitter.common.args.TypeUtil
Convenience method to call TypeUtil.getTypeParamClasses(Field), with the requirement that there is exactly one type parameter on the field.
getTypeParamClasses(Field) - Static method in class com.twitter.common.args.TypeUtil
Gets the classes that a field is type-parameterized with, in declaration order.
getTypeParams(Type) - Static method in class com.twitter.common.args.TypeUtil
Gets the types that a type is type-parameterized with, in declaration order.
getUnit() - Method in class com.twitter.common.quantity.Amount
 
getValue() - Method in class com.twitter.common.quantity.Amount
 
getValue() - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
getVariable(String) - Static method in class com.twitter.common.stats.Stats
 
getVariables() - Static method in class com.twitter.common.stats.Stats
Fetches all registered stat.
getVersion() - Method in class com.twitter.common.thrift.ThriftServer
 
GraphViewer - Class in com.twitter.common.application.http
A utility class to register the file resources for the graph viewer.
Group - Class in com.twitter.common.zookeeper
This class exposes methods for joining and monitoring distributed groups.
Group(ZooKeeperClient, Iterable<ACL>, String, String) - Constructor for class com.twitter.common.zookeeper.Group
Creates a group rooted at the given path.
Group(ZooKeeperClient, Iterable<ACL>, String) - Constructor for class com.twitter.common.zookeeper.Group
Equivalent to Group.Group(ZooKeeperClient, Iterable, String, String) with a default nodeNamePrefix of 'member_'.
Group.GroupChangeListener - Interface in com.twitter.common.zookeeper
An interface to an object that listens for changes to a group's membership.
Group.JoinException - Exception in com.twitter.common.zookeeper
Indicates an error joining a group.
Group.JoinException(String, Throwable) - Constructor for exception com.twitter.common.zookeeper.Group.JoinException
 
Group.Membership - Interface in com.twitter.common.zookeeper
Represents membership in a distributed group.
Group.UpdateException - Exception in com.twitter.common.zookeeper
Indicates an error updating a group member's data.
Group.UpdateException(String, Throwable) - Constructor for exception com.twitter.common.zookeeper.Group.UpdateException
 
Group.WatchException - Exception in com.twitter.common.zookeeper
Indicates an error watching a group.
Group.WatchException(String, Throwable) - Constructor for exception com.twitter.common.zookeeper.Group.WatchException
 
groupWith(Set<BackoffDecider>) - Method in class com.twitter.common.util.BackoffDecider.Builder
Makes the decider a part of a group.
guard(Function<ExceptionTransporter<X>, T>) - Static method in class com.twitter.common.base.ExceptionTransporter
Guards a unit of work that internally can generate checked exceptions.
GuiceServletConfig - Class in com.twitter.common.net.http
A wrapper around the GuiceServletContextListener that has access to the injector.
GuiceServletConfig(Injector) - Constructor for class com.twitter.common.net.http.GuiceServletConfig
 

H

handler - Variable in class com.twitter.common.application.http.HttpAssetConfig
 
handlerClass - Variable in class com.twitter.common.application.http.HttpServletConfig
 
hasAppliedValue() - Method in class com.twitter.common.args.Arg
Checks whether a value has been applied to the argument (i.e., apart from the default).
hasDefault() - Method in class com.twitter.common.args.Arg
 
hashCode() - Method in class com.twitter.common.args.apt.Configuration.ArgInfo
 
hashCode() - Method in class com.twitter.common.args.apt.Configuration.ParserInfo
 
hashCode() - Method in class com.twitter.common.args.apt.Configuration.VerifierInfo
 
hashCode() - Method in class com.twitter.common.collections.Pair
 
hashCode() - Method in class com.twitter.common.quantity.Amount
 
hashCode() - Method in class com.twitter.common.reflect.TypeToken
 
hashCode() - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
This is largely based on ArrayUtil.hashCode(char[], int, int).
hashCode() - Method in class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
hashCode() - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
hashCode() - Method in class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
hashCode() - Method in class com.twitter.common.text.token.TokenizedCharSequence
 
hashCode() - Method in class com.twitter.common.util.StateMachine.Transition
 
HashtagExtractor - Class in com.twitter.common.text.extractor
Extracts hashtags from text, according to the canonical definition found in the twitter-text-java library Regex.
HashtagExtractor() - Constructor for class com.twitter.common.text.extractor.HashtagExtractor
Default constructor.
HashtagTokenCombiner - Class in com.twitter.common.text.combiner
Combines multiple tokens denoting a hashtag back into a single token.
HashtagTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.HashtagTokenCombiner
 
HEALTH_CHECKER_KEY - Static variable in class com.twitter.common.net.http.handlers.HealthHandler
A @Named binding key for the Healthz servlet health checker.
HealthHandler - Class in com.twitter.common.net.http.handlers
A servlet that provides a crude mechanism for monitoring a service's health.
HealthHandler(ExceptionalSupplier<Boolean, ?>) - Constructor for class com.twitter.common.net.http.handlers.HealthHandler
Constructs a new Healthz that uses the given healthChecker to determine current health of the service for at the point in time of each GET request.
HOST - Static variable in class com.twitter.common.thrift.testing.MockTSocket
 
hostChecker - Variable in class com.twitter.common.net.loadbalancing.MarkDeadStrategy
 
HTTP_PORT - Static variable in class com.twitter.common.application.modules.HttpModule
 
HttpAssetConfig - Class in com.twitter.common.application.http
Configuration for a static HTTP-served asset.
HttpAssetConfig(String, URL, String, boolean) - Constructor for class com.twitter.common.application.http.HttpAssetConfig
 
HttpModule - Class in com.twitter.common.application.modules
Binding module for injections related to the HTTP server and the default set of servlets.
HttpModule() - Constructor for class com.twitter.common.application.modules.HttpModule
 
HttpModule.HttpServerLauncher - Class in com.twitter.common.application.modules
 
HttpServerDispatch - Class in com.twitter.common.net.http
A simple multi-threaded HTTP server dispatcher.
HttpServerDispatch() - Constructor for class com.twitter.common.net.http.HttpServerDispatch
 
HttpServletConfig - Class in com.twitter.common.application.http
An HttpServlet configuration used to mount HTTP handlers via Registration.registerServlet(com.google.inject.Binder, HttpServletConfig).
HttpServletConfig(String, Class<? extends HttpServlet>, boolean) - Constructor for class com.twitter.common.application.http.HttpServletConfig
 
HttpServletConfig(String, Class<? extends HttpServlet>, ImmutableMap<String, String>, boolean) - Constructor for class com.twitter.common.application.http.HttpServletConfig
 

I

IllegalThrowsCheck - Class in com.twitter.common.checkstyle
Relaxes the built-in checkstyle IllegalThrowsCheck by only checking non-overidden methods.
IllegalThrowsCheck() - Constructor for class com.twitter.common.checkstyle.IllegalThrowsCheck
Creates a new check for illegal throws clauses..
incErrors() - Method in class com.twitter.common.stats.RequestStats
Accumulates the error counter and the request counter.
incErrors(long) - Method in class com.twitter.common.stats.RequestStats
Accumulates the error counter, the request counter and the request latency.
incErrors() - Method in interface com.twitter.common.stats.StatsProvider.RequestTimer
Accumulates the error counter and the request counter.
incReconnects() - Method in class com.twitter.common.stats.RequestStats
Accumulates the reconnect counter.
incReconnects() - Method in interface com.twitter.common.stats.StatsProvider.RequestTimer
Accumulates the reconnect counter.
incrementAndGet(K) - Method in class com.twitter.common.stats.CounterMap
Increments the counter value associated with key, and returns the new value.
incrementAndGet(K, int) - Method in class com.twitter.common.stats.CounterMap
Increments the value associated with key by value, returning the new value.
incrementAndGet(K) - Method in class com.twitter.common.stats.CounterMapWithTopKey
Increments the counter value associated with key, and returns the new value.
incrementToken() - Method in class com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
 
incrementToken() - Method in class com.twitter.common.text.combiner.LookAheadTokenCombiner
 
incrementToken() - Method in class com.twitter.common.text.detector.RegexDetector
 
incrementToken() - Method in class com.twitter.common.text.extractor.RegexExtractor
 
incrementToken() - Method in class com.twitter.common.text.filter.TokenFilter
 
incrementToken() - Method in class com.twitter.common.text.token.LuceneTokenizer2TokenStreamWrapper
 
incrementToken() - Method in class com.twitter.common.text.token.TokenGroupStream
 
incrementToken() - Method in class com.twitter.common.text.token.TokenizedCharSequenceStream
 
incrementToken() - Method in class com.twitter.common.text.token.TokenStream
Consumers call this method to advance the stream to the next token.
incrementToken() - Method in class com.twitter.common.text.token.TokenStream2LuceneTokenizerWrapper
 
incrementToken() - Method in class com.twitter.common.text.token.TokenStreamAggregator
 
incrementToken() - Method in class com.twitter.common.text.token.TokenStreamDuplicator.DuplicatedTokenStream
 
incrementToken() - Method in class com.twitter.common.text.token.TokenStreamDuplicator
 
incrementToken() - Method in class com.twitter.common.text.tokenizer.RegexTokenizer
 
incTimeouts() - Method in class com.twitter.common.stats.RequestStats
Accumulates the timtout counter.
incTimeouts() - Method in interface com.twitter.common.stats.StatsProvider.RequestTimer
Accumulates the timeout counter.
INET_TO_STR - Static variable in class com.twitter.common.net.InetSocketAddressHelper
 
InetSocketAddressHelper - Class in com.twitter.common.net
A utility that can parse [host]:[port] pairs or :[port] designators into instances of InetSocketAddress.
InetSocketAddressParser - Class in com.twitter.common.args.parsers
InetSocketAddress parser.
InetSocketAddressParser() - Constructor for class com.twitter.common.args.parsers.InetSocketAddressParser
 
init(ProcessingEnvironment) - Method in class com.twitter.common.args.apt.CmdLineProcessor
 
initialize(AttributeSource, TokenStreamSerializer.Version) - Method in class com.twitter.common.text.util.CharSequenceTermAttributeSerializer
 
initialize(AttributeSource, TokenStreamSerializer.Version) - Method in class com.twitter.common.text.util.PositionIncrementAttributeSerializer
 
initialize(AttributeSource, TokenStreamSerializer.Version) - Method in interface com.twitter.common.text.util.TokenStreamSerializer.AttributeSerializer
Initialises this AttributeSerializer.
initialize(AttributeSource, TokenStreamSerializer.Version) - Method in class com.twitter.common.text.util.TokenTypeAttributeSerializer
 
initialize() - Method in class com.twitter.common.util.KestrelConsumer
 
initialState(T) - Method in class com.twitter.common.util.StateMachine.Builder
Sets the initial state for the state machine.
INT_TO_INET - Static variable in class com.twitter.common.net.InetSocketAddressHelper
A function that uses InetSocketAddressHelper.getLocalAddress(int) to map a local port number to an InetSocketAddress.
IntegerParser - Class in com.twitter.common.args.parsers
Integer parser.
IntegerParser() - Constructor for class com.twitter.common.args.parsers.IntegerParser
 
invoke(MethodInvocation) - Method in class com.twitter.common.inject.TimedInterceptor
 
invokeAll(Collection<? extends Callable<T>>) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
invokeAll(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
invokeAny(Collection<? extends Callable<T>>) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
invokeAny(Collection<? extends Callable<T>>, long, TimeUnit) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
IS_ALIVE - Static variable in class com.twitter.common.thrift.Util
 
IS_HEALTHY - Static variable in class com.twitter.common.net.http.handlers.HealthHandler
The plain text response string this servlet returns in the body of its responses to health check requests when its containing service is healthy.
isAlive() - Method in class com.twitter.common.application.Lifecycle
Checks whether this lifecycle is still considered alive.
isAllowed() - Method in class com.twitter.common.util.StateMachine.Transition
 
isBitSet(int, int) - Static method in class com.twitter.common.collections.Bits
Tests whether a bit is set in an int value.
isBitSet(long, int) - Static method in class com.twitter.common.collections.Bits
Tests whether a bit is set in a long value.
isDebug() - Method in class com.twitter.common.thrift.Config
Returns true if the client should log extra debugging information.
IsDirectory - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates an entity must represent a directory.
IsDirectoryFileVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a file is a directory.
IsDirectoryFileVerifier() - Constructor for class com.twitter.common.args.constraints.IsDirectoryFileVerifier
 
isEmpty() - Method in class com.twitter.common.args.apt.Configuration
 
isEmpty() - Method in interface com.twitter.common.text.token.attribute.TokenGroupAttribute
Returns true if this is an empty group.
isEmpty() - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
isMember(long) - Method in class com.twitter.common.zookeeper.Partitioner.Partition
Returns true if the given value is a member of this partition at this time.
isMissingJavadocAllowed(DetailAST) - Method in class com.twitter.common.checkstyle.JavadocMethodRegexCheck
 
isMonitored() - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
isOpen() - Method in class com.twitter.common.thrift.testing.MockTSocket
 
isOverrideMethod(DetailAST) - Static method in class com.twitter.common.checkstyle.CheckStyleUtils
Checks to see if a method has the "@Override" annotation.
isRestrictedAccessMode() - Method in class com.twitter.common.net.http.handlers.TimeSeriesDataSource
 
isRetryable(KeeperException) - Static method in class com.twitter.common.zookeeper.ZooKeeperUtils
Returns true if the given exception indicates an error that can be resolved by retrying the operation without modification.
isSet(TestThriftTypes.Field) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
isShutdown() - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
isStarted() - Method in class com.twitter.common.net.http.HttpServerDispatch
 
isTerminated() - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
isTLD(String, boolean) - Static method in class com.twitter.common.net.UrlTokenizerUtil
 
isValid() - Method in interface com.twitter.common.net.pool.Connection
 
isValid() - Method in class com.twitter.common.thrift.TTransportConnection
Returns true if the underlying transport is still open.
isValidStateChange() - Method in class com.twitter.common.util.StateMachine.Transition
Checks whether this transition represents a state change, which means that the 'to' state is not equal to the 'from' state, and the transition is allowed.
Iterables2 - Class in com.twitter.common.collections
Utility functions for dealing with iterables.
iterator() - Method in class com.twitter.common.collections.BoundedQueue
 
iterator() - Method in class com.twitter.common.stats.CounterMap
Gets an iterator for the mapped values.

J

JavadocMethodRegexCheck - Class in com.twitter.common.checkstyle
A small extension to the JavadocMethodCheck.
JavadocMethodRegexCheck() - Constructor for class com.twitter.common.checkstyle.JavadocMethodRegexCheck
 
join() - Method in class com.twitter.common.zookeeper.Group
Equivalent to calling join(null, null).
join(Supplier<byte[]>) - Method in class com.twitter.common.zookeeper.Group
Equivalent to calling join(memberData, null).
join(Command) - Method in class com.twitter.common.zookeeper.Group
Equivalent to calling join(null, onLoseMembership).
join(Supplier<byte[]>, Command) - Method in class com.twitter.common.zookeeper.Group
Joins this group and returns the resulting Membership when successful.
join() - Method in class com.twitter.common.zookeeper.Partitioner
Attempts to join the partition group and claim a slice.
join(InetSocketAddress, Map<String, InetSocketAddress>, Status) - Method in interface com.twitter.common.zookeeper.ServerSet
Attempts to join a server set for this logical service group.
join(InetSocketAddress, Map<String, InetSocketAddress>, Status) - Method in class com.twitter.common.zookeeper.ServerSetImpl
 
JSON_PROTOCOL - Static variable in class com.twitter.common.io.ThriftCodec
 
JsonCodec<T> - Class in com.twitter.common.io
A Codec that can encode and decode objects to and from JSON using the GSON library (which in turn will use reflection).
JUnitConsoleRunner - Class in com.twitter.common.testing.runner
An alternative to JUnitCore with stream capture and junit-report xml output capabilities.
JvmStats - Class in com.twitter.common.stats
Convenience class to export statistics about the JVM.

K

KestrelConsumer - Class in com.twitter.common.util
Class responsible for pulling work items off of a kestrel queue.
KestrelConsumer(List<String>, String, Function<String, Boolean>) - Constructor for class com.twitter.common.util.KestrelConsumer
Creates a new kestrel consumer that will communicate with the given kestrel servers (where a server string is formatted as host:port).
keySet() - Method in class com.twitter.common.stats.CounterMap
 

L

LatinTokenizer - Class in com.twitter.common.text.tokenizer
Tokenizes text written in Latin alphabets such as English, French, German.
LatinTokenizer() - Constructor for class com.twitter.common.text.tokenizer.LatinTokenizer
 
LatinTokenizer.Builder - Class in com.twitter.common.text.tokenizer
 
LatinTokenizer.Builder() - Constructor for class com.twitter.common.text.tokenizer.LatinTokenizer.Builder
 
launch(Class<? extends Application>, String...) - Static method in class com.twitter.common.application.AppLauncher
A convenience for main wrappers.
launch(Class<? extends Application>, Predicate<Field>, String...) - Static method in class com.twitter.common.application.AppLauncher
A convenience for main wrappers.
launch(Class<? extends Application>, Predicate<Field>, List<String>) - Static method in class com.twitter.common.application.AppLauncher
Used to launch an application with a restricted set of @CmdLine Args considered for parsing.
launch() - Method in class com.twitter.common.application.modules.HttpModule.HttpServerLauncher
 
launch() - Method in interface com.twitter.common.application.modules.LifecycleModule.ServiceRunner
Launches the local service.
lead(InetSocketAddress, Map<String, InetSocketAddress>, Status, SingletonService.LeadershipListener) - Method in class com.twitter.common.zookeeper.SingletonService
Attempts to lead the singleton service.
LeastConnectedStrategy<S> - Class in com.twitter.common.net.loadbalancing
A load balancer that attempts to direct load towards a backend that has the fewest leased connections.
LeastConnectedStrategy() - Constructor for class com.twitter.common.net.loadbalancing.LeastConnectedStrategy
 
length() - Method in class com.twitter.common.text.token.TokenizedCharSequence
 
Lifecycle - Class in com.twitter.common.application
Application lifecycle manager, which coordinates orderly shutdown of an application.
Lifecycle(Command, Thread.UncaughtExceptionHandler) - Constructor for class com.twitter.common.application.Lifecycle
 
LifecycleModule - Class in com.twitter.common.application.modules
Binding module for startup and shutdown controller and registries.
LifecycleModule() - Constructor for class com.twitter.common.application.modules.LifecycleModule
 
LifecycleModule.LaunchException - Exception in com.twitter.common.application.modules
Thrown when a local service fails to launch.
LifecycleModule.LaunchException(String) - Constructor for exception com.twitter.common.application.modules.LifecycleModule.LaunchException
 
LifecycleModule.LaunchException(String, Throwable) - Constructor for exception com.twitter.common.application.modules.LifecycleModule.LaunchException
 
LifecycleModule.ServiceRunner - Interface in com.twitter.common.application.modules
Responsible for starting and stopping a local service.
listen(int) - Method in class com.twitter.common.net.http.HttpServerDispatch
Opens the HTTP server on the given port.
listen(int, int) - Method in class com.twitter.common.net.http.HttpServerDispatch
Opens the HTTP server on random port within the given range.
ListParser - Class in com.twitter.common.args.parsers
List parser.
ListParser() - Constructor for class com.twitter.common.args.parsers.ListParser
 
liveHostChecker - Variable in class com.twitter.common.net.loadbalancing.MarkDeadStrategyWithHostCheck
 
load() - Static method in class com.twitter.common.args.apt.Configuration
Loads the @CmdLine argument configuration data stored in the classpath.
LoadBalancer<K> - Interface in com.twitter.common.net.loadbalancing
A load balancer, which will be used to determine which of a set of backends should be connected to for service calls.
LoadBalancerImpl<K> - Class in com.twitter.common.net.loadbalancing
Implementation of a load balancer, that uses a pluggable LoadBalancingStrategy to define actual load balancing behavior.
LoadBalancerImpl(LoadBalancingStrategy<K>) - Constructor for class com.twitter.common.net.loadbalancing.LoadBalancerImpl
Creates a new load balancer that will use the given strategy.
LoadBalancingStrategy<K> - Interface in com.twitter.common.net.loadbalancing
A strategy for balancing request load among backends.
LoadBalancingStrategy.ConnectionResult - Enum in com.twitter.common.net.loadbalancing
 
loadFactor(float) - Method in class com.twitter.common.util.caching.LRUCache.Builder
 
LocalServiceRegistry - Class in com.twitter.common.application.modules
Registry for services that should be exported from the application.
LocalServiceRegistry(Provider<Set<LifecycleModule.ServiceRunner>>, ShutdownRegistry) - Constructor for class com.twitter.common.application.modules.LocalServiceRegistry
Creates a new local service registry.
LocalServiceRegistry.LocalService - Class in com.twitter.common.application.modules
An individual local service.
lock() - Method in interface com.twitter.common.zookeeper.DistributedLock
 
lock() - Method in class com.twitter.common.zookeeper.DistributedLockImpl
 
log(T) - Method in class com.twitter.common.logging.BufferedLog
Stores a log entry, flushing immediately if the buffer length limit is exceeded.
log(List<T>) - Method in class com.twitter.common.logging.BufferedLog
 
Log<T,R> - Interface in com.twitter.common.logging
Logs messages to scribe.
log(T) - Method in interface com.twitter.common.logging.Log
Submits a log message.
log(List<T>) - Method in interface com.twitter.common.logging.Log
Batch version of log.
log(LogEntry) - Method in class com.twitter.common.logging.ScribeLog
 
log(List<LogEntry>) - Method in class com.twitter.common.logging.ScribeLog
 
LOG_DIR_KEY - Static variable in class com.twitter.common.net.http.handlers.LogPrinter
A @Named binding key for the log directory to display by default.
LogConfig - Class in com.twitter.common.net.http.handlers
Servlet that allows for dynamic adjustment of the logging configuration.
LogConfig(boolean) - Constructor for class com.twitter.common.net.http.handlers.LogConfig
 
LOGGING_MANAGER - Static variable in class com.twitter.common.util.logging.UnresettableLogManager
The system property that controls which LogManager the java.util.logging subsystem should load.
LOGGING_PROPERTIES_RESOURCE_PATH - Static variable in class com.twitter.common.util.logging.ResourceLoggingConfigurator
A system property that controls where ResourceLoggingConfigurator looks for the logging configuration on the process classpath.
logLikelihood(double, double) - Static method in class com.twitter.common.stats.Significance
 
LogModule - Class in com.twitter.common.application.modules
Binding module for logging-related bindings, such as the log directory.
LogModule() - Constructor for class com.twitter.common.application.modules.LogModule
 
LogModule.ExportLogDir - Class in com.twitter.common.application.modules
 
LogPrinter - Class in com.twitter.common.net.http.handlers
HTTP handler to page through log files.
LogPrinter(File, boolean) - Constructor for class com.twitter.common.net.http.handlers.LogPrinter
 
logTransitions() - Method in class com.twitter.common.util.StateMachine.Builder
Adds a log message for every state transition that is attempted.
LogUtil - Class in com.twitter.common.logging
Logging utility functions.
LongParser - Class in com.twitter.common.args.parsers
Long parser.
LongParser() - Constructor for class com.twitter.common.args.parsers.LongParser
 
LookAheadTokenCombiner - Class in com.twitter.common.text.combiner
Combiner that looks ahead to the next token and combines it with the current token based on specified conditions.
LookAheadTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.LookAheadTokenCombiner
 
LRUCache<K,V> - Class in com.twitter.common.util.caching
A cache with a fixed maximum size, evicting items that were used least-recently.
LRUCache.Builder<K,V> - Class in com.twitter.common.util.caching
 
LRUCache.Builder() - Constructor for class com.twitter.common.util.caching.LRUCache.Builder
 
LuceneTokenizer2TokenStreamWrapper - Class in com.twitter.common.text.token
Converts a Lucene Tokenizer instance into TokenStream instance.
LuceneTokenizer2TokenStreamWrapper(Tokenizer) - Constructor for class com.twitter.common.text.token.LuceneTokenizer2TokenStreamWrapper
 

M

main(String...) - Static method in class com.twitter.common.application.AppLauncher
 
main(String[]) - Static method in class com.twitter.common.testing.runner.JUnitConsoleRunner
Launcher for JUnitConsoleRunner.
main(String[]) - Static method in class com.twitter.common.text.example.TokenizerUsageExample
 
main(String[]) - Static method in class com.twitter.common.tools.Compiler
Passes through all args to the system java compiler and tracks classes generated for each source file.
makeCounter(String) - Method in interface com.twitter.common.stats.StatsProvider
Creates and exports a counter for tracking.
makeCustomBindingKey(String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeCustomBindingName(String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeCustomKey(Class<T>, String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeCustomKey(TypeLiteral<T>, String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeDefaultBindingKey(String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeDefaultBindingName(String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeDefaultKey(TypeLiteral<T>, String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeDefaultKey(Class<T>, String) - Static method in class com.twitter.common.inject.DefaultProvider
 
makeGauge(String, Supplier<T>) - Method in interface com.twitter.common.stats.StatsProvider
Exports a read-only value for tracking.
makeRequestTimer(String) - Method in interface com.twitter.common.stats.StatsProvider
Creates and exports a sets of stats that allows for typical rROC request tracking.
makeSynchronized(boolean) - Method in class com.twitter.common.util.caching.LRUCache.Builder
 
MapParser - Class in com.twitter.common.args.parsers
Map parser.
MapParser() - Constructor for class com.twitter.common.args.parsers.MapParser
 
MarkDeadStrategy<S> - Class in com.twitter.common.net.loadbalancing
A load balancer that serves as a layer above another load balancer to mark hosts as dead, and prevent them from being visible to the wrapped load balancer.
MarkDeadStrategy(LoadBalancingStrategy<S>, Function<S, BackoffDecider>, Predicate<S>) - Constructor for class com.twitter.common.net.loadbalancing.MarkDeadStrategy
Creates a mark dead strategy with a wrapped strategy, backoff decider factory and a predicate host checker.
MarkDeadStrategy(LoadBalancingStrategy<S>, Function<S, BackoffDecider>) - Constructor for class com.twitter.common.net.loadbalancing.MarkDeadStrategy
Constructor that uses a default predicate host checker that always returns true.
MarkDeadStrategyWithHostCheck<S> - Class in com.twitter.common.net.loadbalancing
A load balancing strategy that extends the functionality of the mark dead strategy by integrating a hostChecker that allows hosts to transition out of a dead state if the most recent connection to the host was successful.
MarkDeadStrategyWithHostCheck(LoadBalancingStrategy<S>, Function<S, BackoffDecider>) - Constructor for class com.twitter.common.net.loadbalancing.MarkDeadStrategyWithHostCheck
Creates a mark dead strategy with the given wrapped strategy and backoff decider factory.
MarkDeadStrategyWithHostCheck.LiveHostChecker<S> - Class in com.twitter.common.net.loadbalancing
LiveHostChecker implements Filter to determine whether a host is alive based on the result of the most recent connection attempt to that host.
MarkDeadStrategyWithHostCheck.LiveHostChecker() - Constructor for class com.twitter.common.net.loadbalancing.MarkDeadStrategyWithHostCheck.LiveHostChecker
 
max() - Method in class com.twitter.common.stats.Statistics
 
maxRetries - Variable in class com.twitter.common.util.concurrent.RetryingFutureTask
 
maxSize(int) - Method in class com.twitter.common.util.caching.LRUCache.Builder
 
mean() - Method in class com.twitter.common.stats.Statistics
 
Memcached - Class in com.twitter.common.memcached
Helper class for creating a memcached client.
Memcached() - Constructor for class com.twitter.common.memcached.Memcached
 
MetaPool<T,E> - Class in com.twitter.common.net.pool
A connection pool that picks connections from a set of backend pools.
MetaPool(LoadBalancer<E>, Closure<Collection<E>>, Amount<Long, Time>) - Constructor for class com.twitter.common.net.pool.MetaPool
Creates a connection pool with no backends.
MetaPool(ImmutableMap<E, ObjectPool<Connection<T, E>>>, LoadBalancer<E>, Closure<Collection<E>>, Amount<Long, Time>) - Constructor for class com.twitter.common.net.pool.MetaPool
Creates a connection pool that balances connections across multiple backend pools.
MetricListener - Interface in com.twitter.common.metrics
A listener that receives updated metric samples.
MetricPoller - Class in com.twitter.common.metrics
A fixed-rate poller that triggers a MetricSampler.
MetricPoller(MetricSampler, ScheduledExecutorService) - Constructor for class com.twitter.common.metrics.MetricPoller
Creates a new metric poller.
MetricProvider - Interface in com.twitter.common.metrics
A provider of metric samples.
MetricRegistry - Interface in com.twitter.common.metrics
A registry that maintains a collection of metrics.
Metrics - Class in com.twitter.common.metrics
Root metric registry.
mightCreate() - Method in interface com.twitter.common.net.pool.ConnectionFactory
Checks whether this factory might create a connection if requested.
mightCreate() - Method in class com.twitter.common.thrift.ThriftConnectionFactory
 
min() - Method in class com.twitter.common.stats.Statistics
 
MockTSocket - Class in com.twitter.common.thrift.testing
 
MockTSocket() - Constructor for class com.twitter.common.thrift.testing.MockTSocket
 
monitor(DynamicHostSet.HostChangeMonitor<T>) - Method in interface com.twitter.common.net.pool.DynamicHostSet
Registers a monitor to receive change notices for this server set as long as this jvm process is alive.
monitor(DynamicHostSet.HostChangeMonitor<ServiceInstance>) - Method in class com.twitter.common.zookeeper.ServerSetImpl
 
MorePreconditions - Class in com.twitter.common.base
A utility helpful in concisely checking preconditions on arguments.
MoreSuppliers - Class in com.twitter.common.base
Utility methods for working with Suppliers.
MovingAverage<T extends Number> - Class in com.twitter.common.stats
Function to compute the moving average of a time series.
MovingWindowDelta<T extends Number> - Class in com.twitter.common.stats
Delta over the most recent k sample periods.
MULTI_VALUE_SPLITTER - Static variable in class com.twitter.common.args.Parsers
 
multiBinderFor(Class<T>) - Static method in class com.twitter.common.inject.Bindings
Creates a BindHelper for the given type that can be used to add a binding of to a set.
Multimaps - Class in com.twitter.common.collections
Utility class for functions related to Multimaps in the java collections library.
multiplier() - Method in enum com.twitter.common.quantity.Data
 
multiplier() - Method in enum com.twitter.common.quantity.Time
 
multiplier() - Method in interface com.twitter.common.quantity.Unit
Returns the weight of this unit relative to other units in the same hierarchy.

N

name - Variable in enum com.twitter.common.text.token.attribute.TokenType
 
NAME - Static variable in class com.twitter.common.thrift.testing.TestThriftTypes.Field
 
name(String) - Method in class com.twitter.common.util.caching.LRUCache.Builder
 
newDefaultRandom() - Static method in class com.twitter.common.util.Random.Util
Creates a new Random based off the default system Random.
newKestrelClient(List<String>) - Static method in class com.twitter.common.memcached.Memcached
Creates a new memcached client for use as an interface to a kestrel queue.
newMemcachedClient(List<String>) - Static method in class com.twitter.common.memcached.Memcached
Creates a new generic memcached client that uses daemon threads for IO and the binary protocol.
newSnapshot() - Method in class com.twitter.common.stats.PipelineStats
 
nextBackend() - Method in class com.twitter.common.net.loadbalancing.LeastConnectedStrategy
 
nextBackend() - Method in interface com.twitter.common.net.loadbalancing.LoadBalancer
Gets the next backend that a request should be sent to.
nextBackend() - Method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
 
nextBackend() - Method in interface com.twitter.common.net.loadbalancing.LoadBalancingStrategy
Gets the next backend that a request should be sent to.
nextBackend() - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategy
 
nextBackend() - Method in class com.twitter.common.net.loadbalancing.RandomStrategy
 
nextBackend() - Method in class com.twitter.common.net.loadbalancing.RoundRobinStrategy
 
nextBackend() - Method in class com.twitter.common.net.loadbalancing.SubsetStrategy
 
nextBackend() - Method in class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
nextDouble() - Method in interface com.twitter.common.util.Random
 
nextDouble() - Method in class com.twitter.common.util.Random.SystemRandom
 
nextInt(int) - Method in interface com.twitter.common.util.Random
 
nextInt(int) - Method in class com.twitter.common.util.Random.SystemRandom
 
NO_TIMEOUT - Static variable in interface com.twitter.common.net.pool.ObjectPool
A convenience constant representing a no timeout.
NONBLOCKING_SERVER - Static variable in class com.twitter.common.thrift.ThriftServer
This field actually provides a THsHaServer (Nonblocking server which had a thread pool)
NONBLOCKING_TIMEOUT - Static variable in class com.twitter.common.thrift.callers.RetryingCaller
 
NONE - Static variable in interface com.twitter.common.zookeeper.ZooKeeperClient.Credentials
A set of Credentials that performs no authentication.
NonOverriddenMethodNameCheck - Class in com.twitter.common.checkstyle
An extension to method name check that does not check-style the name of an overridden method because the programmer does not have a choice in renaming such methods.
NonOverriddenMethodNameCheck() - Constructor for class com.twitter.common.checkstyle.NonOverriddenMethodNameCheck
 
NonParameterizedTypeParser<T> - Class in com.twitter.common.args.parsers
Base class for parsers of types that are not parameterized.
NonParameterizedTypeParser() - Constructor for class com.twitter.common.args.parsers.NonParameterizedTypeParser
 
noop() - Static method in class com.twitter.common.base.Closures
Returns a closure that will do nothing.
NOOP - Static variable in class com.twitter.common.base.Commands
A command that does nothing when executed.
noRetries() - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Specifies that no calls be automatically retried.
normalize(double) - Method in class com.twitter.common.util.RangeNormalizer
 
normalize(double, double, double, double, double) - Static method in class com.twitter.common.util.RangeNormalizer
 
normalizeName(String) - Static method in class com.twitter.common.stats.Stats
 
normalizeToStepDistribution(double) - Static method in class com.twitter.common.util.RangeNormalizer
 
NotEmpty - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates that an entity is non-empty.
NotEmptyIterableVerifier - Class in com.twitter.common.args.constraints
Verifies that an iterable is not empty.
NotEmptyIterableVerifier() - Constructor for class com.twitter.common.args.constraints.NotEmptyIterableVerifier
 
NotEmptyStringVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a string is not empty.
NotEmptyStringVerifier() - Constructor for class com.twitter.common.args.constraints.NotEmptyStringVerifier
 
NotNegative - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates that an entity is non-negative.
NotNegativeNumberVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a number is non-negative.
NotNegativeNumberVerifier() - Constructor for class com.twitter.common.args.constraints.NotNegativeNumberVerifier
 
NotNull - Annotation Type in com.twitter.common.args.constraints
Annotation to indicate that an entity must be non-null.
NotNullVerifier - Class in com.twitter.common.args.constraints
A verifier that ensures a value is non-null.
NotNullVerifier() - Constructor for class com.twitter.common.args.constraints.NotNullVerifier
 
noTransitions() - Method in class com.twitter.common.util.StateMachine.Rule.AllowedTransition
Allows no transitions to be performed from this state.
now() - Static method in class com.twitter.common.util.DateUtils
 
nowMillis() - Method in interface com.twitter.common.util.Clock
Returns the current time in milliseconds since the epoch.
nowMillis() - Method in class com.twitter.common.util.testing.FakeClock
 
nowNanos() - Method in interface com.twitter.common.util.Clock
Returns the current time in nanoseconds.
nowNanos() - Method in class com.twitter.common.util.testing.FakeClock
 
nowUnixTime() - Static method in class com.twitter.common.util.DateUtils
 
NumberParser<T extends Number> - Class in com.twitter.common.args.parsers
Parser that handles common functionality for parsing numbers.
NumberParser() - Constructor for class com.twitter.common.args.parsers.NumberParser
 
NumericStatExporter - Class in com.twitter.common.stats
Stat exporter that extracts numeric Stats from the Stats system, and exports them via a caller-defined sink.
NumericStatExporter(Closure<Map<String, ? extends Number>>, ScheduledExecutorService, Amount<Long, Time>) - Constructor for class com.twitter.common.stats.NumericStatExporter
Creates a new numeric stat exporter that will export to the specified sink.
numRetries - Variable in class com.twitter.common.util.concurrent.RetryingFutureTask
 

O

ObjectPool<T> - Interface in com.twitter.common.net.pool
A generic object pool that provides object of a given type for exclusive use by the caller.
ObjectSizeCalculator - Class in com.twitter.common.objectsize
Contains utility methods for calculating the memory usage of objects.
ObjectSizeCalculator(ObjectSizeCalculator.MemoryLayoutSpecification) - Constructor for class com.twitter.common.objectsize.ObjectSizeCalculator
Creates an object size calculator that can calculate object sizes for a given memoryLayoutSpecification.
ObjectSizeCalculator.MemoryLayoutSpecification - Interface in com.twitter.common.objectsize
Describes constant memory overheads for various constructs in a JVM implementation.
of(Class<? extends T>) - Static method in class com.twitter.common.base.MoreSuppliers
Creates a Supplier that uses the no-argument constructor of type to supply new instances.
of(A, B) - Static method in class com.twitter.common.collections.Pair
Convenience method to create a pair.
of(Class<T>) - Static method in class com.twitter.common.memcached.ThriftTranscoder
A convenience method that creates a new Transcoder for the given thrift type using the thrift compact binary encoding.
of(String, Number) - Static method in class com.twitter.common.metrics.Rate
Creates a rate of a number.
of(Gauge) - Static method in class com.twitter.common.metrics.Rate
Creates a rate of a gauge.
of(String, Gauge<N>, Gauge<D>) - Static method in class com.twitter.common.metrics.Ratio
Creates a ratio of two gauges, registering the result with a custom metric name.
of(Gauge<N>, Gauge<D>) - Static method in class com.twitter.common.metrics.Ratio
Identical to Ratio.of(String, Gauge, Gauge), but using a fixed naming format.
of(String, Number, Number) - Static method in class com.twitter.common.metrics.Ratio
Creates a ratio of two numbers.
of(double, U) - Static method in class com.twitter.common.quantity.Amount
Creates an amount that uses a double value.
of(float, U) - Static method in class com.twitter.common.quantity.Amount
Creates an amount that uses a float value.
of(long, U) - Static method in class com.twitter.common.quantity.Amount
Creates an amount that uses a long value.
of(int, U) - Static method in class com.twitter.common.quantity.Amount
Creates an amount that uses an int value.
of(Stat<T>) - Static method in class com.twitter.common.stats.MovingAverage
 
of(Stat<T>, int) - Static method in class com.twitter.common.stats.MovingAverage
 
of(String, Stat<T>, int) - Static method in class com.twitter.common.stats.MovingAverage
 
of(String, Supplier<T>, int) - Static method in class com.twitter.common.stats.MovingWindowDelta
Create a new MovingWindowDelta instance.
of(String, Supplier<T>) - Static method in class com.twitter.common.stats.MovingWindowDelta
Create a new MovingWindowDelta instance using the default window size (currently 60).
of(Stat<T>) - Static method in class com.twitter.common.stats.Rate
 
of(String, AtomicInteger) - Static method in class com.twitter.common.stats.Rate
 
of(String, AtomicLong) - Static method in class com.twitter.common.stats.Rate
 
of(Stat<T>, Stat<T>) - Static method in class com.twitter.common.stats.Ratio
 
of(String, Stat<T>, Stat<T>) - Static method in class com.twitter.common.stats.Ratio
 
of(String, Number, Number) - Static method in class com.twitter.common.stats.Ratio
 
of(TokenStream...) - Static method in class com.twitter.common.text.token.TokenStreamAggregator
Creates a TokenStream that aggregates the outputs of a given set of TokenStreams.
offerBackends(Set<K>, Closure<Collection<K>>) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancer
Offers a set of backends that the load balancer should choose from to distribute load amongst.
offerBackends(Set<K>, Closure<Collection<K>>) - Method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
 
offerBackends(Set<K>, Closure<Collection<K>>) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancingStrategy
Offers a set of backends that the load balancer should choose from to distribute load amongst.
offerBackends(Set<S>, Closure<Collection<S>>) - Method in class com.twitter.common.net.loadbalancing.MarkDeadStrategy
 
offerBackends(Set<S>, Closure<Collection<S>>) - Method in class com.twitter.common.net.loadbalancing.SubsetStrategy
 
offerBackends(Set<K>, Closure<Collection<K>>) - Method in class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
offerLeadership(Candidate.Leader) - Method in interface com.twitter.common.zookeeper.Candidate
Offers this candidate in leadership elections for as long as the current jvm process is alive.
offerLeadership(Candidate.Leader) - Method in class com.twitter.common.zookeeper.CandidateImpl
 
onAnyTransition(Closure<StateMachine.Transition<T>>) - Method in class com.twitter.common.util.StateMachine.Builder
Adds a callback to be executed for every state transition, including invalid transitions that are attempted.
onBackendsOffered(Set<S>) - Method in class com.twitter.common.net.loadbalancing.LeastConnectedStrategy
 
onBackendsOffered(Set<S>) - Method in class com.twitter.common.net.loadbalancing.RandomStrategy
 
onBackendsOffered(Set<S>) - Method in class com.twitter.common.net.loadbalancing.RoundRobinStrategy
 
onChange(ImmutableSet<T>) - Method in interface com.twitter.common.net.pool.DynamicHostSet.HostChangeMonitor
Called when either the available set of services changes (when a service dies or a new instance comes on-line) or when an existing service advertises a status or health change.
onComplete(Object) - Method in class com.twitter.common.thrift.callers.Caller.WrappedMethodCallback
 
onDefeated() - Method in interface com.twitter.common.zookeeper.Candidate.Leader
Called when the leader has been ousted.
onDefeated(ServerSet.EndpointStatus) - Method in interface com.twitter.common.zookeeper.SingletonService.LeadershipListener
 
onElected(ExceptionalCommand<Group.JoinException>) - Method in interface com.twitter.common.zookeeper.Candidate.Leader
Called when this leader has been elected.
onError(Throwable) - Method in class com.twitter.common.thrift.callers.Caller.WrappedMethodCallback
 
onGroupChange(Iterable<String>) - Method in interface com.twitter.common.zookeeper.Group.GroupChangeListener
Called whenever group membership changes with the new list of member ids.
onLeading(ServerSet.EndpointStatus) - Method in interface com.twitter.common.zookeeper.SingletonService.LeadershipListener
 
open() - Method in class com.twitter.common.thrift.testing.MockTSocket
 
optionInfo() - Method in class com.twitter.common.args.apt.Configuration
Returns the field info for all the @CmdLine annotated fields on the classpath.
ORDER_BY_NAME - Static variable in class com.twitter.common.args.ArgScanner
 

P

Pair<A,B> - Class in com.twitter.common.collections
An immutable 2-tuple with value-equals semantics.
Pair(A, B) - Constructor for class com.twitter.common.collections.Pair
Creates a new pair.
PairParser - Class in com.twitter.common.args.parsers
Pair parser.
PairParser() - Constructor for class com.twitter.common.args.parsers.PairParser
 
params - Variable in class com.twitter.common.application.http.HttpServletConfig
 
parse(Iterable<String>) - Method in class com.twitter.common.args.ArgScanner
Applies the provided argument values to all @CmdLine Arg fields discovered on the classpath.
parse(Predicate<Field>, Iterable<String>) - Method in class com.twitter.common.args.ArgScanner
Applies the provided argument values to any @CmdLine Arg fields discovered on the classpath and accepted by the given filter.
parse(ParserOracle, Type, String) - Method in interface com.twitter.common.args.Parser
Parses strings as arguments of a given subtype of T.
parse(String) - Static method in class com.twitter.common.args.parsers.DurationParser
Parses a duration of the form "1d23h59m59s" (as well as subvariants, i.e.
parse(ParserOracle, Type, String) - Method in class com.twitter.common.args.parsers.EnumParser
 
parse(ParserOracle, Type, String) - Method in class com.twitter.common.args.parsers.NonParameterizedTypeParser
 
parse(ParserOracle, Type, String) - Method in class com.twitter.common.args.parsers.TimeDurationParser
 
parse(ParserOracle, Type, String) - Method in class com.twitter.common.args.parsers.TypeParameterizedParser
 
parse(String) - Static method in class com.twitter.common.net.InetSocketAddressHelper
Attempts to parse an endpoint spec into an InetSocketAddress.
parsedType - Variable in class com.twitter.common.args.apt.Configuration.ParserInfo
 
Parser<T> - Interface in com.twitter.common.args
An interface to a command line argument parser.
parseRange(String) - Static method in class com.twitter.common.util.ParsingUtil
Parses a string as a range between one integer and another.
parserClass - Variable in class com.twitter.common.args.apt.Configuration.ParserInfo
 
parserInfo() - Method in class com.twitter.common.args.apt.Configuration
Returns the parser info for all the @ArgParser annotated parsers on the classpath.
ParserOracle - Interface in com.twitter.common.args
A registry of Parsers for different supported argument types.
Parsers - Class in com.twitter.common.args
A registry of Parsers for different supported argument types.
Parsers(Map<Class<?>, Parser<?>>) - Constructor for class com.twitter.common.args.Parsers
Creates a new parser registry over the specified parsers.
ParsingUtil - Class in com.twitter.common.util
Common methods for parsing configs.
ParsingUtil() - Constructor for class com.twitter.common.util.ParsingUtil
 
Partitioner - Class in com.twitter.common.zookeeper
A distributed mechanism for eventually arriving at an evenly partitioned space of long values.
Partitioner(ZooKeeperClient, List<ACL>, String) - Constructor for class com.twitter.common.zookeeper.Partitioner
Constructs a representation of a partition group but does not join it.
Partitioner.Partition - Class in com.twitter.common.zookeeper
Represents a slice of a partition group.
Partitioner.Partition() - Constructor for class com.twitter.common.zookeeper.Partitioner.Partition
 
PartOfSpeechAttribute - Interface in com.twitter.common.text.token.attribute
Attribute representing the part of speech of a token.
PartOfSpeechAttributeImpl - Class in com.twitter.common.text.token.attribute
Implementation of PartOfSpeechAttribute interface.
PartOfSpeechAttributeImpl() - Constructor for class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
path - Variable in class com.twitter.common.application.http.HttpAssetConfig
 
path - Variable in class com.twitter.common.application.http.HttpServletConfig
 
Percentile<T extends Number & Comparable<T>> - Class in com.twitter.common.stats
A stats tracker to export percentiles of inputs based on a sampling rate.
Percentile(String, float, double...) - Constructor for class com.twitter.common.stats.Percentile
Creates a new percentile tracker.
Percentile(String, Sampler, double...) - Constructor for class com.twitter.common.stats.Percentile
Creates a new percentile tracker.
Percentile(String, int, Sampler, double...) - Constructor for class com.twitter.common.stats.Percentile
Creates a new percentile tracker.
perplexity() - Method in class com.twitter.common.stats.Entropy
 
PipelineStats - Class in com.twitter.common.stats
Tracks the latency of different pipeline stages in a process.
PipelineStats(String, Set<String>, Time) - Constructor for class com.twitter.common.stats.PipelineStats
Creates a new pipeline tracker with the given pipeline name and stages.
PipelineStats.Snapshot - Class in com.twitter.common.stats
 
populationSize() - Method in class com.twitter.common.stats.Statistics
 
PORT - Static variable in class com.twitter.common.thrift.testing.MockTSocket
 
Positional - Annotation Type in com.twitter.common.args
Annotation to mark an Arg for gathering the positional command line arguments.
positionalInfo() - Method in class com.twitter.common.args.apt.Configuration
Returns the field info for the sole @Positional annotated field on the classpath, if any.
PositionIncrementAttributeSerializer - Class in com.twitter.common.text.util
(De)Serializes {@link PositionIncrementAttribute)s.
PositionIncrementAttributeSerializer() - Constructor for class com.twitter.common.text.util.PositionIncrementAttributeSerializer
 
Positive - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates an entity must be positive.
PositiveNumberVerifier - Class in com.twitter.common.args.constraints
Verifier to ensure that a number is positive.
PositiveNumberVerifier() - Constructor for class com.twitter.common.args.constraints.PositiveNumberVerifier
 
PossessiveContractionTokenCombiner - Class in com.twitter.common.text.combiner
Combines multiple tokens denoting a possessive form (e.g., Twitter's) or a contraction form (e.g., isn't) back into a single token.
PossessiveContractionTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.PossessiveContractionTokenCombiner
 
prepare() - Method in class com.twitter.common.util.caching.CachingMethodProxy
Instructs the proxy that cache setup is complete, and the proxy instance should begin caching and delegating uncached calls.
prettyPrint(TBase) - Static method in class com.twitter.common.thrift.Util
Pretty-prints a thrift object contents.
primaryService(int, Command) - Static method in class com.twitter.common.application.modules.LocalServiceRegistry.LocalService
Creates a primary local service.
PrintableHistogram - Class in com.twitter.common.stats
 
PrintableHistogram(double...) - Constructor for class com.twitter.common.stats.PrintableHistogram
Creates a histogram with the given bucket boundaries.
process(Set<? extends TypeElement>, RoundEnvironment) - Method in class com.twitter.common.args.apt.CmdLineProcessor
 
process(Closure<T>) - Method in class com.twitter.common.io.SerializedFileStreamer
 
process(Closure<T>) - Method in interface com.twitter.common.io.Streamer
Processes a stream fully.
process(TProtocol, TProtocol) - Method in class com.twitter.common.thrift.monitoring.TMonitoredProcessor
 
ProviderMethodModule - Class in com.twitter.common.inject
A convenience base class for modules that do all their binding via provider methods.
ProviderMethodModule() - Constructor for class com.twitter.common.inject.ProviderMethodModule
 
ProxyAuthorizer - Class in com.twitter.common.net
Authorizes http connection for use over the proxy it is built with
ProxyConfig - Interface in com.twitter.common.net
Proxy configuration parameters: proxy address, username, and password.
proxyFor(T, Class<T>) - Static method in class com.twitter.common.util.caching.CachingMethodProxy
Creates a new builder for the given type.
prune(Multimap<K, V>, Predicate<Collection<V>>) - Static method in class com.twitter.common.collections.Multimaps
Prunes a multimap based on a predicate, returning the pruned values.
prune(Multimap<K, V>, int) - Static method in class com.twitter.common.collections.Multimaps
Convenience method to prune key/values pairs where the size of the value collection is below a threshold.
PUNCTUATION_CHAR_CLASS - Static variable in class com.twitter.common.text.detector.PunctuationDetector
 
PUNCTUATION_REGEX - Static variable in class com.twitter.common.text.detector.PunctuationDetector
 
PunctuationDetector - Class in com.twitter.common.text.detector
Updates TokenTypeAttribute of a token to TokenType.PUNCTUATION if the token is identified as punctuation.
PunctuationDetector(TokenStream) - Constructor for class com.twitter.common.text.detector.PunctuationDetector
 
PunctuationDetector.AbstractBuilder<N extends PunctuationDetector,T extends PunctuationDetector.AbstractBuilder<N,T>> - Class in com.twitter.common.text.detector
 
PunctuationDetector.AbstractBuilder(N) - Constructor for class com.twitter.common.text.detector.PunctuationDetector.AbstractBuilder
 
PunctuationDetector.Builder - Class in com.twitter.common.text.detector
 
PunctuationDetector.Builder(TokenStream) - Constructor for class com.twitter.common.text.detector.PunctuationDetector.Builder
 
PunctuationExceptionCombiner - Class in com.twitter.common.text.combiner
 
PunctuationExceptionCombiner(TokenStream, Pattern) - Constructor for class com.twitter.common.text.combiner.PunctuationExceptionCombiner
 
PunctuationExceptionCombiner.Builder - Class in com.twitter.common.text.combiner
 
PunctuationExceptionCombiner.Builder(TokenStream) - Constructor for class com.twitter.common.text.combiner.PunctuationExceptionCombiner.Builder
 
PunctuationFilter - Class in com.twitter.common.text.filter
Filters out tokens whose TokenTypeAttribute is TokenType.PUNCTUATION.
PunctuationFilter(TokenStream) - Constructor for class com.twitter.common.text.filter.PunctuationFilter
 
put(K, V) - Method in interface com.twitter.common.util.caching.Cache
Stores a key-value pair in the cache.
put(K, V) - Method in class com.twitter.common.util.caching.LRUCache
 
put(String, V) - Method in class com.twitter.common.zookeeper.ZooKeeperMap
This map is readonly, this method throws a UnsupportedOperationException
putAll(Map<? extends String, ? extends V>) - Method in class com.twitter.common.zookeeper.ZooKeeperMap
This map is readonly, this method throws a UnsupportedOperationException

Q

QueueDrainer<T extends Runnable> - Class in com.twitter.common.util
Joins a task queue with an executor service, to add control over when tasks are actually made available for execution.
QueueDrainer(Executor, BlockingQueue<T>) - Constructor for class com.twitter.common.util.QueueDrainer
Creates a QueueDrainer that associates the queue with an executorService.
QUIT_HANDLER_KEY - Static variable in class com.twitter.common.net.http.handlers.QuitHandler
A @Named binding key for the QuitHandler listener.
QuitHandler - Class in com.twitter.common.net.http.handlers
A servlet that provides a way to remotely signal the process to initiate a clean shutdown sequence.
QuitHandler(Runnable) - Constructor for class com.twitter.common.net.http.handlers.QuitHandler
Constructs a new QuitHandler that will notify the given quitListener when the servlet is accessed.

R

Random - Interface in com.twitter.common.util
An interface to define the common functionality that is required for generating random values.
Random.SystemRandom - Class in com.twitter.common.util
A Random that wraps a java.util.Random.
Random.SystemRandom(Random) - Constructor for class com.twitter.common.util.Random.SystemRandom
 
Random.Util - Class in com.twitter.common.util
 
RandomStrategy<S> - Class in com.twitter.common.net.loadbalancing
A load balancer that selects a random backend each time a request is made..
RandomStrategy() - Constructor for class com.twitter.common.net.loadbalancing.RandomStrategy
 
Range - Annotation Type in com.twitter.common.args.constraints
Annotation that indicates a field must be within a given numeric range.
range() - Method in class com.twitter.common.stats.Statistics
 
RangeNormalizer - Class in com.twitter.common.util
Generic range normalizer class.
RangeNormalizer(double, double, double, double) - Constructor for class com.twitter.common.util.RangeNormalizer
 
RangeNumberVerifier - Class in com.twitter.common.args.constraints
Verifies that a number (inclusively) lies within a range.
RangeNumberVerifier() - Constructor for class com.twitter.common.args.constraints.RangeNumberVerifier
 
RangeParser - Class in com.twitter.common.args.parsers
A parser that handles closed ranges.
RangeParser() - Constructor for class com.twitter.common.args.parsers.RangeParser
 
Rate - Class in com.twitter.common.metrics
Gauge that computes a windowed rate.
Rate(String, Supplier<T>, Amount<Long, Time>) - Constructor for class com.twitter.common.metrics.Rate
Creates a rate using a supplier to access values.
Rate<T extends Number> - Class in com.twitter.common.stats
Function to compute a windowed per-second rate of a value.
Rate.Builder<T extends Number> - Class in com.twitter.common.stats
 
RateLimitedCommandExecutor - Class in com.twitter.common.util
CommandExecutor that invokes queueDrainer with a best-effort mechanism to execute with a fixed interval between requests of intervalBetweenRequests.
RateLimitedCommandExecutor(ScheduledExecutorService, Amount<Long, Time>, Runnable, BlockingQueue<RetryingRunnable>) - Constructor for class com.twitter.common.util.RateLimitedCommandExecutor
Create a CommandExecutor that executes enquequed tasks in the task executor with specified interval between executions.
Ratio - Class in com.twitter.common.metrics
Function to compute the ratio of two metrics.
Ratio - Class in com.twitter.common.stats
Function to compute the ratio of two time series.
read() - Method in interface com.twitter.common.metrics.Gauge
Reads the latest value of the metric.
read() - Method in class com.twitter.common.metrics.Rate
 
read() - Method in class com.twitter.common.metrics.Ratio
 
read() - Method in class com.twitter.common.stats.SampledStat
 
read() - Method in interface com.twitter.common.stats.Stat
Retrieves the most recent value of the stat.
read(TProtocol) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
READ_STAT - Static variable in class com.twitter.common.stats.NumericStatExporter
 
readBinary() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readBool() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readByte() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readDouble() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readFieldBegin() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readFieldEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readFromDataInput(InputStream) - Method in class com.twitter.common.util.Stat
Read the data from the inputstream so it can be used to populate the current objects state.
readFromDataInput(DataInput) - Method in class com.twitter.common.util.Stat
Read the data from the datainput so it can be used to populate the current objects state.
readI16() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readI32() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readI64() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readListBegin() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readListEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readMapBegin() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readMapEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readMessageBegin() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readMessageEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readSetBegin() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readSetEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readString() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readStructBegin() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readStructEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
readVInt() - Method in class com.twitter.common.text.util.TokenStreamSerializer.AttributeInputStream
Reads a value using VInt encoding.
record(T) - Method in class com.twitter.common.stats.Percentile
Records an event.
RegexDetector - Class in com.twitter.common.text.detector
Updates TypeAttribute of a token if the term matches a given regular expression.
RegexDetector(TokenStream) - Constructor for class com.twitter.common.text.detector.RegexDetector
 
RegexDetector.AbstractBuilder<N extends RegexDetector,T extends RegexDetector.AbstractBuilder<N,T>> - Class in com.twitter.common.text.detector
 
RegexDetector.AbstractBuilder(N) - Constructor for class com.twitter.common.text.detector.RegexDetector.AbstractBuilder
 
RegexDetector.Builder - Class in com.twitter.common.text.detector
 
RegexDetector.Builder(TokenStream) - Constructor for class com.twitter.common.text.detector.RegexDetector.Builder
 
RegexExtractor - Class in com.twitter.common.text.extractor
Extracts entities from text according to a given regular expression.
RegexExtractor() - Constructor for class com.twitter.common.text.extractor.RegexExtractor
Protected constructor for subclass builders, clients should use a builder to create an instance.
RegexExtractor.AbstractBuilder<N extends RegexExtractor,T extends RegexExtractor.AbstractBuilder<N,T>> - Class in com.twitter.common.text.extractor
 
RegexExtractor.AbstractBuilder(N) - Constructor for class com.twitter.common.text.extractor.RegexExtractor.AbstractBuilder
 
RegexExtractor.Builder - Class in com.twitter.common.text.extractor
 
RegexExtractor.Builder() - Constructor for class com.twitter.common.text.extractor.RegexExtractor.Builder
 
RegexTokenizer - Class in com.twitter.common.text.tokenizer
Tokenizes text based on regular expressions of word delimiters and punctuation characters.
RegexTokenizer() - Constructor for class com.twitter.common.text.tokenizer.RegexTokenizer
 
RegexTokenizer.AbstractBuilder<N extends RegexTokenizer,T extends RegexTokenizer.AbstractBuilder<N,T>> - Class in com.twitter.common.text.tokenizer
 
RegexTokenizer.AbstractBuilder(N) - Constructor for class com.twitter.common.text.tokenizer.RegexTokenizer.AbstractBuilder
 
RegexTokenizer.Builder - Class in com.twitter.common.text.tokenizer
Builder for RegexTokenizer.
RegexTokenizer.Builder() - Constructor for class com.twitter.common.text.tokenizer.RegexTokenizer.Builder
 
register(Gauge<T>) - Method in interface com.twitter.common.metrics.MetricRegistry
Registers a new gauge.
register(Gauge<T>) - Method in class com.twitter.common.metrics.Metrics
 
register(Gauge<T>) - Method in class com.twitter.common.metrics.ScopedMetrics
 
register(Watcher) - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Clients that need to register a top-level Watcher should do so using this method.
registerExpirationHandler(Command) - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Clients that need to re-establish state after session expiration can register an onExpired command to execute.
registerHandler(String, HttpServlet, Map<String, String>, boolean) - Method in class com.twitter.common.net.http.HttpServerDispatch
Registers a URI handler, replacing the existing handler if it exists.
registerHttpAsset(Binder, String, URL, String, boolean) - Static method in class com.twitter.common.application.http.Registration
Registers a binding for a URL asset to be served by the HTTP server, with an optional entity tag for cache control.
registerHttpAsset(Binder, String, Class<?>, String, String, boolean) - Static method in class com.twitter.common.application.http.Registration
Registers a binding for a classpath resource to be served by the HTTP server, using a resource path relative to a class.
registerLong(String) - Method in interface com.twitter.common.metrics.MetricRegistry
Creates a gauge and returns an AtomicLong that can be modified to update the value.
registerLong(String) - Method in class com.twitter.common.metrics.Metrics
 
registerLong(String) - Method in class com.twitter.common.metrics.ScopedMetrics
 
registerResources(Binder) - Static method in class com.twitter.common.application.http.GraphViewer
 
registerServlet(Binder, String, Class<? extends HttpServlet>, boolean) - Static method in class com.twitter.common.application.http.Registration
Equivalent to registerServlet(binder, new HttpServletConfig(path, servletClass, silent)).
registerServlet(Binder, HttpServletConfig) - Static method in class com.twitter.common.application.http.Registration
Registers a binding for an HttpServlet to be exported at a specified path.
registerSize(MetricRegistry, String, Collection) - Static method in class com.twitter.common.metrics.Gauges
Registers the size of a collection as a gauge.
Registration - Class in com.twitter.common.application.http
Utility class for registering HTTP servlets and assets.
release(S) - Method in class com.twitter.common.net.pool.ConnectionPool
 
release(Connection<T, E>) - Method in class com.twitter.common.net.pool.DynamicPool
 
release(Connection<T, E>) - Method in class com.twitter.common.net.pool.MetaPool
 
release(T) - Method in interface com.twitter.common.net.pool.ObjectPool
Releases a resource obtained from this pool back into the pool of available resources.
released(K) - Method in interface com.twitter.common.net.loadbalancing.LoadBalancer
Signals the load balancer that a connection was released, and is idle.
released(K) - Method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
 
released(K) - Method in interface com.twitter.common.net.monitoring.ConnectionMonitor
Informs the monitor that a connection was released.
released(K) - Method in class com.twitter.common.net.monitoring.TrafficMonitor
 
remove(S) - Method in class com.twitter.common.net.pool.ConnectionPool
Equivalent to releasing a Connection with isValid() == false.
remove(Connection<T, E>) - Method in class com.twitter.common.net.pool.DynamicPool
 
remove(Connection<T, E>) - Method in class com.twitter.common.net.pool.MetaPool
Equivalent to releasing a Connection with isValid() == false.
remove(T) - Method in interface com.twitter.common.net.pool.ObjectPool
Removes a resource obtained from this pool from its available resources.
remove(Object) - Method in class com.twitter.common.zookeeper.ZooKeeperMap
This map is readonly, this method throws a UnsupportedOperationException
requestComplete(long) - Method in class com.twitter.common.stats.RequestStats
Accumulates a request and its latency.
requestComplete(long) - Method in interface com.twitter.common.stats.StatsProvider.RequestTimer
Accumulates a request and its latency.
requestResult(K, RequestTracker.RequestResult, long) - Method in class com.twitter.common.net.loadbalancing.LoadBalancerImpl
 
requestResult(T, RequestTracker.RequestResult, long) - Method in interface com.twitter.common.net.loadbalancing.RequestTracker
Informs the tracker of a completed request.
requestResult(K, RequestTracker.RequestResult, long) - Method in class com.twitter.common.net.monitoring.TrafficMonitor
 
RequestStats - Class in com.twitter.common.stats
A class to represent the statistics associated with a client connection to an external service.
RequestStats(String) - Constructor for class com.twitter.common.stats.RequestStats
Creates a new request statistics object, using the default percentiles and sampling rate.
RequestStats(String, Percentile<Long>) - Constructor for class com.twitter.common.stats.RequestStats
Creates a new request statistics object using a custom percentile tracker.
RequestTracker<T> - Interface in com.twitter.common.net.loadbalancing
Tracks requests made to a backend service.
RequestTracker.RequestResult - Enum in com.twitter.common.net.loadbalancing
 
requireBinding(Binder, Class<?>) - Static method in class com.twitter.common.inject.Bindings
Equivalent to calling requireBinding(binder, Key.get(required)).
requireBinding(Binder, Key<?>) - Static method in class com.twitter.common.inject.Bindings
Registers required as non-optional dependency in the Injector associated with binder.
requireNamedBinding(Binder, Class<?>, String) - Static method in class com.twitter.common.inject.Bindings
Equivalent to calling requireBinding(binder, Key.get(required, Names.named(namedKey))).
ReservoirSampler<T> - Class in com.twitter.common.stats
An in memory implementation of Reservoir Sampling for sampling from a population.
ReservoirSampler(int, Random) - Constructor for class com.twitter.common.stats.ReservoirSampler
Create a new sampler with a certain reservoir size using a supplied random number generator.
ReservoirSampler(int) - Constructor for class com.twitter.common.stats.ReservoirSampler
Create a new sampler with a certain reservoir size using the default random number generator.
reset() - Method in class com.twitter.common.net.UrlResolver
 
reset(K) - Method in class com.twitter.common.stats.CounterMap
Resets the value for key.
reset(K) - Method in class com.twitter.common.stats.CounterMapWithTopKey
Resets the value for key.
reset() - Method in class com.twitter.common.stats.Elapsed
 
reset(CharSequence) - Method in class com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
 
reset(CharSequence) - Method in class com.twitter.common.text.extractor.RegexExtractor
Reset the extractor to use a new CharSequence as input.
reset(CharSequence) - Method in class com.twitter.common.text.token.LuceneTokenizer2TokenStreamWrapper
 
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenGroupStream
Resets this token group stream.
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenizedCharSequenceStream
 
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenProcessor
 
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenStream
Resets this TokenStream (and also downstream tokens if they exist) to parse a new input.
reset(Reader) - Method in class com.twitter.common.text.token.TokenStream2LuceneTokenizerWrapper
 
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenStreamAggregator
 
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenStreamDuplicator.DuplicatedTokenStream
 
reset(CharSequence) - Method in class com.twitter.common.text.token.TokenStreamDuplicator
 
reset(CharSequence) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer
 
reset() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
reset() - Method in class com.twitter.common.util.logging.UnresettableLogManager
 
resetStates(List<AttributeSource.State>) - Method in class com.twitter.common.text.token.TokenStreamDuplicator.DuplicatedTokenStream
 
resolved(Future<UrlResolver.ResolvedUrl>) - Method in interface com.twitter.common.net.UrlResolver.ResolvedUrlHandler
Signals that a URL has been resolved to its target.
resolveUrl(String) - Method in class com.twitter.common.net.UrlResolver
Resolves a URL synchronously.
resolveUrlAsync(String, UrlResolver.ResolvedUrlHandler) - Method in class com.twitter.common.net.UrlResolver
 
ResourceExhaustedException - Exception in com.twitter.common.net.pool
 
ResourceExhaustedException(String) - Constructor for exception com.twitter.common.net.pool.ResourceExhaustedException
 
ResourceExhaustedException(String, Throwable) - Constructor for exception com.twitter.common.net.pool.ResourceExhaustedException
 
ResourceLoggingConfigurator - Class in com.twitter.common.util.logging
A custom java.util.logging configuration class that loads the logging configuration from a properties file resource (as opposed to a file as natively supported by LogManager via java.util.logging.config.file).
ResourceLoggingConfigurator() - Constructor for class com.twitter.common.util.logging.ResourceLoggingConfigurator
 
restartNetwork() - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Starts zookeeper back up on the last used port.
restartNetwork() - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Starts zookeeper back up on the last used port.
resume() - Method in class com.twitter.common.util.StartWatch
 
retry() - Method in class com.twitter.common.util.concurrent.BackingOffFutureTask
 
retry() - Method in class com.twitter.common.util.concurrent.RetryingFutureTask
Invokes a retry of this task.
RETRY_FILTER - Static variable in class com.twitter.common.logging.ScribeLog
 
RetryingCaller - Class in com.twitter.common.thrift.callers
A caller that will retry calls to the wrapped caller.
RetryingCaller(Caller, boolean, StatsProvider, String, int, ImmutableSet<Class<? extends Exception>>, boolean) - Constructor for class com.twitter.common.thrift.callers.RetryingCaller
Creates a new retrying caller.
RetryingFutureTask - Class in com.twitter.common.util.concurrent
A future task that supports retries by resubmitting itself to an ExecutorService.
RetryingFutureTask(ExecutorService, Callable<Boolean>, int) - Constructor for class com.twitter.common.util.concurrent.RetryingFutureTask
Creates a new retrying future task that will execute a unit of work until successfully completed, or the retry limit has been reached.
RetryingRunnable<E extends Exception> - Class in com.twitter.common.util
A runnable task that is retried in a user-configurable fashion.
RetryingRunnable(String, ExceptionalCommand<E>, Class<E>, int, Amount<Long, Time>, CommandExecutor, int) - Constructor for class com.twitter.common.util.RetryingRunnable
Create a Task with name name that executes at most numTries in case of failure with an interval of retryDelay between attempts.
RetryingRunnable(String, ExceptionalCommand<E>, Class<E>, int, Amount<Long, Time>, CommandExecutor) - Constructor for class com.twitter.common.util.RetryingRunnable
Create a Task with name name that executes at most numTries in case of failure with an interval of retryDelay between attempts and sets tryNum to be the first (=1).
retryOn(Iterable<? extends Class<? extends Exception>>) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Specifies the set of exception classes that are to be considered retryable (if retries are enabled).
retryOn(Class<? extends Exception>) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Specifies the set of exception classes that are to be considered retryable (if retries are enabled).
root() - Static method in class com.twitter.common.metrics.Metrics
Returns a handle to the root metric registry.
RoundRobinStrategy<S> - Class in com.twitter.common.net.loadbalancing
A load balancer that distributes load by randomizing the list of available backends, and then rotating through them evenly.
RoundRobinStrategy() - Constructor for class com.twitter.common.net.loadbalancing.RoundRobinStrategy
 
run() - Method in class com.twitter.common.application.http.DefaultQuitHandler
 
run() - Method in class com.twitter.common.util.concurrent.RetryingFutureTask
 
run() - Method in class com.twitter.common.util.QueueDrainer
Picks tasks from the Queue to execute if present else no-op.
run() - Method in class com.twitter.common.util.RetryingRunnable
 

S

sample() - Method in interface com.twitter.common.metrics.MetricProvider
Obtains a snapshot of all available metric values.
sample() - Method in class com.twitter.common.metrics.Metrics
 
sample(T) - Method in class com.twitter.common.stats.ReservoirSampler
Sample an item and store in the reservoir if needed.
sample() - Method in class com.twitter.common.stats.SampledStat
 
SAMPLE_PERIOD - Static variable in class com.twitter.common.stats.TimeSeriesRepositoryImpl
@Named binding key for the sampling period.
SAMPLE_RETENTION_PERIOD - Static variable in class com.twitter.common.stats.TimeSeriesRepositoryImpl
@Named binding key for the maximum number of retained samples.
SampledStat<T extends Number> - Class in com.twitter.common.stats
A convenience class to perform the basic tasks needed for a RecordingStat except the actual value calculation.
SampledStat(String, T) - Constructor for class com.twitter.common.stats.SampledStat
 
Sampler - Class in com.twitter.common.util
A sampler that implements logic for fractional random selection.
Sampler(float) - Constructor for class com.twitter.common.util.Sampler
Creates a new sampler using the default system Random.
Sampler(float, Random) - Constructor for class com.twitter.common.util.Sampler
Creates a new sampler using the provided Random.
ScalarVerifier<T> - Class in com.twitter.common.args.constraints
Partial verifier implementation to simplify implementation of scalar verifiers.
ScalarVerifier() - Constructor for class com.twitter.common.args.constraints.ScalarVerifier
 
scale(double) - Method in class com.twitter.common.quantity.Amount
 
scheme() - Method in interface com.twitter.common.zookeeper.ZooKeeperClient.Credentials
Returns the authentication scheme these credentials are for.
scope(String) - Method in interface com.twitter.common.metrics.MetricRegistry
Returns or creates a sub-scope of this metric registry.
scope(String) - Method in class com.twitter.common.metrics.Metrics
 
scope(String) - Method in class com.twitter.common.metrics.ScopedMetrics
 
ScopedMetrics - Class in com.twitter.common.metrics
A metric registry that is a 'child' of another metric registry.
ScribeLog - Class in com.twitter.common.logging
Implementation of the scribe client, logs message directly to scribe.
ScribeLog(List<InetSocketAddress>) - Constructor for class com.twitter.common.logging.ScribeLog
Creats a new scribe client, connecting to the given hosts on the given port.
second() - Static method in class com.twitter.common.collections.Pair
Creates a function that can extract the second item of pairs of the given type parametrization.
select() - Method in class com.twitter.common.util.Sampler
 
SELECT_ALL - Static variable in class com.twitter.common.args.ArgFilters
A filter that selects all @CmdLine Args found on the classpath.
selectAllPackagesUnderHere(Package) - Static method in class com.twitter.common.args.ArgFilters
Creates a filter that selects all @CmdLine Args found in classes that are members of the given package or its sub-packages.
selectClass(Class<?>) - Static method in class com.twitter.common.args.ArgFilters
Creates a filter that selects all @CmdLine Args found in the given class.
selectClasses(Class<?>...) - Static method in class com.twitter.common.args.ArgFilters
Creates a filter that selects all @CmdLine Args found in the given classes.
selectCmdLineArg(Class<?>, String) - Static method in class com.twitter.common.args.ArgFilters
Creates a filter that selects a single @CmdLine Arg.
selectPackage(Package) - Static method in class com.twitter.common.args.ArgFilters
Creates a filter that selects all @CmdLine Args found in classes that are members of the given package.
self() - Method in class com.twitter.common.text.detector.PunctuationDetector.AbstractBuilder
 
self() - Method in class com.twitter.common.text.detector.RegexDetector.AbstractBuilder
 
self() - Method in class com.twitter.common.text.extractor.RegexExtractor.AbstractBuilder
 
self() - Method in class com.twitter.common.text.tokenizer.RegexTokenizer.AbstractBuilder
 
serialize(T, OutputStream) - Method in interface com.twitter.common.io.Codec
Writes a representation of item to the sink that can be read back by Codec.deserialize(java.io.InputStream).
serialize(T, OutputStream) - Method in class com.twitter.common.io.CompatibilityCodec
 
serialize(T, OutputStream) - Method in class com.twitter.common.io.JsonCodec
 
serialize(T, OutputStream) - Method in class com.twitter.common.io.ThriftCodec
 
serialize(TokenStreamSerializer.AttributeOutputStream) - Method in class com.twitter.common.text.util.CharSequenceTermAttributeSerializer
 
serialize(TokenStreamSerializer.AttributeOutputStream) - Method in class com.twitter.common.text.util.PositionIncrementAttributeSerializer
 
serialize(TokenStreamSerializer.AttributeOutputStream) - Method in interface com.twitter.common.text.util.TokenStreamSerializer.AttributeSerializer
Serializes a single attribute.
serialize(TokenStream) - Method in class com.twitter.common.text.util.TokenStreamSerializer
Serialize the given TokenStream into a byte array using the provided AttributeSerializer(s).
serialize(TokenStreamSerializer.AttributeOutputStream) - Method in class com.twitter.common.text.util.TokenTypeAttributeSerializer
 
SerializedFileStreamer<T extends Serializable> - Class in com.twitter.common.io
A streamer that reads from serialized files.
SerializedFileStreamer(Iterable<? extends ObjectInputStream>) - Constructor for class com.twitter.common.io.SerializedFileStreamer
Returns a streamer that will deserialize objects of type T from a set of files in the order the files are given.
ServerSet - Interface in com.twitter.common.zookeeper
A logical set of servers registered in ZooKeeper.
ServerSet.EndpointStatus - Interface in com.twitter.common.zookeeper
A handle to a service endpoint's status data that allows updating it to track current events.
ServerSet.UpdateException - Exception in com.twitter.common.zookeeper
Indicates an error updating a service's status information.
ServerSet.UpdateException(String, Throwable) - Constructor for exception com.twitter.common.zookeeper.ServerSet.UpdateException
 
SERVERSET_PATH - Static variable in class com.twitter.common.zookeeper.guice.ServerSetModule
 
ServerSetImpl - Class in com.twitter.common.zookeeper
Implementation of ServerSet.
ServerSetImpl(ZooKeeperClient, String) - Constructor for class com.twitter.common.zookeeper.ServerSetImpl
Creates a new ServerSet using open ZooKeeper node ACLs.
ServerSetImpl(ZooKeeperClient, Iterable<ACL>, String) - Constructor for class com.twitter.common.zookeeper.ServerSetImpl
Creates a new ServerSet for the given service path.
ServerSetImpl(ZooKeeperClient, Group) - Constructor for class com.twitter.common.zookeeper.ServerSetImpl
Creates a new ServerSet using the given service group.
ServerSetImpl(ZooKeeperClient, Group, Codec<ServiceInstance>) - Constructor for class com.twitter.common.zookeeper.ServerSetImpl
Creates a new ServerSet using the given service group and a custom codec.
ServerSetModule - Class in com.twitter.common.zookeeper.guice
A module that registers all ports in the LocalServiceRegistry in an ServerSet.
ServerSetModule() - Constructor for class com.twitter.common.zookeeper.guice.ServerSetModule
 
set(K, int) - Method in class com.twitter.common.stats.CounterMap
Assigns a value to a key.
set(K, int) - Method in class com.twitter.common.stats.CounterMapWithTopKey
Assigns a value to a key.
setAttributeSource(AttributeSource) - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
setBackends(Map<E, ObjectPool<Connection<T, E>>>) - Method in class com.twitter.common.net.pool.MetaPool
Assigns the backend pools that this pool should draw from.
setBit(int, int) - Static method in class com.twitter.common.collections.Bits
Sets a bit in an int value.
setBit(long, int) - Static method in class com.twitter.common.collections.Bits
Sets a bit in a long value.
setCharSequence(CharSequence) - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Sets the encapsulated CharSequence.
setCharSequence(CharSequence) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
setDelimiterPattern(Pattern) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer.AbstractBuilder
Sets the Regex pattern of the delimiter.
setDelimiterPattern(Pattern) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer
 
setExtractor(TokenStream) - Method in class com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
 
setFieldValue(TestThriftTypes.Field, Object) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
setFiles(String[]) - Method in class com.twitter.common.checkstyle.SplitSuppressionFilter
Loads the suppressions defined in the list of files given.
setIgnoreMethodNamesRegex(String) - Method in class com.twitter.common.checkstyle.JavadocMethodRegexCheck
 
setInjector(Injector) - Method in class com.twitter.common.inject.DefaultProvider
 
setKeepPunctuation(boolean) - Method in class com.twitter.common.text.DefaultTextTokenizer.Builder
Set to true to retain punctuation in output.
setKeepPunctuation(boolean) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer.AbstractBuilder
Specifies whether to keep punctuations (which is specified by delimiterPattern and punctuationGroupInDelimiterPattern) in the output token stream.
setKeepPunctuation(boolean) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer
 
setLength(int) - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Assigns the length to the specified value.
setLength(int) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
setMinLineCount(int) - Method in class com.twitter.common.checkstyle.JavadocMethodRegexCheck
 
setMode(TokenTypeFilter.Mode) - Method in class com.twitter.common.text.filter.TokenTypeFilter.Builder
Selects whether to accept tokens of the specified types or reject them.
setMode(TokenTypeFilter.Mode) - Method in class com.twitter.common.text.filter.TokenTypeFilter
 
setNowMillis(long) - Method in class com.twitter.common.util.testing.FakeClock
Sets what FakeClock.nowMillis() will return until this method is called again with a new value for now.
setOffset(int) - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Assigns the offset to the specified value.
setOffset(int) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
SetParser - Class in com.twitter.common.args.parsers
Set parser.
SetParser() - Constructor for class com.twitter.common.args.parsers.SetParser
 
setPOS(int) - Method in interface com.twitter.common.text.token.attribute.PartOfSpeechAttribute
Set PartOfSpeech (POS) of this token.
setPOS(int) - Method in class com.twitter.common.text.token.attribute.PartOfSpeechAttributeImpl
 
setPunctuationGroupInDelimiterPattern(int) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer.AbstractBuilder
Sets the ID of the group in delimiterPattern that should be handled as punctuation.
setPunctuationGroupInDelimiterPattern(int) - Method in class com.twitter.common.text.tokenizer.RegexTokenizer
 
setRegexPattern(Pattern) - Method in class com.twitter.common.text.detector.RegexDetector.AbstractBuilder
 
setRegexPattern(Pattern) - Method in class com.twitter.common.text.detector.RegexDetector
 
setRegexPattern(Pattern) - Method in class com.twitter.common.text.extractor.RegexExtractor.AbstractBuilder
 
setRegexPattern(Pattern, int, int) - Method in class com.twitter.common.text.extractor.RegexExtractor.AbstractBuilder
 
setRegexPattern(Pattern) - Method in class com.twitter.common.text.extractor.RegexExtractor
Sets the regular expression used in this RegexExtractor.
setRegexPattern(Pattern, int, int) - Method in class com.twitter.common.text.extractor.RegexExtractor
Sets the regular expression and start/end group ID used in this RegexExtractor.
setSocket(ServerSocket) - Method in class com.twitter.common.thrift.ThriftServer.ServerSetup
 
setStates(List<AttributeSource.State>) - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
setStatus(Status) - Method in class com.twitter.common.thrift.ThriftServer
Changes the status of the server.
setTermBuffer(CharSequence) - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Assigns the backing CharSequence for this attribute to the specified CharSequence.
setTermBuffer(CharSequence, int, int) - Method in interface com.twitter.common.text.token.attribute.CharSequenceTermAttribute
Assigns the backing CharSequence for this attribute to the specified CharSequence.
setTermBuffer(CharSequence) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
setTermBuffer(CharSequence, int, int) - Method in class com.twitter.common.text.token.attribute.CharSequenceTermAttributeImpl
 
setTriggeringChar(char) - Method in class com.twitter.common.text.extractor.RegexExtractor.AbstractBuilder
 
setTriggeringChar(char) - Method in class com.twitter.common.text.extractor.RegexExtractor
Sets a character that must appear in the input text.
setType(TokenType) - Method in class com.twitter.common.text.combiner.ExtractorBasedTokenCombiner
 
setType(TokenType) - Method in class com.twitter.common.text.combiner.LookAheadTokenCombiner
 
setType(TokenType) - Method in class com.twitter.common.text.detector.RegexDetector.AbstractBuilder
 
setType(TokenType) - Method in class com.twitter.common.text.detector.RegexDetector
 
setType(TokenType) - Method in interface com.twitter.common.text.token.attribute.TokenTypeAttribute
Sets the type of the current token.
setType(TokenType) - Method in class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
setTypesToFilter(TokenType...) - Method in class com.twitter.common.text.filter.TokenTypeFilter.Builder
Sets token types to accept or filter.
setTypesToFilter(TokenType...) - Method in class com.twitter.common.text.filter.TokenTypeFilter
 
setUp() - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
 
setupEasyMock() - Method in class com.twitter.common.testing.EasyMockTest
Creates an EasyMock EasyMockTest.control for tests to use that will be automatically verified on tear down.
ShortParser - Class in com.twitter.common.args.parsers
Short parser.
ShortParser() - Constructor for class com.twitter.common.args.parsers.ShortParser
 
shouldBackOff() - Method in class com.twitter.common.util.BackoffDecider
Checks whether this decider instructs the caller that it should back off from the associated backend.
shouldContinue() - Method in interface com.twitter.common.util.BackoffStrategy
Returns whether to continue backing off.
shouldContinue() - Method in class com.twitter.common.util.TruncatedBinaryBackoff
 
shouldRetry(KeeperException) - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Checks to see if the client might reasonably re-try an operation given the exception thrown while attempting it.
shutdown() - Method in class com.twitter.common.application.Lifecycle
Initiates an orderly shutdown of the lifecycle's registered shutdown hooks.
shutdown() - Method in class com.twitter.common.thrift.ThriftServer
Attempts to shut down the server.
shutdown() - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
shutdownNetwork() - Method in class com.twitter.common.zookeeper.testing.BaseZooKeeperTest
Shuts down the in-process zookeeper network server.
shutdownNetwork() - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Shuts down the in-process zookeeper network server.
shutdownNow() - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
ShutdownRegistry - Interface in com.twitter.common.application
A shutdown action controller.
ShutdownRegistry.ShutdownRegistryImpl - Class in com.twitter.common.application
 
ShutdownRegistry.ShutdownRegistryImpl() - Constructor for class com.twitter.common.application.ShutdownRegistry.ShutdownRegistryImpl
 
ShutdownStage - Annotation Type in com.twitter.common.application
Binding annotation used for the shutdown registry.
Significance - Class in com.twitter.common.stats
Calculate significance scores between an observed amount and an expected amount.
silent - Variable in class com.twitter.common.application.http.HttpAssetConfig
 
silent - Variable in class com.twitter.common.application.http.HttpServletConfig
 
SingletonService - Class in com.twitter.common.zookeeper
A service that uses master election to only allow a single instance of the server to join the ServerSet at a time.
SingletonService(ZooKeeperClient, String) - Constructor for class com.twitter.common.zookeeper.SingletonService
Equivalent to SingletonService.SingletonService(ZooKeeperClient, String, Iterable) with a default wide open acl (ZooDefs.Ids#OPEN_ACL_UNSAFE).
SingletonService(ZooKeeperClient, String, Iterable<ACL>) - Constructor for class com.twitter.common.zookeeper.SingletonService
Creates a new singleton service, identified by servicePath.
SingletonService.LeadershipListener - Interface in com.twitter.common.zookeeper
 
size() - Method in class com.twitter.common.collections.BoundedQueue
Returns the size of the queue.
size() - Method in class com.twitter.common.stats.CounterMap
Gets the number of entries stored in the map.
size() - Method in interface com.twitter.common.text.token.attribute.TokenGroupAttribute
Returns the size of this TokenGroup.
size() - Method in class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
size() - Method in class com.twitter.common.text.token.TokenGroupStream
 
size() - Method in class com.twitter.common.util.caching.LRUCache
 
SlidingStats - Class in com.twitter.common.stats
Tracks event statistics over a sliding window of time.
SlidingStats(String, String) - Constructor for class com.twitter.common.stats.SlidingStats
Creates a new sliding statistic with the given name
SMILEY_REGEX_PATTERN - Static variable in class com.twitter.common.text.extractor.EmoticonExtractor
 
SPACE_CHAR_CLASS - Static variable in class com.twitter.common.text.detector.PunctuationDetector
 
SPACE_REGEX - Static variable in class com.twitter.common.text.detector.PunctuationDetector
 
SplitSuppressionFilter - Class in com.twitter.common.checkstyle
This filter accepts AuditEvents according to file, check, line, and column, as specified in one or more suppression files.
SplitSuppressionFilter() - Constructor for class com.twitter.common.checkstyle.SplitSuppressionFilter
 
standardDeviation() - Method in class com.twitter.common.stats.Statistics
 
start(Amount<Long, Time>) - Method in class com.twitter.common.metrics.MetricPoller
Initiates the poller.
start(ShutdownRegistry) - Method in class com.twitter.common.stats.NumericStatExporter
Starts the stat exporter.
start(String) - Method in class com.twitter.common.stats.PipelineStats.Snapshot
Records the duration for the current pipeline stage, and advances to the next stage.
start(ShutdownRegistry) - Method in interface com.twitter.common.stats.TimeSeriesRepository
Starts the time series sampler.
start(ShutdownRegistry) - Method in class com.twitter.common.stats.TimeSeriesRepositoryImpl
Starts the variable sampler, which will fetch variables Stats on the given period.
start(int, TProcessor) - Method in class com.twitter.common.thrift.ThriftServer
Starts the server.
start(ThriftServer.ServerSetup) - Method in class com.twitter.common.thrift.ThriftServer
Starts the server.
start() - Method in class com.twitter.common.util.StartWatch
 
startNetwork() - Method in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
Starts zookeeper up on the configured port.
StartupRegistry - Class in com.twitter.common.application
A registry that executes a set of commands.
StartupRegistry(Set<ExceptionalCommand>) - Constructor for class com.twitter.common.application.StartupRegistry
 
StartupStage - Annotation Type in com.twitter.common.application
Binding annotation used for the startup registry.
StartWatch - Class in com.twitter.common.util
 
StartWatch() - Constructor for class com.twitter.common.util.StartWatch
 
Stat<T> - Interface in com.twitter.common.stats
A stat that may only be read, no method calls will cause any internal state changes.
Stat - Class in com.twitter.common.util
This class is designed to provide basic statistics collection.
Stat() - Constructor for class com.twitter.common.util.Stat
 
StateMachine<T> - Class in com.twitter.common.util
Represents a state machine that is not necessarily a Finite State Machine.
StateMachine.Builder<T> - Class in com.twitter.common.util
Builder to create a state machine.
StateMachine.Builder(String) - Constructor for class com.twitter.common.util.StateMachine.Builder
 
StateMachine.IllegalStateTransitionException - Exception in com.twitter.common.util
 
StateMachine.IllegalStateTransitionException(String) - Constructor for exception com.twitter.common.util.StateMachine.IllegalStateTransitionException
 
StateMachine.Rule<T> - Class in com.twitter.common.util
A state and its allowed transitions (if any) and (optional) callback.
StateMachine.Rule.AllowedTransition<T> - Class in com.twitter.common.util
A helper class when building a transition rule, to define the allowed transitions.
StateMachine.Transition<T> - Class in com.twitter.common.util
Representation of a state transition.
StateMachine.Transition(T, T, boolean) - Constructor for class com.twitter.common.util.StateMachine.Transition
 
StatImpl<T> - Class in com.twitter.common.stats
A convenience class to not require stat implementers to implement StatImpl.getName().
StatImpl(String) - Constructor for class com.twitter.common.stats.StatImpl
 
Statistics - Class in com.twitter.common.stats
A simple class to keep running statistics that require O(1) storage.
Statistics() - Constructor for class com.twitter.common.stats.Statistics
 
Stats - Class in com.twitter.common.stats
Manages Stats that should be exported for monitoring.
Stats() - Constructor for class com.twitter.common.stats.Stats
 
STATS_PROVIDER - Static variable in class com.twitter.common.stats.Stats
A StatsProvider that exports gauge-style stats to the global Stats repository for time series tracking.
StatsExportModule - Class in com.twitter.common.application.modules
Module to enable periodic exporting of registered stats to an external service.
StatsExportModule() - Constructor for class com.twitter.common.application.modules.StatsExportModule
 
StatsExportModule.StartCuckooExporter - Class in com.twitter.common.application.modules
 
StatsModule - Class in com.twitter.common.application.modules
Binding module for injections related to the in-process stats system.
StatsModule() - Constructor for class com.twitter.common.application.modules.StatsModule
 
StatsModule.StartStatPoller - Class in com.twitter.common.application.modules
 
StatsProvider - Interface in com.twitter.common.stats
A minimal interface to a Stats repository.
StatsProvider.RequestTimer - Interface in com.twitter.common.stats
A stat for tracking service requests.
StatTrackingCaller - Class in com.twitter.common.thrift.callers
A caller that exports statistics about calls made to the wrapped caller.
StatTrackingCaller(Caller, boolean, StatsProvider, String) - Constructor for class com.twitter.common.thrift.callers.StatTrackingCaller
Creates a new stat tracking caller, which will export stats to the given StatsProvider.
STOCK_SYMBOL_PATTERN - Static variable in class com.twitter.common.text.combiner.StockTokenCombiner
 
StockTokenCombiner - Class in com.twitter.common.text.combiner
Combines multiple tokens denoting a stock symbol (e.g., $YHOO) back into a single token.
StockTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.StockTokenCombiner
 
stop() - Method in class com.twitter.common.metrics.MetricPoller
Stops the poller.
stop() - Method in class com.twitter.common.net.http.HttpServerDispatch
Stops the HTTP server.
stop() - Method in class com.twitter.common.net.pool.MetaPool
Stops dead backend restoration attempts.
stop() - Method in class com.twitter.common.stats.NumericStatExporter
Stops the stat exporter.
STR_TO_INET - Static variable in class com.twitter.common.net.InetSocketAddressHelper
A function that uses InetSocketAddressHelper.parse(String) to map an endpoint spec to an InetSocketAddress.
Streamer<T> - Interface in com.twitter.common.io
Encapsulates iteration over a typed data stream that can be filtered.
StringParser - Class in com.twitter.common.args.parsers
String parser.
StringParser() - Constructor for class com.twitter.common.args.parsers.StringParser
 
StringTemplateServlet - Class in com.twitter.common.net.http.handlers
A base class for servlets that render using the string template templating system.
StringTemplateServlet(String, boolean) - Constructor for class com.twitter.common.net.http.handlers.StringTemplateServlet
Creates a new StringTemplateServlet that expects to find its template located in the same package on the classpath at 'templateName.st'.
StringTemplateServlet.CacheTemplates - Annotation Type in com.twitter.common.net.http.handlers
A @BindingAnnotation that allows configuration of whether or not StringTemplateServlets should cache their templates.
stripUrlParameters(String) - Static method in class com.twitter.common.net.UrlHelper
Strips URL parameters from a url.
stripUrlParameters(URL) - Static method in class com.twitter.common.net.UrlHelper
Convenience method that calls #stripUrlParameters(String) for a URL.
submit(Callable<T>) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
submit(Runnable, T) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
submit(Runnable) - Method in class com.twitter.common.util.concurrent.ForwardingExecutorService
 
subSequence(int, int) - Method in class com.twitter.common.text.token.TokenizedCharSequence
 
SubsetStrategy<S> - Class in com.twitter.common.net.loadbalancing
A load balancer that maintains a fixed upper bound on the number of backends that will be made available for a wrapped load balancer.
SubsetStrategy(int, LoadBalancingStrategy<S>) - Constructor for class com.twitter.common.net.loadbalancing.SubsetStrategy
 
success() - Method in interface com.twitter.common.thrift.callers.Caller.ResultCapture
Called when the request completed successfully.
Supplier<T> - Interface in com.twitter.common.base
A convenience typedef that also ties into google's Supplier.
SupplierE<T> - Interface in com.twitter.common.base
A convenience typedef for suppliers that throw multiple exception types.
SYSTEM_CLOCK - Static variable in interface com.twitter.common.util.Clock
A clock that returns the the actual time reported by the system.
SYSTEM_TMP - Static variable in class com.twitter.common.io.FileUtils
A temporary based at the default system temporary directory.

T

TearDownRegistry - Class in com.twitter.common.testing
An action registry suitable for use as a shutdownRegistry in tests that extend TearDownTestCase.
TearDownRegistry(TearDownAccepter) - Constructor for class com.twitter.common.testing.TearDownRegistry
Creates a new tear down registry that delegates execution of shutdown actions to a tearDownAccepter.
TestThriftTypes - Class in com.twitter.common.thrift.testing
Hand-coded thrift types for use in tests.
TestThriftTypes() - Constructor for class com.twitter.common.thrift.testing.TestThriftTypes
 
TestThriftTypes.Field - Class in com.twitter.common.thrift.testing
 
TestThriftTypes.Struct - Class in com.twitter.common.thrift.testing
 
TestThriftTypes.Struct() - Constructor for class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
TestThriftTypes.Struct(String, String) - Constructor for class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
TextResponseHandler - Class in com.twitter.common.net.http.handlers
A handler that responds to all requests in HTML format.
TextResponseHandler() - Constructor for class com.twitter.common.net.http.handlers.TextResponseHandler
 
TextResponseHandler(String) - Constructor for class com.twitter.common.net.http.handlers.TextResponseHandler
 
TextTokenizer - Class in com.twitter.common.text
 
TextTokenizer() - Constructor for class com.twitter.common.text.TextTokenizer
 
THREADPOOL_SERVER - Static variable in class com.twitter.common.thrift.ThriftServer
 
ThreadStackPrinter - Class in com.twitter.common.net.http.handlers
HTTP handler to print the stacks of all live threads.
ThreadStackPrinter() - Constructor for class com.twitter.common.net.http.handlers.ThreadStackPrinter
 
Thrift<T> - Class in com.twitter.common.thrift
A generic thrift client that handles reconnection in the case of protocol errors, automatic retries, call deadlines and call statistics tracking.
Thrift(ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, String, Class<T>, Function<TTransport, T>) - Constructor for class com.twitter.common.thrift.Thrift
Constructs an instance with the Thrift.DEFAULT_CONFIG, cached thread pool ExecutorService, and synchronous calls.
Thrift(ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, String, Class<T>, Function<TTransport, T>, boolean) - Constructor for class com.twitter.common.thrift.Thrift
Constructs an instance with the Thrift.DEFAULT_CONFIG and cached thread pool ExecutorService.
Thrift(ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, String, Class<T>, Function<TTransport, T>, boolean, boolean) - Constructor for class com.twitter.common.thrift.Thrift
Constructs an instance with the Thrift.DEFAULT_CONFIG and cached thread pool ExecutorService.
Thrift(Config, ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, String, Class<T>, Function<TTransport, T>, boolean, boolean) - Constructor for class com.twitter.common.thrift.Thrift
Constructs an instance with a cached thread pool ExecutorService.
Thrift(ExecutorService, ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, String, Class<T>, Function<TTransport, T>, boolean, boolean) - Constructor for class com.twitter.common.thrift.Thrift
Constructs an instance with the Thrift.DEFAULT_CONFIG.
Thrift(Config, ExecutorService, ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, String, Class<T>, Function<TTransport, T>, boolean, boolean) - Constructor for class com.twitter.common.thrift.Thrift
Constructs a new Thrift factory for creating clients that make calls to a particular thrift service.
Thrift.ClientBuilder - Class in com.twitter.common.thrift
A builder class that allows modifications of call behavior to be made for a given Thrift client.
THRIFT_CLIENT_MONITORS - Static variable in class com.twitter.common.net.http.handlers.ThriftServlet
@Named binding key for client monitor.
THRIFT_SERVER_MONITORS - Static variable in class com.twitter.common.net.http.handlers.ThriftServlet
@Named binding key for server monitor.
ThriftCaller<T> - Class in com.twitter.common.thrift.callers
A caller that issues calls to a target that is assumed to be a client to a thrift service.
ThriftCaller(ObjectPool<Connection<TTransport, InetSocketAddress>>, RequestTracker<InetSocketAddress>, Function<TTransport, T>, Amount<Long, Time>, boolean) - Constructor for class com.twitter.common.thrift.callers.ThriftCaller
Creates a new thrift caller.
ThriftCodec<T extends org.apache.thrift.TBase> - Class in com.twitter.common.io
A Codec that can encode and decode thrift structs.
ThriftCodec(Class<T>, Function<TTransport, TProtocol>) - Constructor for class com.twitter.common.io.ThriftCodec
Deprecated. use {@link ThriftCodec#create(thriftStructType, protocolFactory) instead.
ThriftCodec(Supplier<T>, Function<TTransport, TProtocol>) - Constructor for class com.twitter.common.io.ThriftCodec
 
ThriftConnectionFactory - Class in com.twitter.common.thrift
A connection factory for thrift transport connections to a given host.
ThriftConnectionFactory(String, int, int) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
Creates a thrift connection factory with a plain socket (non-framed transport).
ThriftConnectionFactory(String, int, int, boolean) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
Creates a thrift connection factory.
ThriftConnectionFactory(InetSocketAddress, int, boolean) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
Creates a thrift connection factory.
ThriftConnectionFactory(String, int, int, ThriftConnectionFactory.TransportType) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
Creates a thrift connection factory.
ThriftConnectionFactory(String, int, int, ThriftConnectionFactory.TransportType, Amount<Long, Time>) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
Creates a thrift connection factory.
ThriftConnectionFactory(InetSocketAddress, int, ThriftConnectionFactory.TransportType) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
 
ThriftConnectionFactory(InetSocketAddress, int, ThriftConnectionFactory.TransportType, Amount<Long, Time>) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
Creates a thrift connection factory.
ThriftConnectionFactory(InetSocketAddress, int, ThriftConnectionFactory.TransportType, Amount<Long, Time>, Closure<Connection<TTransport, InetSocketAddress>>, boolean) - Constructor for class com.twitter.common.thrift.ThriftConnectionFactory
 
ThriftConnectionFactory.TransportType - Enum in com.twitter.common.thrift
 
ThriftException - Exception in com.twitter.common.thrift
Exception class to wrap exceptions caught during thrift calls.
ThriftException(String) - Constructor for exception com.twitter.common.thrift.ThriftException
 
ThriftException(String, Throwable) - Constructor for exception com.twitter.common.thrift.ThriftException
 
ThriftFactory<T> - Class in com.twitter.common.thrift
A utility that provides convenience methods to build common Thrifts.
ThriftFactory.ThriftFactoryException - Exception in com.twitter.common.thrift
 
ThriftFactory.ThriftFactoryException(String) - Constructor for exception com.twitter.common.thrift.ThriftFactory.ThriftFactoryException
 
ThriftFactory.ThriftFactoryException(String, Throwable) - Constructor for exception com.twitter.common.thrift.ThriftFactory.ThriftFactoryException
 
ThriftModule - Class in com.twitter.common.application.modules
Binding module for thrift traffic monitor servlets, to ensure an empty set is available for the thrift traffic monitor servlet.
ThriftModule() - Constructor for class com.twitter.common.application.modules.ThriftModule
 
ThriftServer - Class in com.twitter.common.thrift
Implementation of common functionality to satisfy the twitter ThriftService interface.
ThriftServer(String, String) - Constructor for class com.twitter.common.thrift.ThriftServer
Creates a new default thrift server, which uses a TThreadPoolServer and
ThriftServer(String, String, Supplier<TProtocolFactory>, ExceptionalFunction<ThriftServer.ServerSetup, TServer, TTransportException>) - Constructor for class com.twitter.common.thrift.ThriftServer
Creates a new thrift server with the provided configuration.
ThriftServer.ServerSetup - Class in com.twitter.common.thrift
Represents the server configuration variables needed to construct a TServer.
ThriftServer.ServerSetup(int, TProcessor, TProtocolFactory) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(String, int, TProcessor, TProtocolFactory) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(int, TProcessor, TProtocolFactory, TrafficMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(int, TProcessor, TProtocolFactory, int, Amount<Integer, Time>) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(String, int, TProcessor, TProtocolFactory, int, Amount<Integer, Time>) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(String, int, TProcessor, TProtocolFactory, int, int, Amount<Integer, Time>) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(String, int, TProcessor, TProtocolFactory, int, Amount<Integer, Time>, TrafficMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServer.ServerSetup(String, int, TProcessor, TProtocolFactory, int, int, Amount<Integer, Time>, TrafficMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.ThriftServer.ServerSetup
 
ThriftServlet - Class in com.twitter.common.net.http.handlers
Servlet to display live information about registered thrift clients and servers.
ThriftServlet(Set<TrafficMonitor>, Set<TrafficMonitor>) - Constructor for class com.twitter.common.net.http.handlers.ThriftServlet
 
ThriftTranscoder<T extends org.apache.thrift.TBase> - Class in com.twitter.common.memcached
A memcached value transcoder that can transcode for a given thrift type.
ThriftTranscoder(Class<T>, Function<TTransport, TProtocol>) - Constructor for class com.twitter.common.memcached.ThriftTranscoder
 
throwOnBadTransition(boolean) - Method in class com.twitter.common.util.StateMachine.Builder
Allows the caller to specify whether StateMachine.IllegalStateTransitionException should be thrown when a bad state transition is attempted (the default behavior).
Time - Enum in com.twitter.common.quantity
Provides a unit to allow conversions and unambiguous passing around of time Amounts.
TimedInterceptor - Class in com.twitter.common.inject
A method interceptor that exports timing information for methods annotated with @Timed.
TimedInterceptor.Timed - Annotation Type in com.twitter.common.inject
Marks a method as a target for timing.
TimeDurationParser - Class in com.twitter.common.args.parsers
A parser for Duration objects.
TimeDurationParser() - Constructor for class com.twitter.common.args.parsers.TimeDurationParser
 
Timer - Class in com.twitter.common.util
A utility for timing blocks of code.
TimeSeries - Interface in com.twitter.common.stats
A time series of values.
TimeSeriesDataSource - Class in com.twitter.common.net.http.handlers
A servlet that implements the Google Visuaization Data Source API and provides time series data.
TimeSeriesDataSource(TimeSeriesRepository) - Constructor for class com.twitter.common.net.http.handlers.TimeSeriesDataSource
 
TimeSeriesRepository - Interface in com.twitter.common.stats
A repository for time series data.
TimeSeriesRepositoryImpl - Class in com.twitter.common.stats
A simple in-memory repository for exported variables.
TimeSeriesRepositoryImpl(Amount<Long, Time>, Amount<Long, Time>) - Constructor for class com.twitter.common.stats.TimeSeriesRepositoryImpl
 
TMonitoredNonblockingServerSocket - Class in com.twitter.common.thrift.monitoring
Extension of TNonblockingServerSocket that allows for tracking of connected clients.
TMonitoredNonblockingServerSocket(int, ConnectionMonitor) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredNonblockingServerSocket
 
TMonitoredNonblockingServerSocket(int, int, ConnectionMonitor) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredNonblockingServerSocket
 
TMonitoredNonblockingServerSocket(InetSocketAddress, ConnectionMonitor) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredNonblockingServerSocket
 
TMonitoredNonblockingServerSocket(InetSocketAddress, int, ConnectionMonitor) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredNonblockingServerSocket
 
TMonitoredProcessor - Class in com.twitter.common.thrift.monitoring
A TProcessor that joins a wrapped TProcessor with a monitor.
TMonitoredProcessor(TProcessor, TMonitoredServerSocket, RequestTracker<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredProcessor
 
TMonitoredServerSocket - Class in com.twitter.common.thrift.monitoring
Extension of TServerSocket that allows for tracking of connected clients.
TMonitoredServerSocket(ServerSocket, ConnectionMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
TMonitoredServerSocket(ServerSocket, int, ConnectionMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
TMonitoredServerSocket(int, ConnectionMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
TMonitoredServerSocket(int, int, ConnectionMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
TMonitoredServerSocket(InetSocketAddress, ConnectionMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
TMonitoredServerSocket(InetSocketAddress, int, ConnectionMonitor<InetSocketAddress>) - Constructor for class com.twitter.common.thrift.monitoring.TMonitoredServerSocket
 
to(T) - Method in class com.twitter.common.util.StateMachine.Rule.AllowedTransition
Associates a single allowed transition with this state.
to(T, T...) - Method in class com.twitter.common.util.StateMachine.Rule.AllowedTransition
Associates multiple transitions with this state.
to(T...) - Static method in class com.twitter.common.util.StateMachine.Transition
Creates a predicate that returns true for transitions to the given states.
TokenFilter - Class in com.twitter.common.text.filter
Filters out tokens from a given TokenStream.
TokenFilter(TokenStream) - Constructor for class com.twitter.common.text.filter.TokenFilter
 
TokenGroupAttribute - Interface in com.twitter.common.text.token.attribute
Attribute representing a group of tokens.
TokenGroupAttributeImpl - Class in com.twitter.common.text.token.attribute
Implementation of TokenGroupAttribute.
TokenGroupAttributeImpl() - Constructor for class com.twitter.common.text.token.attribute.TokenGroupAttributeImpl
 
TokenGroupStream - Class in com.twitter.common.text.token
A TokenStream used to access the member of a token group created by TokenGrouper.
TokenGroupStream(AttributeSource, List<AttributeSource.State>) - Constructor for class com.twitter.common.text.token.TokenGroupStream
 
tokenizationStream - Variable in class com.twitter.common.text.TextTokenizer
 
tokenize(CharSequence) - Method in class com.twitter.common.text.TextTokenizer
Tokenizes a CharSequence, and returns a TokenizedCharSequence as a result.
TokenizedCharSequence - Class in com.twitter.common.text.token
Keeps the original text as well as its tokenized tokens.
TokenizedCharSequence(CharSequence, List<TokenizedCharSequence.Token>) - Constructor for class com.twitter.common.text.token.TokenizedCharSequence
 
TokenizedCharSequence.Builder - Class in com.twitter.common.text.token
 
TokenizedCharSequence.Builder(CharSequence) - Constructor for class com.twitter.common.text.token.TokenizedCharSequence.Builder
 
TokenizedCharSequence.Token - Class in com.twitter.common.text.token
 
TokenizedCharSequence.Token(CharBuffer, TokenType) - Constructor for class com.twitter.common.text.token.TokenizedCharSequence.Token
 
TokenizedCharSequence.Token(CharBuffer, TokenType, int) - Constructor for class com.twitter.common.text.token.TokenizedCharSequence.Token
 
TokenizedCharSequenceStream - Class in com.twitter.common.text.token
Reproduces the result of tokenization if an input text is an instance of TokenizedCharSequence.
TokenizedCharSequenceStream(TokenStream) - Constructor for class com.twitter.common.text.token.TokenizedCharSequenceStream
Constructor.
TokenizedCharSequenceStream() - Constructor for class com.twitter.common.text.token.TokenizedCharSequenceStream
Constructor.
TokenizerUsageExample - Class in com.twitter.common.text.example
Annotated example illustrating major features of DefaultTextTokenizer.
TokenizerUsageExample() - Constructor for class com.twitter.common.text.example.TokenizerUsageExample
 
tokenizeToStrings(CharSequence) - Method in class com.twitter.common.text.TextTokenizer
Tokenizes a CharSequence into a list of Strings.
TokenProcessor - Class in com.twitter.common.text.token
A TokenStream whose input is another TokenStream.
TokenProcessor(TokenStream) - Constructor for class com.twitter.common.text.token.TokenProcessor
Constructs a new TokenProcessor.
TokenStream - Class in com.twitter.common.text.token
Abstraction to enumerate a sequence of tokens.
TokenStream() - Constructor for class com.twitter.common.text.token.TokenStream
Constructs a TokenStream using the default attribute factory.
TokenStream(AttributeSource.AttributeFactory) - Constructor for class com.twitter.common.text.token.TokenStream
Constructs a TokenStream using the supplied AttributeFactory for creating new Attribute instances.
TokenStream(AttributeSource) - Constructor for class com.twitter.common.text.token.TokenStream
Constructs a TokenStream that uses the same attributes as the supplied one.
TokenStream2LuceneTokenizerWrapper - Class in com.twitter.common.text.token
Converts a TokenStream instance to a Lucene's Tokenizer instance.
TokenStream2LuceneTokenizerWrapper(TokenStream, Reader) - Constructor for class com.twitter.common.text.token.TokenStream2LuceneTokenizerWrapper
 
TokenStreamAggregator - Class in com.twitter.common.text.token
Aggregates the outputs of multiple TokenStreams into a single TokenStream.
TokenStreamAggregator(TokenStream...) - Constructor for class com.twitter.common.text.token.TokenStreamAggregator
 
TokenStreamDuplicator - Class in com.twitter.common.text.token
Creates a duplicate a TokenStream.
TokenStreamDuplicator(TokenStream) - Constructor for class com.twitter.common.text.token.TokenStreamDuplicator
Constructs a new TokenStreamDuplicator.
TokenStreamDuplicator.DuplicatedTokenStream - Class in com.twitter.common.text.token
 
TokenStreamDuplicator.DuplicatedTokenStream(TokenStream) - Constructor for class com.twitter.common.text.token.TokenStreamDuplicator.DuplicatedTokenStream
 
TokenStreamSerializer - Class in com.twitter.common.text.util
Helper class to serialize a TokenStream into a byte array.
TokenStreamSerializer.AttributeInputStream - Class in com.twitter.common.text.util
A DataInputStream that supports VInt-encoding.
TokenStreamSerializer.AttributeOutputStream - Class in com.twitter.common.text.util
A DataOutputStream that supports VInt-encoding.
TokenStreamSerializer.AttributeSerializer - Interface in com.twitter.common.text.util
Defines how individual attributes a (de)serialized.
TokenStreamSerializer.Builder - Class in com.twitter.common.text.util
Builds an TokenStreamSerializer.
TokenStreamSerializer.Builder() - Constructor for class com.twitter.common.text.util.TokenStreamSerializer.Builder
 
TokenStreamSerializer.Version - Enum in com.twitter.common.text.util
 
TokenType - Enum in com.twitter.common.text.token.attribute
Contains all token types supported by TokenTypeAttribute.
TokenTypeAttribute - Interface in com.twitter.common.text.token.attribute
Attribute representing the type of each token.
TokenTypeAttributeImpl - Class in com.twitter.common.text.token.attribute
Implementation of TokenTypeAttribute.
TokenTypeAttributeImpl() - Constructor for class com.twitter.common.text.token.attribute.TokenTypeAttributeImpl
 
TokenTypeAttributeSerializer - Class in com.twitter.common.text.util
(De)Serializes {@link TokenTypeAttribute)s.
TokenTypeAttributeSerializer() - Constructor for class com.twitter.common.text.util.TokenTypeAttributeSerializer
 
TokenTypeFilter - Class in com.twitter.common.text.filter
Either filters out or retains tokens of a specified type(s).
TokenTypeFilter(TokenStream) - Constructor for class com.twitter.common.text.filter.TokenTypeFilter
 
TokenTypeFilter.Builder - Class in com.twitter.common.text.filter
 
TokenTypeFilter.Builder(TokenStream) - Constructor for class com.twitter.common.text.filter.TokenTypeFilter.Builder
 
TokenTypeFilter.Mode - Enum in com.twitter.common.text.filter
 
toMap() - Method in class com.twitter.common.stats.CounterMap
 
toString() - Method in class com.twitter.common.application.modules.LocalServiceRegistry.LocalService
 
toString() - Method in class com.twitter.common.args.apt.Configuration.ArgInfo
 
toString() - Method in class com.twitter.common.args.apt.Configuration.ParserInfo
 
toString() - Method in class com.twitter.common.args.apt.Configuration.VerifierInfo
 
toString(Class<File>, Annotation) - Method in class com.twitter.common.args.constraints.CanExecuteFileVerifier
 
toString(Class<File>, Annotation) - Method in class com.twitter.common.args.constraints.CanReadFileVerifier
 
toString(Class<File>, Annotation) - Method in class com.twitter.common.args.constraints.CanWriteFileVerifier
 
toString(Class<File>, Annotation) - Method in class com.twitter.common.args.constraints.ExistsFileVerifier
 
toString(Class<File>, Annotation) - Method in class com.twitter.common.args.constraints.IsDirectoryFileVerifier
 
toString(Class<Iterable<?>>, Annotation) - Method in class com.twitter.common.args.constraints.NotEmptyIterableVerifier
 
toString(Class<String>, Annotation) - Method in class com.twitter.common.args.constraints.NotEmptyStringVerifier
 
toString(Class<Number>, Annotation) - Method in class com.twitter.common.args.constraints.NotNegativeNumberVerifier
 
toString(Class<Object>, Annotation) - Method in class com.twitter.common.args.constraints.NotNullVerifier
 
toString(Class<Number>, Annotation) - Method in class com.twitter.common.args.constraints.PositiveNumberVerifier
 
toString(Class<Number>, Annotation) - Method in class com.twitter.common.args.constraints.RangeNumberVerifier
 
toString(Class<T>, Annotation) - Method in interface com.twitter.common.args.Verifier
Returns a representation of the constraint this verifier checks.
toString() - Method in class com.twitter.common.collections.BoundedQueue
 
toString() - Method in class com.twitter.common.collections.Pair
 
toString(InetSocketAddress) - Static method in class com.twitter.common.net.InetSocketAddressHelper
Attempts to return a usable String given an InetSocketAddress.
toString() - Method in class com.twitter.common.net.pool.ConnectionPool
 
toString() - Method in class com.twitter.common.net.UrlResolver.ResolvedUrl
 
toString() - Method in class com.twitter.common.net.UrlResolver
 
toString() - Method in class com.twitter.common.quantity.Amount
 
toString() - Method in enum com.twitter.common.quantity.Time
 
toString() - Method in class com.twitter.common.reflect.TypeToken
 
toString() - Method in class com.twitter.common.stats.CounterMap
 
toString() - Method in class com.twitter.common.stats.CounterMapWithTopKey
 
toString() - Method in class com.twitter.common.stats.PrintableHistogram
 
toString() - Method in class com.twitter.common.stats.SlidingStats
 
toString() - Method in class com.twitter.common.stats.Statistics
 
toString() - Method in class com.twitter.common.text.token.TokenizedCharSequence.Token
 
toString() - Method in class com.twitter.common.text.token.TokenizedCharSequence
 
toString() - Method in class com.twitter.common.thrift.ThriftConnectionFactory
 
toString() - Method in class com.twitter.common.thrift.TTransportConnection
 
toString() - Method in class com.twitter.common.util.caching.LRUCache
 
toString() - Method in class com.twitter.common.util.RetryingRunnable
 
toString() - Method in class com.twitter.common.util.Stat
Create a string representation of the statistics collected so far.
toString(boolean) - Method in class com.twitter.common.util.Stat
Create a string representation of the statistics collected so far.
toString() - Method in class com.twitter.common.util.StateMachine.Transition
 
toString() - Method in class com.twitter.common.zookeeper.Group
 
toStringList() - Method in class com.twitter.common.text.token.TokenStream
Converts this token stream into a list of Strings.
toUnixTime(Date) - Static method in class com.twitter.common.util.DateUtils
 
toUnixTime(long) - Static method in class com.twitter.common.util.DateUtils
 
TrafficMonitor<K> - Class in com.twitter.common.net.monitoring
Monitors activity on established connections between two hosts.
TrafficMonitor(String) - Constructor for class com.twitter.common.net.monitoring.TrafficMonitor
Creates a new traffic monitor using the default cleanup interval.
TrafficMonitor(String, Amount<Long, Time>) - Constructor for class com.twitter.common.net.monitoring.TrafficMonitor
Creates a new traffic monitor with a custom cleanup interval.
TrafficMonitor.TrafficInfo - Class in com.twitter.common.net.monitoring
Information about traffic obsserved to/from a specific host.
TrafficMonitorAdapter<K> - Class in com.twitter.common.net.loadbalancing
 
TrafficMonitorAdapter(LoadBalancingStrategy<K>, TrafficMonitor<K>) - Constructor for class com.twitter.common.net.loadbalancing.TrafficMonitorAdapter
 
transition(T) - Method in class com.twitter.common.util.StateMachine
Transitions the machine into state nextState.
transition(T, T) - Static method in class com.twitter.common.util.StateMachine.Transition
Creates a predicate that returns true for a specific state transition.
transitionToBackOff(double, boolean) - Method in class com.twitter.common.util.BackoffDecider
Transitions the state to BACKOFF and logs a message appropriately if it is doing so because of high fail rate or by force.
transport(E) - Method in class com.twitter.common.base.ExceptionTransporter
Throws the given checked exception across a boundary that does not allow checked exceptions.
TResourceExhaustedException - Exception in com.twitter.common.thrift
 
TResourceExhaustedException(String) - Constructor for exception com.twitter.common.thrift.TResourceExhaustedException
 
TResourceExhaustedException(Throwable) - Constructor for exception com.twitter.common.thrift.TResourceExhaustedException
 
TResourceExhaustedException(String, Throwable) - Constructor for exception com.twitter.common.thrift.TResourceExhaustedException
 
TruncatedBinaryBackoff - Class in com.twitter.common.util
A BackoffStrategy that implements truncated binary exponential backoff.
TruncatedBinaryBackoff(Amount<Long, Time>, Amount<Long, Time>, boolean) - Constructor for class com.twitter.common.util.TruncatedBinaryBackoff
Creates a new TruncatedBinaryBackoff that will start by backing off for initialBackoff and then backoff of twice as long each time its called until reaching the maxBackoff at which point shouldContinue() will return false and any future backoffs will always wait for that amount of time.
TruncatedBinaryBackoff(Amount<Long, Time>, Amount<Long, Time>) - Constructor for class com.twitter.common.util.TruncatedBinaryBackoff
Same as main constructor, but this will always return true from shouldContinue().
tryLock(long, TimeUnit) - Method in interface com.twitter.common.zookeeper.DistributedLock
 
tryLock(long, TimeUnit) - Method in class com.twitter.common.zookeeper.DistributedLockImpl
 
tryShutdown() - Method in class com.twitter.common.thrift.ThriftServer
Notification to the server that a shutdown request has been made, and the server is no longer processing requests.
TTextProtocol - Class in com.twitter.common.thrift.text
A simple text format for serializing/deserializing thrift messages.
TTextProtocol(TTransport) - Constructor for class com.twitter.common.thrift.text.TTextProtocol
Create a parser which can read from trans, and create the output writer that can write to a TTransport
TTextProtocol.Factory - Class in com.twitter.common.thrift.text
Factory
TTextProtocol.Factory() - Constructor for class com.twitter.common.thrift.text.TTextProtocol.Factory
 
TTimeoutException - Exception in com.twitter.common.thrift
 
TTimeoutException(String) - Constructor for exception com.twitter.common.thrift.TTimeoutException
 
TTimeoutException(Throwable) - Constructor for exception com.twitter.common.thrift.TTimeoutException
 
TTimeoutException(String, Throwable) - Constructor for exception com.twitter.common.thrift.TTimeoutException
 
TTransportConnection - Class in com.twitter.common.thrift
A ConnectionPool compatible thrift connection that can work with any valid thrift transport.
TTransportConnection(TTransport, InetSocketAddress) - Constructor for class com.twitter.common.thrift.TTransportConnection
 
type - Variable in class com.twitter.common.reflect.TypeToken
The type captured by this type token.
TypeParameterizedParser<T> - Class in com.twitter.common.args.parsers
Parser that makes implementation of parsers for parameterized types simpler.
TypeToken<T> - Class in com.twitter.common.reflect
A class meant to be sub-classed in order to capture a generic type literal value.
TypeToken() - Constructor for class com.twitter.common.reflect.TypeToken
 
TypeUtil - Class in com.twitter.common.args
Utility class to extract generic type information.

U

uncaughtException(Thread, Throwable) - Method in class com.twitter.common.application.modules.AppLauncherModule.LoggingExceptionHandler
 
Unit<U extends Unit<U>> - Interface in com.twitter.common.quantity
Represents a unit hierarchy for a given unit of measure; eg: time.
UnitParser - Class in com.twitter.common.args.parsers
Unit parser.
UnitParser() - Constructor for class com.twitter.common.args.parsers.UnitParser
 
UNKNOWN - Static variable in interface com.twitter.common.text.token.attribute.PartOfSpeechAttribute
 
unlock() - Method in interface com.twitter.common.zookeeper.DistributedLock
 
unlock() - Method in class com.twitter.common.zookeeper.DistributedLockImpl
 
unregister(Watcher) - Method in class com.twitter.common.zookeeper.ZooKeeperClient
Clients can attempt to unregister a top-level Watcher that has previously been registered.
UnresettableLogManager - Class in com.twitter.common.util.logging
A LogManager which by default ignores calls to UnresettableLogManager.reset().
UnresettableLogManager() - Constructor for class com.twitter.common.util.logging.UnresettableLogManager
 
update(Status) - Method in interface com.twitter.common.zookeeper.ServerSet.EndpointStatus
Attempts to update the status of the service endpoint associated with this endpoint.
updateMemberData() - Method in interface com.twitter.common.zookeeper.Group.Membership
Updates the membership data synchronously using the Supplier<byte[]> passed to Group.join().
updateStats(Map<String, Number>) - Method in interface com.twitter.common.metrics.MetricListener
Notifies the listener of updated samples.
uptime() - Method in class com.twitter.common.thrift.ThriftServer
 
URIParser - Class in com.twitter.common.args.parsers
URI parser.
URIParser() - Constructor for class com.twitter.common.args.parsers.URIParser
 
URLExtractor - Class in com.twitter.common.text.extractor
Extracts URLs from text, according to the canonical definition found in the twitter-text-java library Regex.
URLExtractor() - Constructor for class com.twitter.common.text.extractor.URLExtractor
Default constructor.
UrlHelper - Class in com.twitter.common.net
 
UrlHelper() - Constructor for class com.twitter.common.net.UrlHelper
 
URLParser - Class in com.twitter.common.args.parsers
URL parser.
URLParser() - Constructor for class com.twitter.common.args.parsers.URLParser
 
UrlResolver - Class in com.twitter.common.net
Class to aid in resolving URLs by following redirects, which can optionally be performed asynchronously using a thread pool.
UrlResolver(int, int, ProxyConfig) - Constructor for class com.twitter.common.net.UrlResolver
Creates a new asynchronous URL resolver.
UrlResolver(int, int) - Constructor for class com.twitter.common.net.UrlResolver
 
UrlResolver.ResolvedUrl - Class in com.twitter.common.net
Class to wrap the result of a URL resolution.
UrlResolver.ResolvedUrl() - Constructor for class com.twitter.common.net.UrlResolver.ResolvedUrl
 
UrlResolver.ResolvedUrl(UrlResolver.ResolvedUrl.EndState, String, String...) - Constructor for class com.twitter.common.net.UrlResolver.ResolvedUrl
 
UrlResolver.ResolvedUrl.EndState - Enum in com.twitter.common.net
 
UrlResolver.ResolvedUrlHandler - Interface in com.twitter.common.net
Interface to use for notifying the caller of resolved URLs.
URLTokenCombiner - Class in com.twitter.common.text.combiner
Combines multiple tokens denoting a URL back into a single token.
URLTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.URLTokenCombiner
 
UrlTokenizerUtil - Class in com.twitter.common.net
Utility methods to help with url tokenization.
UrlTokenizerUtil() - Constructor for class com.twitter.common.net.UrlTokenizerUtil
 
useFramedTransport(boolean) - Method in class com.twitter.common.thrift.ThriftFactory
Instructs the factory whether framed transport should be used.
UserNameExtractor - Class in com.twitter.common.text.extractor
Extracts user names ('@'+{username}) from text, according to the canonical definition found in the twitter-text-java library Regex.
UserNameExtractor() - Constructor for class com.twitter.common.text.extractor.UserNameExtractor
Default constructor.
UserNameTokenCombiner - Class in com.twitter.common.text.combiner
Combines multiple tokens denoting a username (e.g., @keita_f) back into a single token.
UserNameTokenCombiner(TokenStream) - Constructor for class com.twitter.common.text.combiner.UserNameTokenCombiner
 
Util - Class in com.twitter.common.thrift
Utility functions for thrift.

V

VALUE - Static variable in class com.twitter.common.thrift.testing.TestThriftTypes.Field
 
value - Variable in enum com.twitter.common.util.BuildInfo.Key
 
valueOf(String) - Static method in enum com.twitter.common.net.loadbalancing.LoadBalancingStrategy.ConnectionResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.net.loadbalancing.RequestTracker.RequestResult
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.net.UrlResolver.ResolvedUrl.EndState
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.quantity.Data
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.quantity.Time
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.text.extractor.EmoticonExtractor.Polarity
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.text.filter.TokenTypeFilter.Mode
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.text.token.attribute.TokenType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.text.util.TokenStreamSerializer.Version
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.thrift.ThriftConnectionFactory.TransportType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.util.BackoffDecider.RecoveryType
Returns the enum constant of this type with the specified name.
valueOf(String) - Static method in enum com.twitter.common.util.BuildInfo.Key
Returns the enum constant of this type with the specified name.
values() - Static method in enum com.twitter.common.net.loadbalancing.LoadBalancingStrategy.ConnectionResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.net.loadbalancing.RequestTracker.RequestResult
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.net.UrlResolver.ResolvedUrl.EndState
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.quantity.Data
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.quantity.Time
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Method in class com.twitter.common.stats.CounterMap
 
values() - Static method in enum com.twitter.common.text.extractor.EmoticonExtractor.Polarity
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.text.filter.TokenTypeFilter.Mode
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.text.token.attribute.TokenType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.text.util.TokenStreamSerializer.Version
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.thrift.ThriftConnectionFactory.TransportType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.util.BackoffDecider.RecoveryType
Returns an array containing the constants of this enum type, in the order they are declared.
values() - Static method in enum com.twitter.common.util.BuildInfo.Key
Returns an array containing the constants of this enum type, in the order they are declared.
variance() - Method in class com.twitter.common.stats.Statistics
 
VarsHandler - Class in com.twitter.common.net.http.handlers
HTTP handler that prints all registered variables and their current values.
VarsJsonHandler - Class in com.twitter.common.net.http.handlers
A servlet that returns the current value of all variables in JSON format.
verifiedType - Variable in class com.twitter.common.args.apt.Configuration.VerifierInfo
 
Verifier<T> - Interface in com.twitter.common.args
Typedef for a constraint verifier.
verifierClass - Variable in class com.twitter.common.args.apt.Configuration.VerifierInfo
 
VerifierFor - Annotation Type in com.twitter.common.args
Annotation to register a command line argument verifier.
verifierInfo() - Method in class com.twitter.common.args.apt.Configuration
Returns the verifier info for all the @VerifierFor annotated verifiers on the classpath.
Verifiers - Class in com.twitter.common.args
Utility class to manage relationships between constraints and types.
verify(String) - Method in class com.twitter.common.args.constraints.NotEmptyStringVerifier
 
verify(Number) - Method in class com.twitter.common.args.constraints.NotNegativeNumberVerifier
 
verify(Number) - Method in class com.twitter.common.args.constraints.PositiveNumberVerifier
 
verify(Number, Annotation) - Method in class com.twitter.common.args.constraints.RangeNumberVerifier
 
verify(T, Annotation) - Method in class com.twitter.common.args.constraints.ScalarVerifier
 
verify(T, Annotation) - Method in interface com.twitter.common.args.Verifier
Verifies the value against the annotation.
verifyingAnnotation - Variable in class com.twitter.common.args.apt.Configuration.VerifierInfo
 
visitToken(DetailAST) - Method in class com.twitter.common.checkstyle.IllegalThrowsCheck
 
visitToken(DetailAST) - Method in class com.twitter.common.checkstyle.NonOverriddenMethodNameCheck
 

W

waitFor(long) - Method in interface com.twitter.common.util.Clock
Waits for the given amount of time to pass on this clock before returning.
waitFor(long) - Method in class com.twitter.common.util.testing.FakeClock
Waits in fake time, immediately returning in real time; however a check of FakeClock.nowMillis() after this method completes will consistently reveal that millis did in fact pass while waiting.
watch(Group.GroupChangeListener) - Method in class com.twitter.common.zookeeper.Group
Watches this group for the lifetime of this jvm process.
with(Binder) - Method in interface com.twitter.common.inject.Bindings.BindHelper
Associates this BindHelper with an Injector instance.
withBucketCount(int) - Method in class com.twitter.common.util.BackoffDecider.Builder
Sets the number of time slices that the decider will use to partition aggregate statistics.
withCallback(Closure<StateMachine.Transition<T>>) - Method in class com.twitter.common.util.StateMachine.Rule
Associates a callback to be triggered after any attempt to transition from this state is made.
withChunkLength(int) - Method in class com.twitter.common.logging.BufferedLog.Builder
Specifies the desired number of log records to submit in each request.
withClientFactory(Function<TTransport, T>) - Method in class com.twitter.common.thrift.ThriftFactory
 
withClock(Clock) - Method in class com.twitter.common.util.BackoffDecider.Builder
 
withConnectTimeout(Amount<Long, Time>) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Assigns the timeout for all connections established with the blocking client.
withDeadConnectionRestoreInterval(Amount<Long, Time>) - Method in class com.twitter.common.thrift.ThriftFactory
Specifies the interval at which dead endpoint connections should be checked and revived.
withDebug(boolean) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
When debug == true, specifies that extra debugging information should be logged.
withExecutorService(ExecutorService) - Method in class com.twitter.common.logging.BufferedLog.Builder
Specifies the executor service to use for (synchronously or asynchronously) sending log entries.
withFlushInterval(Amount<Integer, Time>) - Method in class com.twitter.common.logging.BufferedLog.Builder
Specifies the maximum amount of time that a log entry may wait in the buffer before an attempt is made to flush the buffer.
withLoadBalancingStrategy(LoadBalancingStrategy<InetSocketAddress>) - Method in class com.twitter.common.thrift.ThriftFactory
Specifies the load balancer to use when interacting with multiple backends.
withMaxBuffer(int) - Method in class com.twitter.common.logging.BufferedLog.Builder
Specifies the maximum allowable buffer size, after which log records will be dropped to conserve memory.
withMaxConnectionsPerEndpoint(int) - Method in class com.twitter.common.thrift.ThriftFactory
Specifies the maximum number of connections that should be made to any single endpoint.
withName(String) - Method in class com.twitter.common.stats.Rate.Builder
 
withPostCreateCallback(Closure<Connection<TTransport, InetSocketAddress>>) - Method in class com.twitter.common.thrift.ThriftFactory
Specifies the callback to notify when a connection has been created.
withRandom(Random) - Method in class com.twitter.common.util.BackoffDecider.Builder
 
withRecoveryPeriod(Amount<Long, Time>) - Method in class com.twitter.common.util.BackoffDecider.Builder
Overrides the default recovery period behavior.
withRecoveryType(BackoffDecider.RecoveryType) - Method in class com.twitter.common.util.BackoffDecider.Builder
Sets the recovery mechanism to use when in the recovery period.
withRequestTimeout(Amount<Long, Time>) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Specifies that all calls be subject to a global timeout.
withRequestWindow(Amount<Long, Time>) - Method in class com.twitter.common.util.BackoffDecider.Builder
Sets the time window over which to analyze failures.
withRetries(int) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Specifies that failing calls meeting retry criteria be retried up to a maximum of retries times before failing.
withRetryFilter(Predicate<R>) - Method in class com.twitter.common.logging.BufferedLog.Builder
Adds a custom retry filter that will be used to determine whether a log result R should be used to indicate that a log request should be retried.
withScaleFactor(double) - Method in class com.twitter.common.stats.Rate.Builder
 
withSeedSize(int) - Method in class com.twitter.common.util.BackoffDecider.Builder
Sets the number of requests that must be accumulated before the error rate will be calculated.
withServiceName(String) - Method in class com.twitter.common.thrift.ThriftFactory
Name to be passed to Thrift constructor, used in stats.
withSocketTimeout(Amount<Long, Time>) - Method in class com.twitter.common.thrift.ThriftFactory
Specifies the net read/write timeout to set via SO_TIMEOUT on the thrift blocking client or AsyncClient.setTimeout on the thrift async client.
withSslEnabled() - Method in class com.twitter.common.thrift.ThriftFactory
 
withStatsProvider(StatsProvider) - Method in class com.twitter.common.thrift.Config.AbstractBuilder
Registers a custom stats provider to use to track various client stats.
withStatsProvider(StatsProvider) - Method in class com.twitter.common.thrift.ThriftFactory
Registers a custom stats provider to use to track various client stats.
withStatsProvider(StatsProvider) - Method in class com.twitter.common.util.BackoffDecider.Builder
Sets the stats provider that statistics should be exported to.
withStrategy(BackoffStrategy) - Method in class com.twitter.common.util.BackoffDecider.Builder
Overrides the default backoff strategy.
withTolerateFailureRate(double) - Method in class com.twitter.common.util.BackoffDecider.Builder
Sets the tolerated failure rate for the decider.
withWindowSize(int) - Method in class com.twitter.common.stats.Rate.Builder
 
write(TProtocol) - Method in class com.twitter.common.thrift.testing.TestThriftTypes.Struct
 
writeBinary(ByteBuffer) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeBool(boolean) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeByte(byte) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeDouble(double) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeFieldBegin(TField) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeFieldEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeFieldStop() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeI16(short) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeI32(int) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeI64(long) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeListBegin(TList) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeListEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeMapBegin(TMap) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeMapEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeMessageBegin(TMessage) - Method in class com.twitter.common.thrift.text.TTextProtocol
I believe these two messages are called for a thrift service interface.
writeMessageEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeSetBegin(TSet) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeSetEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeString(String) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeStructBegin(TStruct) - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeStructEnd() - Method in class com.twitter.common.thrift.text.TTextProtocol
 
writeTemplate(HttpServletResponse, ExceptionalClosure<StringTemplate, ?>) - Method in class com.twitter.common.net.http.handlers.StringTemplateServlet
 
writeTemplate(HttpServletResponse, String, int, ExceptionalClosure<StringTemplate, ?>) - Method in class com.twitter.common.net.http.handlers.StringTemplateServlet
 
writeToDataOutput(OutputStream) - Method in class com.twitter.common.util.Stat
Write the data to the output steam so it can be streamed to an other process, wire or storage median in a format that another Stats object can read.
writeToDataOutput(DataOutput) - Method in class com.twitter.common.util.Stat
Write the data to the data output object so it can be written to an other process, wire or storage median in a format that another Stats object can read.
writeVInt(int) - Method in class com.twitter.common.text.util.TokenStreamSerializer.AttributeOutputStream
Writes a value using VInt encoding.

Z

zip(Iterable<Iterable<T>>, T) - Static method in class com.twitter.common.collections.Iterables2
Zips multiple iterables into one iterable that will return iterators to step over rows of the input iterators (columns).
zip(T, Iterable<T>...) - Static method in class com.twitter.common.collections.Iterables2
Varargs convenience function to call Iterables2.zip(Iterable, Object).
ZooKeeperClient - Class in com.twitter.common.zookeeper
Manages a connection to a ZooKeeper cluster.
ZooKeeperClient(Amount<Integer, Time>, InetSocketAddress, InetSocketAddress...) - Constructor for class com.twitter.common.zookeeper.ZooKeeperClient
Creates an unconnected client that will lazily attempt to connect on the first call to ZooKeeperClient.get().
ZooKeeperClient(Amount<Integer, Time>, Iterable<InetSocketAddress>) - Constructor for class com.twitter.common.zookeeper.ZooKeeperClient
Creates an unconnected client that will lazily attempt to connect on the first call to ZooKeeperClient.get().
ZooKeeperClient(Amount<Integer, Time>, ZooKeeperClient.Credentials, InetSocketAddress, InetSocketAddress...) - Constructor for class com.twitter.common.zookeeper.ZooKeeperClient
Creates an unconnected client that will lazily attempt to connect on the first call to ZooKeeperClient.get().
ZooKeeperClient(Amount<Integer, Time>, ZooKeeperClient.Credentials, Iterable<InetSocketAddress>) - Constructor for class com.twitter.common.zookeeper.ZooKeeperClient
Creates an unconnected client that will lazily attempt to connect on the first call to ZooKeeperClient.get().
ZooKeeperClient.Credentials - Interface in com.twitter.common.zookeeper
Encapsulates a user's credentials and has the ability to authenticate them through a ZooKeeper client.
ZooKeeperClient.ZooKeeperConnectionException - Exception in com.twitter.common.zookeeper
Indicates an error connecting to a zookeeper cluster.
ZooKeeperClient.ZooKeeperConnectionException(String, Throwable) - Constructor for exception com.twitter.common.zookeeper.ZooKeeperClient.ZooKeeperConnectionException
 
ZooKeeperMap<V> - Class in com.twitter.common.zookeeper
A ZooKeeper backed Map.
ZooKeeperNode<T> - Class in com.twitter.common.zookeeper
An implementation of Supplier that offers a readonly view of a zookeeper data node.
zooKeeperServer - Variable in class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
 
ZooKeeperTestServer - Class in com.twitter.common.zookeeper.testing
A helper class for starting in-process ZooKeeper server and clients.
ZooKeeperTestServer(int, ShutdownRegistry) - Constructor for class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
 
ZooKeeperTestServer(int, ShutdownRegistry, Amount<Integer, Time>) - Constructor for class com.twitter.common.zookeeper.testing.ZooKeeperTestServer
 
ZooKeeperUtils - Class in com.twitter.common.zookeeper
Utilities for dealing with zoo keeper.

A B C D E F G H I J K L M N O P Q R S T U V W Z