public abstract class ResourceHandler extends Object implements AssignmentChangeListener
Discoverable
given in the constructor.Modifier | Constructor and Description |
---|---|
protected |
ResourceHandler(Discoverable discoverable) |
Modifier and Type | Method and Description |
---|---|
protected Discoverable |
getDiscoverable() |
protected abstract void |
onChange(Collection<PartitionReplica> partitionReplicas)
Invoked when the assignment changed.
|
void |
onChange(ResourceAssignment assignment)
Invoked when there is change in assignment.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
finished
protected ResourceHandler(Discoverable discoverable)
protected abstract void onChange(Collection<PartitionReplica> partitionReplicas)
partitionReplicas
- The new assignment.public final void onChange(ResourceAssignment assignment)
AssignmentChangeListener
onChange
in interface AssignmentChangeListener
assignment
- The updated assignment.protected final Discoverable getDiscoverable()
Copyright © 2016 Cask Data, Inc. Licensed under the Apache License, Version 2.0.