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 TwillRunResources
public String getContainerId()
getContainerId
in interface TwillRunResources
public int getVirtualCores()
getVirtualCores
in interface TwillRunResources
public int getMemoryMB()
getMemoryMB
in interface TwillRunResources
public int getMaxHeapMemoryMB()
getMaxHeapMemoryMB
in interface TwillRunResources
public String getHost()
getHost
in interface TwillRunResources
public Integer getDebugPort()
getDebugPort
in interface TwillRunResources
@Deprecated @Nullable public LogEntry.Level getLogLevel()
getLogLevel
in interface TwillRunResources
public Map<String,LogEntry.Level> getLogLevels()
getLogLevels
in interface TwillRunResources
Copyright © 2013-2020 The Apache Software Foundation. All rights reserved.