Package | Description |
---|---|
org.apache.twill.api |
Classes in this package provides core functionality of the Twill library.
|
org.apache.twill.discovery |
Classes in this package provides service discovery implementations.
|
org.apache.twill.internal |
This package provides internal classes for Twill.
|
Modifier and Type | Interface and Description |
---|---|
interface |
TwillContext
Represents the runtime context of a
TwillRunnable . |
Modifier and Type | Class and Description |
---|---|
class |
InMemoryDiscoveryService
A simple in memory implementation of
DiscoveryService and DiscoveryServiceClient . |
class |
ZKDiscoveryService
Zookeeper implementation of
DiscoveryService and DiscoveryServiceClient . |
Modifier and Type | Class and Description |
---|---|
class |
BasicTwillContext
Implementation of
TwillContext that provides the basic runtime information of a TwillRunnable . |
Constructor and Description |
---|
BasicTwillContext(RunId runId,
RunId appRunId,
InetAddress host,
String[] args,
String[] appArgs,
TwillRunnableSpecification spec,
int instanceId,
DiscoveryService discoveryService,
DiscoveryServiceClient discoveryServiceClient,
ZKClient zkClient,
int instanceCount,
int allowedMemoryMB,
int virtualCores) |
Copyright © 2013-2020 The Apache Software Foundation. All rights reserved.