Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ private ResourceProfile() {
* @return The cpu cores, 1.0 means a full cpu thread
*/
public CPUResource getCpuCores() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return cpuCores;
}

Expand All @@ -184,7 +184,7 @@ public CPUResource getCpuCores() {
* @return The task heap memory
*/
public MemorySize getTaskHeapMemory() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return taskHeapMemory;
}

Expand All @@ -194,7 +194,7 @@ public MemorySize getTaskHeapMemory() {
* @return The task off-heap memory
*/
public MemorySize getTaskOffHeapMemory() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return taskOffHeapMemory;
}

Expand All @@ -204,7 +204,7 @@ public MemorySize getTaskOffHeapMemory() {
* @return The managed memory
*/
public MemorySize getManagedMemory() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return managedMemory;
}

Expand All @@ -214,7 +214,7 @@ public MemorySize getManagedMemory() {
* @return The network memory
*/
public MemorySize getNetworkMemory() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return networkMemory;
}

Expand All @@ -224,7 +224,7 @@ public MemorySize getNetworkMemory() {
* @return The total memory
*/
public MemorySize getTotalMemory() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return getOperatorsMemory().add(networkMemory);
}

Expand All @@ -234,7 +234,7 @@ public MemorySize getTotalMemory() {
* @return The operator memory
*/
public MemorySize getOperatorsMemory() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return taskHeapMemory.add(taskOffHeapMemory).add(managedMemory);
}

Expand All @@ -244,11 +244,11 @@ public MemorySize getOperatorsMemory() {
* @return The extended resources
*/
public Map<String, ExternalResource> getExtendedResources() {
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();
return Collections.unmodifiableMap(extendedResources);
}

private void throwUnsupportedOperationExecptionIfUnknown() {
private void throwUnsupportedOperationExceptionIfUnknown() {
if (this.equals(UNKNOWN)) {
throw new UnsupportedOperationException();
}
Expand All @@ -262,7 +262,7 @@ private void throwUnsupportedOperationExecptionIfUnknown() {
*/
public boolean isMatching(final ResourceProfile required) {
checkNotNull(required, "Cannot check matching with null resources");
throwUnsupportedOperationExecptionIfUnknown();
throwUnsupportedOperationExceptionIfUnknown();

if (this.equals(ANY)) {
return true;
Expand Down