public class DefaultTwillRunResources extends Object implements TwillRunResources
TwillRunResources.| Constructor and Description |
|---|
DefaultTwillRunResources(int instanceId,
String containerId,
int cores,
int memoryMB,
int maxHeapMemoryMB,
String host,
Integer debugPort)
Constructor to create an instance of
DefaultTwillRunResources with empty log levels. |
DefaultTwillRunResources(int instanceId,
String containerId,
int cores,
int memoryMB,
int maxHeapMemoryMB,
String host,
Integer debugPort,
Map<String,LogEntry.Level> logLevels) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getContainerId() |
Integer |
getDebugPort() |
String |
getHost() |
int |
getInstanceId() |
LogEntry.Level |
getLogLevel()
Deprecated.
|
Map<String,LogEntry.Level> |
getLogLevels() |
int |
getMaxHeapMemoryMB() |
int |
getMemoryMB() |
int |
getVirtualCores() |
int |
hashCode() |
String |
toString() |
public DefaultTwillRunResources(int instanceId,
String containerId,
int cores,
int memoryMB,
int maxHeapMemoryMB,
String host,
Integer debugPort)
DefaultTwillRunResources with empty log levels.public int getInstanceId()
getInstanceId in interface TwillRunResourcespublic String getContainerId()
getContainerId in interface TwillRunResourcespublic int getVirtualCores()
getVirtualCores in interface TwillRunResourcespublic int getMemoryMB()
getMemoryMB in interface TwillRunResourcespublic int getMaxHeapMemoryMB()
getMaxHeapMemoryMB in interface TwillRunResourcespublic String getHost()
getHost in interface TwillRunResourcespublic Integer getDebugPort()
getDebugPort in interface TwillRunResources@Deprecated @Nullable public LogEntry.Level getLogLevel()
getLogLevel in interface TwillRunResourcespublic Map<String,LogEntry.Level> getLogLevels()
getLogLevels in interface TwillRunResourcesCopyright © 2013-2020 The Apache Software Foundation. All rights reserved.