Package com.ultikits.ultitools.utils
Class CloudFeatures.Bindings
java.lang.Object
com.ultikits.ultitools.utils.CloudFeatures.Bindings
- Enclosing class:
CloudFeatures
The ports the inbound handlers are built from.
forPlugin(UltiTools) binds every one of them to the
running server; a test binds only those it exercises.-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Consumer<RemoteActionLog.Entry> Receives every action-log entry the remote surface records (commands excepted: their manager records them).(package private) LongSupplierEpoch milliseconds for the telemetry cadence and the log rate bucket.(package private) Supplier<CommandExecutionManager> The command manager ofcommand.execute.(package private) Supplier<ConfigManager> The configuration manager ofconfig.*.(package private) BooleanSupplierWhether the plugin is being disabled.(package private) BooleanSupplierWhether "ultipanel.logging.error-reporting.enabled" is on now.(package private) Supplier<ErrorReportCollector> The collector theerror.reportframes are drained from;nullsends none.(package private) intHow many file and property requests may wait behind the running one (thenrate_limited).(package private) Supplier<CloudRequestHandler> The handler offiles.*.(package private) ExecutorRuns Bukkit work on the server thread, in submission order.Starts a task on the server thread every 20 ticks and returns what cancels it;nullstarts none.(package private) Supplier<List<UltiToolsPlugin>> The loaded modules whose configurationconfig.*serves.A loaded module'splugin.ymlversion by module name, for its capability name.(package private) Supplier<ServerMonitorManager> The server sampler of the telemetry, read at first use and never byCloudFeatures.start(com.ultikits.ultitools.UltiTools): the plugin creates it after the features start.(package private) BooleanSupplierThis server's online-mode setting, forplayer.link.create.(package private) Supplier<PowerActionHandler.PowerExecutor> The stop and restart ofserver.power.(package private) BooleanSupplierThepower-actionsswitch, read on everyserver.power.(package private) Supplier<CloudRequestHandler> The handler ofproperties.*.(package private) Supplier<PanelResponderRegistry> The registrymodule.requestis answered from.(package private) ShutdownGate.SignalThe shutdown signal every state-changing request asks (ShutdownGate); never refuses unless bound.(package private) Predicate<Capability> Whether an operator switch is on now; read for every hello and every request. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static boolean(package private) static CloudFeatures.Bindings(package private) static CloudFeatures.Bindings
-
Field Details
-
onlineMode
BooleanSupplier onlineModeThis server's online-mode setting, forplayer.link.create. -
switches
Predicate<Capability> switchesWhether an operator switch is on now; read for every hello and every request. -
errorReporting
BooleanSupplier errorReportingWhether "ultipanel.logging.error-reporting.enabled" is on now. -
powerEnabled
BooleanSupplier powerEnabledThepower-actionsswitch, read on everyserver.power. -
commands
Supplier<CommandExecutionManager> commandsThe command manager ofcommand.execute. -
mainThread
Executor mainThreadRuns Bukkit work on the server thread, in submission order. -
disabling
BooleanSupplier disablingWhether the plugin is being disabled. -
shutdown
ShutdownGate.Signal shutdownThe shutdown signal every state-changing request asks (ShutdownGate); never refuses unless bound.forPlugin(com.ultikits.ultitools.UltiTools)binds it to the flagdisablingreads. -
power
The stop and restart ofserver.power. -
actionLog
Consumer<RemoteActionLog.Entry> actionLogReceives every action-log entry the remote surface records (commands excepted: their manager records them). -
fileQueueCapacity
int fileQueueCapacityHow many file and property requests may wait behind the running one (thenrate_limited). -
files
Supplier<CloudRequestHandler> filesThe handler offiles.*. -
properties
Supplier<CloudRequestHandler> propertiesThe handler ofproperties.*. -
modules
Supplier<List<UltiToolsPlugin>> modulesThe loaded modules whose configurationconfig.*serves. -
configs
Supplier<ConfigManager> configsThe configuration manager ofconfig.*. -
responders
Supplier<PanelResponderRegistry> respondersThe registrymodule.requestis answered from. -
moduleVersion
A loaded module'splugin.ymlversion by module name, for its capability name. -
errors
Supplier<ErrorReportCollector> errorsThe collector theerror.reportframes are drained from;nullsends none. -
monitor
Supplier<ServerMonitorManager> monitorThe server sampler of the telemetry, read at first use and never byCloudFeatures.start(com.ultikits.ultitools.UltiTools): the plugin creates it after the features start.null, or a supplier ofnull, sends no telemetry and keepstelemetryout of the hello. -
mainTimer
Starts a task on the server thread every 20 ticks and returns what cancels it;nullstarts none. Ticks, not a wall-clock hop, so the TPS sample measures the server. -
clock
LongSupplier clockEpoch milliseconds for the telemetry cadence and the log rate bucket.
-
-
Constructor Details
-
Bindings
Bindings()
-
-
Method Details
-
forTesting
- Returns:
- bindings with no server behind them: only the switches, the credential rotation and links
-
forPlugin
- Parameters:
plugin- the running framework plugin- Returns:
- every port bound to the running server
-
errorReportingEnabled
private static boolean errorReportingEnabled()
-