- generate() - Static method in class org.apache.twill.internal.RunIds
-
- get() - Method in class org.apache.twill.api.Hosts
-
Get the list of hosts.
- get() - Method in class org.apache.twill.api.Racks
-
Get the list of racks.
- getActualInstances() - Method in class org.apache.twill.api.EventHandler.TimeoutEvent
-
- getApplicationArguments() - Method in interface org.apache.twill.api.TwillContext
-
- getApplicationId() - Method in interface org.apache.twill.api.ResourceReport
-
Get the id of the application master.
- getApplicationName() - Method in interface org.apache.twill.api.EventHandlerContext
-
- getApplicationName() - Method in interface org.apache.twill.api.TwillRunner.LiveInfo
-
Returns name of the application.
- getApplicationRunId() - Method in interface org.apache.twill.api.TwillContext
-
Returns the
RunId of this running application.
- getAppMasterResources() - Method in interface org.apache.twill.api.ResourceReport
-
Get the resources application master is using.
- getArgument(String) - Method in class org.apache.twill.api.AbstractTwillRunnable
-
- getArguments() - Method in class org.apache.twill.api.AbstractTwillRunnable
-
- getArguments() - Method in interface org.apache.twill.api.TwillContext
-
Returns the runtime arguments that are passed to the
TwillRunnable.
- getCause() - Method in interface org.apache.twill.api.logging.LogThrowable
-
- getClassName() - Method in interface org.apache.twill.api.EventHandlerSpecification
-
- getClassName() - Method in interface org.apache.twill.api.logging.LogThrowable
-
Returns the name of the Throwable class.
- getClassName() - Method in interface org.apache.twill.api.TwillRunnableSpecification
-
- getClassName() - Method in class org.apache.twill.internal.DefaultEventHandlerSpecification
-
- getClassName() - Method in class org.apache.twill.internal.DefaultTwillRunnableSpecification
-
- getCommand() - Method in interface org.apache.twill.api.Command
-
- getConfigs() - Method in class org.apache.twill.api.EventHandler
-
Returns set of configurations available at runtime for access.
- getConfigs() - Method in interface org.apache.twill.api.EventHandlerSpecification
-
- getConfigs() - Method in interface org.apache.twill.api.TwillRunnableSpecification
-
- getConfigs() - Method in class org.apache.twill.internal.DefaultEventHandlerSpecification
-
- getConfigs() - Method in class org.apache.twill.internal.DefaultTwillRunnableSpecification
-
- getContainerId() - Method in interface org.apache.twill.api.TwillRunResources
-
- getContainerId() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getContext() - Method in class org.apache.twill.api.AbstractTwillRunnable
-
- getControllers() - Method in interface org.apache.twill.api.TwillRunner.LiveInfo
-
- getCores() - Method in interface org.apache.twill.api.ResourceSpecification
-
Deprecated.
- getCores() - Method in class org.apache.twill.internal.DefaultResourceSpecification
-
Deprecated.
- getDebugPort() - Method in interface org.apache.twill.api.TwillRunResources
-
- getDebugPort() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getDownlink() - Method in interface org.apache.twill.api.ResourceSpecification
-
Returns the downlink bandwidth in Mbps.
- getDownlink() - Method in class org.apache.twill.internal.DefaultResourceSpecification
-
- getEventHandler() - Method in interface org.apache.twill.api.TwillSpecification
-
- getEventHandler() - Method in class org.apache.twill.internal.DefaultTwillSpecification
-
- getExpectedInstances() - Method in class org.apache.twill.api.EventHandler.TimeoutEvent
-
- getFileName() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the source file name where the log emitted.
- getHost() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns hostname of where the log emitted.
- getHost() - Method in interface org.apache.twill.api.TwillContext
-
Returns the hostname that the runnable is running on.
- getHost() - Method in interface org.apache.twill.api.TwillRunResources
-
- getHost() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getHosts() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
-
- getHosts() - Method in class org.apache.twill.internal.DefaultTwillSpecification.DefaultPlacementPolicy
-
- getId() - Method in interface org.apache.twill.api.RunId
-
- getInstanceCount() - Method in interface org.apache.twill.api.TwillContext
-
Returns the number of running instances assigned for this
TwillRunnable.
- getInstanceId() - Method in interface org.apache.twill.api.TwillContext
-
Returns an integer id from 0 to (instanceCount - 1).
- getInstanceId() - Method in interface org.apache.twill.api.TwillRunResources
-
- getInstanceId() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getInstances() - Method in interface org.apache.twill.api.ResourceSpecification
-
Returns number of execution instances.
- getInstances() - Method in class org.apache.twill.internal.DefaultResourceSpecification
-
- getLastModified() - Method in interface org.apache.twill.api.LocalFile
-
Returns the the last modified time of the file or -1 if unknown.
- getLastModified() - Method in class org.apache.twill.internal.DefaultLocalFile
-
- getLineNumber() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the line number in the source file where the log emitted.
- getLocalFiles() - Method in interface org.apache.twill.api.RuntimeSpecification
-
- getLocalFiles() - Method in class org.apache.twill.internal.DefaultRuntimeSpecification
-
- getLoggerName() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns name of the logger.
- getLogLevel() - Method in interface org.apache.twill.api.logging.LogEntry
-
- getLogLevel() - Method in interface org.apache.twill.api.TwillRunResources
-
- getLogLevel() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
Deprecated.
- getLogLevels() - Method in interface org.apache.twill.api.TwillRunResources
-
- getLogLevels() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getMaxHeapMemoryMB() - Method in interface org.apache.twill.api.TwillRunResources
-
- getMaxHeapMemoryMB() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getMaxMemoryMB() - Method in interface org.apache.twill.api.TwillContext
-
Returns the amount of memory in MB the runnable is allowed to use.
- getMemoryMB() - Method in interface org.apache.twill.api.TwillRunResources
-
- getMemoryMB() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- getMemorySize() - Method in interface org.apache.twill.api.ResourceSpecification
-
Returns the memory size in MB.
- getMemorySize() - Method in class org.apache.twill.internal.DefaultResourceSpecification
-
- getMessage() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the log message.
- getMessage() - Method in interface org.apache.twill.api.logging.LogThrowable
-
Returns the message contained inside the Throwable.
- getName() - Method in interface org.apache.twill.api.LocalFile
-
- getName() - Method in interface org.apache.twill.api.RuntimeSpecification
-
- getName() - Method in interface org.apache.twill.api.TwillRunnableSpecification
-
- getName() - Method in interface org.apache.twill.api.TwillSpecification
-
- getName() - Method in class org.apache.twill.internal.DefaultLocalFile
-
- getName() - Method in class org.apache.twill.internal.DefaultRuntimeSpecification
-
- getName() - Method in class org.apache.twill.internal.DefaultTwillRunnableSpecification
-
- getName() - Method in class org.apache.twill.internal.DefaultTwillSpecification
-
- getNames() - Method in interface org.apache.twill.api.TwillSpecification.Order
-
- getNames() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
-
- getNames() - Method in class org.apache.twill.internal.DefaultTwillSpecification.DefaultOrder
-
- getNames() - Method in class org.apache.twill.internal.DefaultTwillSpecification.DefaultPlacementPolicy
-
- getOptions() - Method in interface org.apache.twill.api.Command
-
- getOrders() - Method in interface org.apache.twill.api.TwillSpecification
-
- getOrders() - Method in class org.apache.twill.internal.DefaultTwillSpecification
-
- getPattern() - Method in interface org.apache.twill.api.LocalFile
-
- getPattern() - Method in class org.apache.twill.internal.DefaultLocalFile
-
- getPlacementPolicies() - Method in interface org.apache.twill.api.TwillSpecification
-
- getPlacementPolicies() - Method in class org.apache.twill.internal.DefaultTwillSpecification
-
- getRacks() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
-
- getRacks() - Method in class org.apache.twill.internal.DefaultTwillSpecification.DefaultPlacementPolicy
-
- getRequestTime() - Method in class org.apache.twill.api.EventHandler.TimeoutEvent
-
- getResourceReport() - Method in interface org.apache.twill.api.TwillController
-
Get a snapshot of the resources used by the application, broken down by each runnable.
- getResources() - Method in interface org.apache.twill.api.ResourceReport
-
Get all the run resources being used across all runnables.
- getResourceSpecification() - Method in interface org.apache.twill.api.RuntimeSpecification
-
- getResourceSpecification() - Method in class org.apache.twill.internal.DefaultRuntimeSpecification
-
- getRunId() - Method in interface org.apache.twill.api.EventHandlerContext
-
- getRunId() - Method in interface org.apache.twill.api.ServiceController
-
Returns the
RunId of the running application.
- getRunId() - Method in interface org.apache.twill.api.TwillContext
-
- getRunnableName() - Method in class org.apache.twill.api.EventHandler.TimeoutEvent
-
- getRunnableName() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the runnable name.
- getRunnableResources(String) - Method in interface org.apache.twill.api.ResourceReport
-
Get all the run resources being used by all instances of the specified runnable.
- getRunnables() - Method in interface org.apache.twill.api.TwillSpecification
-
- getRunnables() - Method in class org.apache.twill.internal.DefaultTwillSpecification
-
- getRunnableSpecification() - Method in interface org.apache.twill.api.RuntimeSpecification
-
- getRunnableSpecification() - Method in class org.apache.twill.internal.DefaultRuntimeSpecification
-
- getServices() - Method in interface org.apache.twill.api.ResourceReport
-
Get the list of services of the application master.
- getSize() - Method in interface org.apache.twill.api.LocalFile
-
Returns the size of the file or -1 if unknown.
- getSize() - Method in class org.apache.twill.internal.DefaultLocalFile
-
- getSourceClassName() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the class name where the log emitted.
- getSourceMethodName() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the method name where the log emitted.
- getSpecification() - Method in interface org.apache.twill.api.EventHandlerContext
-
- getSpecification() - Method in interface org.apache.twill.api.TwillContext
-
- getStackTraces() - Method in interface org.apache.twill.api.logging.LogEntry
-
- getStackTraces() - Method in interface org.apache.twill.api.logging.LogThrowable
-
Returns the stack trace of the Throwable.
- getStore() - Method in interface org.apache.twill.api.SecureStore
-
- getTerminationStatus() - Method in interface org.apache.twill.api.ServiceController
-
Gets the termination status of the application represented by this controller.
- getTerminationTimeoutMillis() - Method in interface org.apache.twill.api.TwillContext
-
Returns the graceful timeout in milliseconds for the termination.
- getThreadName() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the name of the thread where the log emitted.
- getThrowable() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns the
Throwable information emitted with the log.
- getTimeout() - Method in class org.apache.twill.api.EventHandler.TimeoutAction
-
Returns timeout in milliseconds or -1 if to abort the application.
- getTimestamp() - Method in interface org.apache.twill.api.logging.LogEntry
-
Returns timestamp of the log.
- getType() - Method in interface org.apache.twill.api.TwillSpecification.Order
-
- getType() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
-
- getType() - Method in class org.apache.twill.internal.DefaultTwillSpecification.DefaultOrder
-
- getType() - Method in class org.apache.twill.internal.DefaultTwillSpecification.DefaultPlacementPolicy
-
- getUplink() - Method in interface org.apache.twill.api.ResourceSpecification
-
Returns the uplink bandwidth in Mbps.
- getUplink() - Method in class org.apache.twill.internal.DefaultResourceSpecification
-
- getURI() - Method in interface org.apache.twill.api.LocalFile
-
- getURI() - Method in class org.apache.twill.internal.DefaultLocalFile
-
- getVirtualCores() - Method in interface org.apache.twill.api.ResourceSpecification
-
Returns the number of virtual CPU cores.
- getVirtualCores() - Method in interface org.apache.twill.api.TwillContext
-
Returns the number of virtual cores the runnable is allowed to use.
- getVirtualCores() - Method in interface org.apache.twill.api.TwillRunResources
-
- getVirtualCores() - Method in class org.apache.twill.internal.DefaultResourceSpecification
-
- getVirtualCores() - Method in class org.apache.twill.internal.DefaultTwillRunResources
-
- launchTimeout(Iterable<EventHandler.TimeoutEvent>) - Method in class org.apache.twill.api.EventHandler
-
Invoked when the number of expected instances doesn't match with number of actual instances.
- leader() - Method in interface org.apache.twill.api.ElectionHandler
-
This method will get invoked when a participant becomes a leader in a
leader election process.
- LOCAL_STAGING_DIRECTORY - Static variable in class org.apache.twill.api.Configs.Defaults
-
Default use the system temp directory for local staging files.
- LOCAL_STAGING_DIRECTORY - Static variable in class org.apache.twill.api.Configs.Keys
-
Specifies the local directory for twill to store files generated at runtime.
- LocalFile - Interface in org.apache.twill.api
-
This interface represents a local file that will be available for the container running a
TwillRunnable.
- LOCATION_CACHE_ANTIQUE_EXPIRY_MS - Static variable in class org.apache.twill.api.Configs.Defaults
-
Default expiration is five minutes for location cache created by different twill runner.
- LOCATION_CACHE_ANTIQUE_EXPIRY_MS - Static variable in class org.apache.twill.api.Configs.Keys
-
Setting the expiration time in milliseconds of unused files created by older runs in the location cache.
- LOCATION_CACHE_DIR - Static variable in class org.apache.twill.api.Configs.Keys
-
Setting caching directory name for location cache.
- LOCATION_CACHE_EXPIRY_MS - Static variable in class org.apache.twill.api.Configs.Defaults
-
Default expiration is one day for location cache.
- LOCATION_CACHE_EXPIRY_MS - Static variable in class org.apache.twill.api.Configs.Keys
-
Setting the expiration time in milliseconds of unused files in the location cache.
- LOG_COLLECTION_ENABLED - Static variable in class org.apache.twill.api.Configs.Defaults
-
Default to enable log collection.
- LOG_COLLECTION_ENABLED - Static variable in class org.apache.twill.api.Configs.Keys
-
Setting for enabling log collection.
- LogEntry - Interface in org.apache.twill.api.logging
-
Represents a log entry emitted by application.
- LogEntry.Level - Enum in org.apache.twill.api.logging
-
Log level.
- LogHandler - Interface in org.apache.twill.api.logging
-
Represents class that can receive logs from the application.
- LogThrowable - Interface in org.apache.twill.api.logging
-
- lookup(String, RunId) - Method in interface org.apache.twill.api.TwillRunner
-
- lookup(String) - Method in interface org.apache.twill.api.TwillRunner
-
- lookupLive() - Method in interface org.apache.twill.api.TwillRunner
-
- valueOf(String) - Static method in enum org.apache.twill.api.logging.LogEntry.Level
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.twill.api.ResourceSpecification.SizeUnit
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.twill.api.ServiceController.TerminationStatus
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.twill.api.TwillSpecification.Order.Type
-
Returns the enum constant of this type with the specified name.
- valueOf(String) - Static method in enum org.apache.twill.api.TwillSpecification.PlacementPolicy.Type
-
Returns the enum constant of this type with the specified name.
- values() - Static method in enum org.apache.twill.api.logging.LogEntry.Level
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.apache.twill.api.ResourceSpecification.SizeUnit
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.apache.twill.api.ServiceController.TerminationStatus
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.apache.twill.api.TwillSpecification.Order.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- values() - Static method in enum org.apache.twill.api.TwillSpecification.PlacementPolicy.Type
-
Returns an array containing the constants of this enum type, in
the order they are declared.
- with() - Static method in class org.apache.twill.api.ResourceSpecification.Builder
-
- with() - Static method in class org.apache.twill.api.TwillRunnableSpecification.Builder
-
- with() - Static method in class org.apache.twill.api.TwillSpecification.Builder
-
- withApplicationArguments(String...) - Method in interface org.apache.twill.api.TwillPreparer
-
Sets the list of arguments that will be passed to the application.
- withApplicationArguments(Iterable<String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Sets the list of arguments that will be passed to the application.
- withApplicationClassPaths(String...) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds the set of paths to the classpath on the target machine for ApplicationMaster and all runnables.
- withApplicationClassPaths(Iterable<String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds the set of paths to the classpath on the target machine for ApplicationMaster and all runnables.
- withArguments(String, String...) - Method in interface org.apache.twill.api.TwillPreparer
-
Sets the list of arguments that will be passed to the
TwillRunnable identified by the given name.
- withArguments(String, Iterable<String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Sets the list of arguments that will be passed to the
TwillRunnable identified by the given name.
- withBundlerClassAcceptor(ClassAcceptor) - Method in interface org.apache.twill.api.TwillPreparer
-
Uses
ClassAcceptor to determine the classes to include in the bundle jar for
ApplicationMaster and all runnables.
- withClassPaths(String...) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds the set of paths to the classpath on the target machine for all runnables.
- withClassPaths(Iterable<String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds the set of paths to the classpath on the target machine for all runnables.
- withConfigs(Map<String, String>) - Method in class org.apache.twill.api.TwillRunnableSpecification.Builder.AfterName
-
- withConfiguration(Map<String, String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Overrides the default configuration with the given set of configurations.
- withConfiguration(String, Map<String, String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Overrides the default configuration with the given set of configurations for the given runnable only.
- withDependencies(Class<?>...) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds extra classes that the application is dependent on and is not traceable from the application itself.
- withDependencies(Iterable<Class<?>>) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds extra classes that the application is dependent on and is not traceable from the application itself.
- withEnv(Map<String, String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds the set of environment variables that will be set as container environment variables for all runnables.
- withEnv(String, Map<String, String>) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds the set of environment variables that will be set as container environment variables for the given runnable.
- withEventHandler(EventHandler) - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterOrder
-
- withEventHandler(EventHandler) - Method in class org.apache.twill.api.TwillSpecification.Builder.OrderSetter
-
- withLocalFiles() - Method in class org.apache.twill.api.TwillSpecification.Builder.RuntimeSpecificationAdder
-
- withMaxRetries(String, int) - Method in interface org.apache.twill.api.TwillPreparer
-
Sets the maximum number of times (per instance) a runnable will be retried if it exits without success.
- withOrder() - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterPlacementPolicy
-
Start defining execution order.
- withOrder() - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterRunnable
-
- withOrder() - Method in class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
-
- withOrder() - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
-
- withPlacementPolicy() - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterRunnable
-
- withPlacementPolicy() - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
-
- withResources(URI...) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds resources that will be available through the ClassLoader of the
runnables.
- withResources(Iterable<URI>) - Method in interface org.apache.twill.api.TwillPreparer
-
Adds resources that will be available through the ClassLoader of the
runnables.
- withRunnable() - Method in class org.apache.twill.api.TwillSpecification.Builder.AfterName
-
- write(SecureStore) - Method in interface org.apache.twill.api.security.SecureStoreWriter
-