public final class ResourceEventImpl extends Object implements ResourceAllocationEvent, ResourceRecoverEvent
| Modifier and Type | Class and Description |
|---|---|
static class |
ResourceEventImpl.Builder
Builder used to create ResourceAllocationEvent instances.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getIdentifier() |
String |
getNodeId() |
Optional<String> |
getRackName() |
int |
getResourceMemory() |
String |
getRuntimeName() |
Optional<Integer> |
getVirtualCores() |
static ResourceEventImpl.Builder |
newAllocationBuilder() |
static ResourceEventImpl.Builder |
newRecoveryBuilder() |
public String getIdentifier()
getIdentifier in interface ResourceEventpublic int getResourceMemory()
getResourceMemory in interface ResourceEventpublic String getNodeId()
getNodeId in interface ResourceEventpublic Optional<Integer> getVirtualCores()
getVirtualCores in interface ResourceEventpublic Optional<String> getRackName()
getRackName in interface ResourceEventpublic String getRuntimeName()
getRuntimeName in interface ResourceEventpublic static ResourceEventImpl.Builder newAllocationBuilder()
public static ResourceEventImpl.Builder newRecoveryBuilder()
Copyright © 2017 The Apache Software Foundation. All rights reserved.