Class RetrialAttempts
api/state/retrial_attempts.py.
Queue.setRetrial(jobclass, delay, maxAttempts): an arriving job
that finds every server busy joins the orbit with no attempts made; each
retry that finds every server busy counts one more, and a job that has
failed maxAttempts retries is lost (maxAttempts <= 0 means
unlimited and needs no block). The orbit stays where the unlimited retrial
keeps it (the class tokens of the station's buffer); the station's local
state ends with a block of maxAttempts counters, n[a] =
orbiting jobs that have failed a retries, which sum to the orbit
size. Under the LINEAR policy level a retries at rate
n[a] * retrialMu. Served for an OPEN class, LINEAR policy, persistent
customers and no orbital search (refused otherwise by
CtmcStateSupports).
The block is declared per solve on a private copy of the struct, in an
extra trailing column of sn.nvars (index 3R+1), so it is the
last of the local variables; a station is treated here only once that
column holds its block width.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStation, retrial class, attempt limit and retrial rate. -
Method Summary
Modifier and TypeMethodDescriptionstatic List<int[]>compositions(int total, int parts) Every vector ofpartsnonnegative integers summing tototal(Python order).static RetrialAttempts.Infodeclared(NetworkStruct sn, int ind) The finite-attempt retrial of nodeind, prepared or not, or null.static RetrialAttempts.Infoinfo(NetworkStruct sn, int ind) The prepared finite-attempt retrial of nodeind, or null.static intColumn ofsn.nvarsthat holds the block width.static intorbitSize(NetworkStruct sn, int ind, RetrialAttempts.Info info, Matrix row) Orbit size of the retrial class in a station row.
-
Method Details
-
nvarsColumn
Column ofsn.nvarsthat holds the block width. -
declared
The finite-attempt retrial of nodeind, prepared or not, or null. -
info
The prepared finite-attempt retrial of nodeind, or null. -
orbitSize
Orbit size of the retrial class in a station row. -
compositions
Every vector ofpartsnonnegative integers summing tototal(Python order).
-