public static class RoutingAllocation.Result extends Object
RoutingAllocation
Constructor and Description |
---|
Result(boolean changed,
RoutingTable routingTable)
Creates a new
RoutingAllocation.Result |
Result(boolean changed,
RoutingTable routingTable,
RoutingExplanations explanations)
Creates a new
RoutingAllocation.Result |
Modifier and Type | Method and Description |
---|---|
boolean |
changed()
determine whether the actual
RoutingTable has been changed |
RoutingExplanations |
explanations()
Get the explanation of this result
|
RoutingTable |
routingTable()
Get the
RoutingTable referenced by this result |
public Result(boolean changed, RoutingTable routingTable)
RoutingAllocation.Result
changed
- a flag to determine whether the actual RoutingTable
has been changedroutingTable
- the RoutingTable
this Result referencespublic Result(boolean changed, RoutingTable routingTable, RoutingExplanations explanations)
RoutingAllocation.Result
changed
- a flag to determine whether the actual RoutingTable
has been changedroutingTable
- the RoutingTable
this Result referencesexplanations
- Explanation for the reroute actionspublic boolean changed()
RoutingTable
has been changedtrue
if the RoutingTable
has been changed by allocation. Otherwise false
public RoutingTable routingTable()
RoutingTable
referenced by this resultRoutingTable
public RoutingExplanations explanations()
Copyright © 2009–2016. All rights reserved.