Package com.ultikits.ultitools.manager
Class RemoteRequestHandlers
java.lang.Object
com.ultikits.ultitools.manager.RemoteRequestHandlers
Builds the protocol v2 file and
server.properties request handlers of this package for the connection wiring
in com.ultikits.ultitools.utils (plan 22-21); internal, not for module use. The handlers themselves stay
package-private: this class exposes only the CloudRequestHandler they implement.
Both handlers do blocking file I/O. The router runs them on the agent connection's thread, never on the server thread.
- Since:
- 6.3.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe request types the file handler answers.The request types theserver.propertieshandler answers. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CloudRequestHandlerfiles(FileOperationManager files, File serverRoot, Consumer<RemoteActionLog.Entry> actionLog) static CloudRequestHandlerproperties(ServerPropertiesManager properties, Consumer<RemoteActionLog.Entry> actionLog)
-
Field Details
-
FILE_TYPES
The request types the file handler answers. -
PROPERTY_TYPES
The request types theserver.propertieshandler answers.
-
-
Constructor Details
-
RemoteRequestHandlers
private RemoteRequestHandlers()
-
-
Method Details
-
files
public static CloudRequestHandler files(FileOperationManager files, File serverRoot, Consumer<RemoteActionLog.Entry> actionLog) - Parameters:
files- the file manager whose guard resolves every remote pathserverRoot- the server root the editable roots are listed relative toactionLog- receives one entry per decided remote file request- Returns:
- the handler of
FILE_TYPES
-
properties
public static CloudRequestHandler properties(ServerPropertiesManager properties, Consumer<RemoteActionLog.Entry> actionLog) - Parameters:
properties- theserver.propertiesmanageractionLog- receives one entry per remote property update- Returns:
- the handler of
PROPERTY_TYPES
-