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

A

abort() - Static method in class org.apache.twill.api.EventHandler.TimeoutAction
Creates a EventHandler.TimeoutAction to indicate aborting the application.
AbstractTwillRunnable - Class in org.apache.twill.api
This abstract class provides default implementation of the TwillRunnable.
AbstractTwillRunnable() - Constructor for class org.apache.twill.api.AbstractTwillRunnable
 
AbstractTwillRunnable(Map<String, String>) - Constructor for class org.apache.twill.api.AbstractTwillRunnable
 
accept(String, URL, URL) - Method in class org.apache.twill.api.ClassAcceptor
Invoked to determine if class can be accepted.
add(String, File) - Method in interface org.apache.twill.api.TwillSpecification.Builder.LocalFileAdder
 
add(String, URI) - Method in interface org.apache.twill.api.TwillSpecification.Builder.LocalFileAdder
 
add(String, File, boolean) - Method in interface org.apache.twill.api.TwillSpecification.Builder.LocalFileAdder
 
add(String, URI, boolean) - Method in interface org.apache.twill.api.TwillSpecification.Builder.LocalFileAdder
 
add(String, File, String) - Method in interface org.apache.twill.api.TwillSpecification.Builder.LocalFileAdder
 
add(String, URI, String) - Method in interface org.apache.twill.api.TwillSpecification.Builder.LocalFileAdder
 
