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 ResourceEvent
public int getResourceMemory()
getResourceMemory
in interface ResourceEvent
public String getNodeId()
getNodeId
in interface ResourceEvent
public Optional<Integer> getVirtualCores()
getVirtualCores
in interface ResourceEvent
public Optional<String> getRackName()
getRackName
in interface ResourceEvent
public String getRuntimeName()
getRuntimeName
in interface ResourceEvent
public static ResourceEventImpl.Builder newAllocationBuilder()
public static ResourceEventImpl.Builder newRecoveryBuilder()
Copyright © 2017 The Apache Software Foundation. All rights reserved.