Inherits Iterator.
Public Member Functions | |
| String | getResourceName () |
| Gets the resource name. | |
| boolean | hasNext () |
| Always returns true, so, always there are a "best" resource candidate. | |
| ResourceInstance | next () |
| Iterator basic method. | |
| void | remove () |
| Have no sense to remove a candidate. | |
| void | setResourceName (String inResourceName) |
| Sets a new resource name to iterate over. | |
Protected Member Functions | |
| ResourceIterator (GridResourceProvider inGrid, String inResourceName) | |
| Constructed from Grid. | |
Used to have different sources taking shared resources.
When using this resource provider the allocation can be on demand.
It has no end. hasNext always return true, (always there are a best resource)
| com.abiquo.ResourceIterator.ResourceIterator | ( | GridResourceProvider | inGrid, | |
| String | inResourceName | |||
| ) | [protected] |
| String com.abiquo.ResourceIterator.getResourceName | ( | ) |
Gets the resource name.
| boolean com.abiquo.ResourceIterator.hasNext | ( | ) |
Always returns true, so, always there are a "best" resource candidate.
| ResourceInstance com.abiquo.ResourceIterator.next | ( | ) |
Iterator basic method.
Wait almost "BACKOF" between calls.
| void com.abiquo.ResourceIterator.setResourceName | ( | String | inResourceName | ) |
Sets a new resource name to iterate over.
| inResourceName | the new supplied resource name |
1.5.5