The file checker is a multi-threaded, file oriented client that is implemented as simple as possible using the REST API "IsKnownGood". It only requires standard Java libraries and is implemented in ~128 lines of code.
The file checker allows to validate what files are known by the GRID simply by executing it on the local computer. (The built-in defaults direct the calls to the live GRID system).
java -cp gacl-client-1.2.4-RC.jar TrivialFileChecker [path1] [path2] ... java -cp gacl-client-1.2.4-RC.jar -Dhost=hostOrIp:8080 -Dprotocol=http\ TrivialFileChecker [path1] [path2] ...
The trivial client was done with as little effort as possible, therefore there are only 3 system properties that can be set to control the behaviour of the client.
Property | Description |
---|---|
-Dhost | Hostname or IP of the GACL node or load balancer, optionally including port number. Defaults to: "gacl.trendmicro.com" |
-Dprotocol | Protocol to use for connecting to the GACL node. Defaults to: "https" |
-Dconnections | Amount of concurrent connections. Defaults to: "16" |
Source Code of the Client: TrivialFileChecker.java