add(String, File) - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
add(String, URI) - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
add(String, File, boolean) - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
add(String, URI, boolean) - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
add(String, File, String) - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
add(String, URI, String) - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
add(Hosts, String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MorePlacementPolicies
Specify hosts for a list of runnables.
add(Racks, String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MorePlacementPolicies
Specify racks for a list of runnables.
add(Hosts, Racks, String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MorePlacementPolicies
Specify hosts and racks for a list of runnables.
add(TwillSpecification.PlacementPolicy.Type, String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MorePlacementPolicies
Specify a placement policy for a list of runnables.
add(TwillRunnable) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MoreRunnable
 
add(TwillRunnable, ResourceSpecification) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MoreRunnable
 
add(String, TwillRunnable) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MoreRunnable
Adds a TwillRunnable with ResourceSpecification.BASIC resource specification.
add(String, TwillRunnable, ResourceSpecification) - Method in interface org.apache.twill.api.TwillSpecification.Builder.MoreRunnable
 
add(Hosts, String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
 
add(Racks, String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
 
add(Hosts, Racks, String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
 
add(TwillSpecification.PlacementPolicy.Type, String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
 
add(TwillRunnable) - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
 
add(TwillRunnable, ResourceSpecification) - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
 
add(String, TwillRunnable) - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
 
add(String, TwillRunnable, ResourceSpecification) - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
 
addJVMOptions(String) - Method in interface org.apache.twill.api.TwillPreparer
This methods adds extra JVM options that will be passed to the java command line for every runnable of the application started through this TwillPreparer instance.
addLogHandler(LogHandler) - Method in interface org.apache.twill.api.TwillController
Adds a LogHandler for receiving application log.
addLogHandler(LogHandler) - Method in interface org.apache.twill.api.TwillPreparer
Adds a LogHandler for receiving an application log.
addOption(String, String) - Method in class org.apache.twill.api.Command.Builder
 
addOptions(Map<String, String>) - Method in class org.apache.twill.api.Command.Builder
 
addSecureStore(SecureStore) - Method in interface org.apache.twill.api.TwillPreparer
Adds security credentials for the runtime environment to gives application access to resources.
announce(String, int) - Method in interface org.apache.twill.api.ServiceAnnouncer
Registers an endpoint that could be discovered by external party.
anyOrder() - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterPlacementPolicy
No particular execution order is needed.
anyOrder() - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterRunnable
 
anyOrder() - Method in class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
 
anyOrder() - Method in class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
 
apply() - Method in class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
awaitTerminated() - Method in interface org.apache.twill.api.ServiceController
Waits for termination of the remote service.
awaitTerminated(long, TimeUnit) - Method in interface org.apache.twill.api.ServiceController
Waits for termination of the remote service for no more than the given timeout limit.

B

BASIC - Static variable in interface org.apache.twill.api.ResourceSpecification
 
begin(String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.FirstOrder
 
begin(String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.OrderSetter
 
build() - Method in class org.apache.twill.api.Command.Builder
 
build() - Method in class org.apache.twill.api.ResourceSpecification.Builder.Build
 
build() - Method in class org.apache.twill.api.TwillRunnableSpecification.Builder.AfterConfigs
 
build() - Method in interface org.apache.twill.api.TwillSpecification.Builder.AfterOrder
 
build() - Method in class org.apache.twill.api.TwillSpecification.Builder.OrderSetter
 

C

changeInstances(String, int) - Method in interface org.apache.twill.api.TwillController
Changes the number of running instances of a given runnable.
ClassAcceptor - Class in org.apache.twill.api
Class that can be used to determine if class can be accepted.
ClassAcceptor() - Constructor for class org.apache.twill.api.ClassAcceptor
 
Command - Interface in org.apache.twill.api
Represents command objects.
Command.Builder - Class in org.apache.twill.api
Builder for creating Command object.
configure() - Method in class org.apache.twill.api.AbstractTwillRunnable
 
configure() - Method in class org.apache.twill.api.EventHandler
Returns an EventHandlerSpecification for configuring this handler class.
configure() - Method in interface org.apache.twill.api.TwillApplication
Invoked when launching the application on the client side.
configure() - Method in interface org.apache.twill.api.TwillRunnable
Called at submission time.
context - Variable in class org.apache.twill.api.EventHandler
 
createLock(String) - Method in interface org.apache.twill.api.TwillContext
Creates a Lock for performing locking mechanism within the same TwillApplication.

D

destroy() - Method in class org.apache.twill.api.AbstractTwillRunnable
 
destroy() - Method in class org.apache.twill.api.EventHandler
Invoked by the application when shutting down.
destroy() - Method in interface org.apache.twill.api.TwillRunnable
Called when the Runnable.run() completed.
discover(String) - Method in interface org.apache.twill.api.TwillContext
Discover service with the given name that is announced within the same TwillApplication.
discoverService(String) - Method in interface org.apache.twill.api.TwillController
Discovers the set of Discoverable endpoints that provides service for the given service name.

E

ElectionHandler - Interface in org.apache.twill.api
Handles events of election/un-election of leader.
electLeader(String, ElectionHandler) - Method in interface org.apache.twill.api.TwillContext
Register to participate in a leader election by instances within the same TwillApplication.
enableDebugging(String...) - Method in interface org.apache.twill.api.TwillPreparer
Enable debugging for runnables, without suspending the virtual machine to wait for the debugger.
enableDebugging(boolean, String...) - Method in interface org.apache.twill.api.TwillPreparer
Enable debugging for runnables.
EventHandler - Class in org.apache.twill.api
A callback handler for acting on application events related to TwillRunnable lifecycle events.
EventHandler() - Constructor for class org.apache.twill.api.EventHandler
 
EventHandler.TimeoutAction - Class in org.apache.twill.api
Represents action to act upon runnable launch timeout.
EventHandler.TimeoutEvent - Class in org.apache.twill.api
This class holds information about a launch timeout event.
EventHandler.TimeoutEvent(String, int, int, long) - Constructor for class org.apache.twill.api.EventHandler.TimeoutEvent
 
EventHandlerContext - Interface in org.apache.twill.api
Represents runtime context for EventHandler.
EventHandlerSpecification - Interface in org.apache.twill.api
Specification for EventHandler.

F

follower() - Method in interface org.apache.twill.api.ElectionHandler
This method will get invoked when a participant is a follower in a leader election process.

G

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
Returns the runtime arguments that are passed to the TwillApplication.
getApplicationId() - Method in interface org.apache.twill.api.ResourceReport
Get the id of the application master.
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
Returns the cause of this 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
 
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
 
getContainerId() - Method in interface org.apache.twill.api.TwillRunResources
 
getContext() - Method in class org.apache.twill.api.AbstractTwillRunnable
 
getControllers() - Method in interface org.apache.twill.api.TwillRunner.LiveInfo
Returns TwillControllers for all live instances of the application.
getCores() - Method in interface org.apache.twill.api.ResourceSpecification
Deprecated.
getDebugPort() - Method in interface org.apache.twill.api.TwillRunResources
 
getDownlink() - Method in interface org.apache.twill.api.ResourceSpecification
Returns the downlink bandwidth in Mbps.
getEventHandler() - Method in interface org.apache.twill.api.TwillSpecification
 
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
 
getHosts() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
 
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
 
getInstances() - Method in interface org.apache.twill.api.ResourceSpecification
Returns number of execution instances.
getLastModified() - Method in interface org.apache.twill.api.LocalFile
Returns the the last modified time of the file or -1 if unknown.
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
 
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
Returns the log LogEntry.Level of the log.
getLogLevel() - Method in interface org.apache.twill.api.TwillRunResources
 
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
 
getMemorySize() - Method in interface org.apache.twill.api.ResourceSpecification
Returns the memory size in MB.
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
 
getNames() - Method in interface org.apache.twill.api.TwillSpecification.Order
 
getNames() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
 
getOptions() - Method in interface org.apache.twill.api.Command
 
getOrders() - Method in interface org.apache.twill.api.TwillSpecification
 
getPattern() - Method in interface org.apache.twill.api.LocalFile
 
getPlacementPolicies() - Method in interface org.apache.twill.api.TwillSpecification
 
getRacks() - Method in interface org.apache.twill.api.TwillSpecification.PlacementPolicy
 
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
 
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
Returns the RunId of this running instance of TwillRunnable.
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
 
getRunnableSpecification() - Method in interface org.apache.twill.api.RuntimeSpecification
 
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.
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
Returns the TwillRunnableSpecification that was created by TwillRunnable.configure().
getStackTraces() - Method in interface org.apache.twill.api.logging.LogEntry
Deprecated.
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
 
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
 
getUplink() - Method in interface org.apache.twill.api.ResourceSpecification
Returns the uplink bandwidth in Mbps.
getURI() - Method in interface org.apache.twill.api.LocalFile
 
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
 

H

handleCommand(Command) - Method in class org.apache.twill.api.AbstractTwillRunnable
 
handleCommand(Command) - Method in interface org.apache.twill.api.TwillRunnable
Called when a command is received.
Hosts - Class in org.apache.twill.api
Represents a list of hosts.
Hosts(Set<String>) - Constructor for class org.apache.twill.api.Hosts
 
Hosts(String, String...) - Constructor for class org.apache.twill.api.Hosts
 

I

initialize(TwillContext) - Method in class org.apache.twill.api.AbstractTwillRunnable
 
initialize(EventHandlerContext) - Method in class org.apache.twill.api.EventHandler
Invoked by the application to initialize this EventHandler instance.
initialize(TwillContext) - Method in interface org.apache.twill.api.TwillRunnable
Called when the container process starts.
isArchive() - Method in interface org.apache.twill.api.LocalFile
Indicates whether this file is an archive.

K

kill() - Method in interface org.apache.twill.api.ServiceController
Requests to forcefully kill a running service.

L

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.
LocalFile - Interface in org.apache.twill.api
This interface represents a local file that will be available for the container running a TwillRunnable.
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
Carries Throwable information in a LogEntry.
lookup(String, RunId) - Method in interface org.apache.twill.api.TwillRunner
Gets a TwillController for the given application and runId.
lookup(String) - Method in interface org.apache.twill.api.TwillRunner
Gets an Iterable of TwillController for all running instances of the given application.
lookupLive() - Method in interface org.apache.twill.api.TwillRunner

N

nextWhenCompleted(String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.NextOrder
 
nextWhenCompleted(String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.OrderSetter
 
nextWhenStarted(String, String...) - Method in interface org.apache.twill.api.TwillSpecification.Builder.NextOrder
 
nextWhenStarted(String, String...) - Method in class org.apache.twill.api.TwillSpecification.Builder.OrderSetter
 
noConfigs() - Method in class org.apache.twill.api.TwillRunnableSpecification.Builder.AfterName
 
noLocalFiles() - Method in class org.apache.twill.api.TwillSpecification.Builder.RuntimeSpecificationAdder
 

O

of(String) - Static method in class org.apache.twill.api.Command.Builder
 
of(String, String...) - Static method in class org.apache.twill.api.Hosts
Convenience method to create an instance of Hosts.
of(String, String...) - Static method in class org.apache.twill.api.Racks
Convenience method to create an instance of Racks.
onLog(LogEntry) - Method in interface org.apache.twill.api.logging.LogHandler
Invokes when there is new LogEntry received from the application.
onLog(LogEntry) - Method in class org.apache.twill.api.logging.PrinterLogHandler
 
onRunning(Runnable, Executor) - Method in interface org.apache.twill.api.ServiceController
Attaches a Runnable that will get executed when the service is running.
onTerminated(Runnable, Executor) - Method in interface org.apache.twill.api.ServiceController
Attaches a Runnable that will get executed when the serivce is terminated.
org.apache.twill.api - package org.apache.twill.api
Classes in this package provides core functionality of the Twill library.
org.apache.twill.api.logging - package org.apache.twill.api.logging
This package contains class for handling logging events.

P

prepare(TwillRunnable) - Method in interface org.apache.twill.api.TwillRunner
Prepares to run the given TwillRunnable with ResourceSpecification.BASIC resource specification.
prepare(TwillRunnable, ResourceSpecification) - Method in interface org.apache.twill.api.TwillRunner
Prepares to run the given TwillRunnable with the given resource specification.
prepare(TwillApplication) - Method in interface org.apache.twill.api.TwillRunner
Prepares to run the given TwillApplication as specified by the application.
PrinterLogHandler - Class in org.apache.twill.api.logging
A LogHandler that prints the LogEntry through a PrintWriter.
PrinterLogHandler(PrintWriter) - Constructor for class org.apache.twill.api.logging.PrinterLogHandler
Creates a PrinterLogHandler which has LogEntry written to the given PrintWriter.

R

Racks - Class in org.apache.twill.api
Represents a list of Racks.
Racks(Set<String>) - Constructor for class org.apache.twill.api.Racks
 
Racks(String, String...) - Constructor for class org.apache.twill.api.Racks
 
recheck(long, TimeUnit) - Static method in class org.apache.twill.api.EventHandler.TimeoutAction
Creates a EventHandler.TimeoutAction to indicate recheck again after the given time has passed.
ResourceReport - Interface in org.apache.twill.api
This interface provides a snapshot of the resources an application is using broken down by each runnable.
ResourceSpecification - Interface in org.apache.twill.api
This interface provides specifications for resource requirements including set and get methods for number of cores, amount of memory, and number of instances.
ResourceSpecification.Builder - Class in org.apache.twill.api
Builder for creating ResourceSpecification.
ResourceSpecification.Builder.AfterInstances - Class in org.apache.twill.api
 
ResourceSpecification.Builder.AfterInstances() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.AfterInstances
 
ResourceSpecification.Builder.AfterMemory - Class in org.apache.twill.api
 
ResourceSpecification.Builder.AfterMemory() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.AfterMemory
 
ResourceSpecification.Builder.AfterUplink - Class in org.apache.twill.api
 
ResourceSpecification.Builder.AfterUplink() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.AfterUplink
 
ResourceSpecification.Builder.Build - Class in org.apache.twill.api
 
ResourceSpecification.Builder.Build() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.Build
 
ResourceSpecification.Builder.CoreSetter - Class in org.apache.twill.api
 
ResourceSpecification.Builder.CoreSetter() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.CoreSetter
 
ResourceSpecification.Builder.Done - Class in org.apache.twill.api
 
ResourceSpecification.Builder.Done() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.Done
 
ResourceSpecification.Builder.MemorySetter - Class in org.apache.twill.api
 
ResourceSpecification.Builder.MemorySetter() - Constructor for class org.apache.twill.api.ResourceSpecification.Builder.MemorySetter
 
ResourceSpecification.SizeUnit - Enum in org.apache.twill.api
Unit for specifying memory size.
restartAllInstances(String) - Method in interface org.apache.twill.api.TwillController
Restart all instances of a particular TwillRunnable.
restartInstances(Map<String, ? extends Set<Integer>>) - Method in interface org.apache.twill.api.TwillController
Restart instances of some TwillRunnable.
restartInstances(String, int, int...) - Method in interface org.apache.twill.api.TwillController
Restart instances of some TwillRunnable.
RunId - Interface in org.apache.twill.api
Represents the unique ID of a particular execution.
RuntimeSpecification - Interface in org.apache.twill.api
Specifications for runtime requirements.

S

scheduleSecureStoreUpdate(SecureStoreUpdater, long, long, TimeUnit) - Method in interface org.apache.twill.api.TwillRunner
Schedules a periodic update of SecureStore.
SecureStore - Interface in org.apache.twill.api
Represents storage of secure tokens.
SecureStoreUpdater - Interface in org.apache.twill.api
Represents class capable of creating update of SecureStore for live applications.
sendCommand(Command) - Method in interface org.apache.twill.api.ServiceController
Sends a user command to the running application.
sendCommand(String, Command) - Method in interface org.apache.twill.api.ServiceController
Sends a user command to the given runnable of the running application.
ServiceAnnouncer - Interface in org.apache.twill.api
This interface provides a way to announce the availability of a service.
ServiceController - Interface in org.apache.twill.api
This interface is for controlling a remote running service.
setCores(int) - Method in class org.apache.twill.api.ResourceSpecification.Builder.CoreSetter
Deprecated.
setDownlink(int, ResourceSpecification.SizeUnit) - Method in class org.apache.twill.api.ResourceSpecification.Builder.AfterUplink
 
setInstances(int) - Method in class org.apache.twill.api.ResourceSpecification.Builder.AfterMemory
 
setJVMOptions(String) - Method in interface org.apache.twill.api.TwillPreparer
This methods sets the extra JVM options that will be passed to the java command line for every runnable of the application started through this TwillPreparer instance.
setLogLevel(LogEntry.Level) - Method in interface org.apache.twill.api.TwillPreparer
Set the log level for Twill applications running in a container.
setMemory(int, ResourceSpecification.SizeUnit) - Method in class org.apache.twill.api.ResourceSpecification.Builder.MemorySetter
 
setName(String) - Method in class org.apache.twill.api.TwillRunnableSpecification.Builder.NameSetter
 
setName(String) - Method in class org.apache.twill.api.TwillSpecification.Builder.NameSetter
 
setSchedulerQueue(String) - Method in interface org.apache.twill.api.TwillPreparer
Sets the name of the scheduler queue to use.
setUplink(int, ResourceSpecification.SizeUnit) - Method in class org.apache.twill.api.ResourceSpecification.Builder.AfterInstances
 
setUser(String) - Method in interface org.apache.twill.api.TwillPreparer
Deprecated.
This method will be removed in future version.
setVirtualCores(int) - Method in class org.apache.twill.api.ResourceSpecification.Builder.CoreSetter
 
start() - Method in interface org.apache.twill.api.TwillPreparer
Starts the application.
start() - Method in interface org.apache.twill.api.TwillRunnerService
Starts the service.
stop() - Method in class org.apache.twill.api.AbstractTwillRunnable
 
stop() - Method in interface org.apache.twill.api.TwillRunnable
Requests to stop the running service.
stop() - Method in interface org.apache.twill.api.TwillRunnerService
Stops the service.

T

terminate() - Method in interface org.apache.twill.api.ServiceController
Requests to terminate the running service.
toString() - Method in class org.apache.twill.api.Hosts
 
toString() - Method in class org.apache.twill.api.Racks
 
TwillApplication - Interface in org.apache.twill.api
Represents a application that can be launched by Twill.
TwillContext - Interface in org.apache.twill.api
Represents the runtime context of a TwillRunnable.
TwillController - Interface in org.apache.twill.api
For controlling a running application.
TwillPreparer - Interface in org.apache.twill.api
This interface exposes methods to set up the Twill runtime environment and start a Twill application.
TwillRunnable - Interface in org.apache.twill.api
The TwillRunnable interface should be implemented by any class whose instances are intended to be executed in a Twill cluster.
TwillRunnableSpecification - Interface in org.apache.twill.api
Represents a specification of a TwillRunnable.
TwillRunnableSpecification.Builder - Class in org.apache.twill.api
Builder for constructing TwillRunnableSpecification.
TwillRunnableSpecification.Builder.AfterConfigs - Class in org.apache.twill.api
 
TwillRunnableSpecification.Builder.AfterConfigs() - Constructor for class org.apache.twill.api.TwillRunnableSpecification.Builder.AfterConfigs
 
TwillRunnableSpecification.Builder.AfterName - Class in org.apache.twill.api
 
TwillRunnableSpecification.Builder.AfterName() - Constructor for class org.apache.twill.api.TwillRunnableSpecification.Builder.AfterName
 
TwillRunnableSpecification.Builder.NameSetter - Class in org.apache.twill.api
 
TwillRunnableSpecification.Builder.NameSetter() - Constructor for class org.apache.twill.api.TwillRunnableSpecification.Builder.NameSetter
 
TwillRunner - Interface in org.apache.twill.api
This interface prepares execution of TwillRunnable and TwillApplication.
TwillRunner.LiveInfo - Interface in org.apache.twill.api
Interface to represents information of a live application.
TwillRunnerService - Interface in org.apache.twill.api
A TwillRunner that provides lifecycle management functions.
TwillRunResources - Interface in org.apache.twill.api
Information about the container the TwillRunnable is running in.
TwillSpecification - Interface in org.apache.twill.api
Represents specification of a TwillApplication.
TwillSpecification.Builder - Class in org.apache.twill.api
Builder for constructing instance of TwillSpecification.
TwillSpecification.Builder.AfterName - Class in org.apache.twill.api
 
TwillSpecification.Builder.AfterName() - Constructor for class org.apache.twill.api.TwillSpecification.Builder.AfterName
 
TwillSpecification.Builder.AfterOrder - Interface in org.apache.twill.api
 
TwillSpecification.Builder.AfterPlacementPolicy - Interface in org.apache.twill.api
Interface to define execution order after adding placement policies.
TwillSpecification.Builder.AfterRunnable - Interface in org.apache.twill.api
 
TwillSpecification.Builder.FirstOrder - Interface in org.apache.twill.api
 
TwillSpecification.Builder.LocalFileAdder - Interface in org.apache.twill.api
 
TwillSpecification.Builder.MoreFile - Class in org.apache.twill.api
 
TwillSpecification.Builder.MoreFile(TwillSpecification.Builder.LocalFileCompleter) - Constructor for class org.apache.twill.api.TwillSpecification.Builder.MoreFile
 
TwillSpecification.Builder.MorePlacementPolicies - Interface in org.apache.twill.api
Interface to add placement policies to the application.
TwillSpecification.Builder.MoreRunnable - Interface in org.apache.twill.api
 
TwillSpecification.Builder.NameSetter - Class in org.apache.twill.api
 
TwillSpecification.Builder.NameSetter() - Constructor for class org.apache.twill.api.TwillSpecification.Builder.NameSetter
 
TwillSpecification.Builder.NextOrder - Interface in org.apache.twill.api
 
TwillSpecification.Builder.OrderSetter - Class in org.apache.twill.api
 
TwillSpecification.Builder.OrderSetter() - Constructor for class org.apache.twill.api.TwillSpecification.Builder.OrderSetter
 
TwillSpecification.Builder.PlacementPolicySetter - Class in org.apache.twill.api
 
TwillSpecification.Builder.PlacementPolicySetter() - Constructor for class org.apache.twill.api.TwillSpecification.Builder.PlacementPolicySetter
 
TwillSpecification.Builder.RunnableSetter - Class in org.apache.twill.api
 
TwillSpecification.Builder.RunnableSetter() - Constructor for class org.apache.twill.api.TwillSpecification.Builder.RunnableSetter
 
TwillSpecification.Builder.RuntimeSpecificationAdder - Class in org.apache.twill.api
For setting runtime specific settings.
TwillSpecification.Order - Interface in org.apache.twill.api
Defines execution order.
TwillSpecification.Order.Type - Enum in org.apache.twill.api
 
TwillSpecification.PlacementPolicy - Interface in org.apache.twill.api
Defines a container placement policy.
TwillSpecification.PlacementPolicy.Type - Enum in org.apache.twill.api
Lists different types of Placement Policies available.

U

update(String, RunId) - Method in interface org.apache.twill.api.SecureStoreUpdater
Invoked when an update to SecureStore is needed.

V

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.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.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.

W

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
 
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.
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
 
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
 
A B C D E F G H I K L N O P R S T U V W 

Copyright © 2013-2015 The Apache Software Foundation. All rights reserved.