Tm1SupportMode
import io.skipcheck.tm1.client.version.Tm1SupportMode;How strictly a client holds calls to what the connected TM1 version does: a feature the server would refuse anyway is refused before sending, and one it would accept and then drop or answer with nothing is sent with a warning.
What the server's own $metadata lacks (Tm1SupportStatus.UNSUPPORTED
with no fact) is refused in every mode: the modes govern the support facts, which can
be out of date, not $metadata, which can't. Tm1SupportStatus.PARTIAL
depends on the call's arguments, so it's never held in any mode.
Members
values static | |
valueOf static | |
WARN static | The default. |
STRICT static | For tests and CI. |
OFF static | The escape hatch for facts that are out of date. |
outcome | What this mode does with a call to a feature. |
values
staticstatic Tm1SupportMode[] values()valueOf
staticstatic Tm1SupportMode valueOf(String name)WARN
staticWARN The default. A refusal the facts certify for this version is refused; one they only
extrapolate to it is sent with a warning, as is a read that answers with nothing
(Tm1SupportStatus.INERT) and a write that's dropped
(Tm1SupportStatus.IGNORED).
STRICT
staticSTRICT For tests and CI: every warning of WARN is a refusal instead, except a
Tm1SupportStatus.CONDITIONAL feature whose setting couldn't be read, which
is only ever a warning.
OFF
staticOFFThe escape hatch for facts that are out of date: every call is sent, and the facts aren't checked.
outcome
Tm1SupportOutcome outcome(Tm1Support support, Boolean setting)What this mode does with a call to a feature.
Parameters
support- what the server does with the feature
setting- for a
Tm1SupportStatus.CONDITIONALfeature, whether the setting it depends on is on, ornullif it couldn't be read; ignored otherwise
Returns
- whether the call is sent, sent with a warning, or refused
Also in the Javadoc.