public final class Resources extends Object
Constructor and Description |
---|
Resources()
Constructs a Resources instance that represents 1 virtual core and 512MB of memory.
|
Resources(int memoryMB)
Constructs a Resources instance that represents 1 virtual core and custom memory size.
|
Resources(int memoryMB,
int cores)
Constructs a Resources instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getMemoryMB()
Returns the memory size in MB.
|
int |
getVirtualCores()
Returns the number of virtual cores.
|
int |
hashCode() |
String |
toString() |
public Resources()
public Resources(int memoryMB)
memoryMB
- memory requirement in MB.public Resources(int memoryMB, int cores)
memoryMB
- memory requirement in MB.cores
- number of virtual cores.Copyright © 2022 Cask Data, Inc. Licensed under the Apache License, Version 2.0.