A remote object store that implements a server and client library and communication protocol
Any kind of data be stored as an object, from a string, to pictures, to videos. Within an object store, objects are stored in a flat namespace using a unique identifier or key.
The RUStore Serve ris a runnable java program that was implemented in the server class RUStoreServer.java. The main method accepts a single argument which is the port number the server should run on.
In order to interact with a remote RUStore Server, the RUStore Client is used.
Within the /src/main/java/com/RUStore directory there are three Test*
files:
- TestSample.java - This is a sample test file that will use the RUStore client library and create and try to store and retrieve various objects.
- TestSandbox.java - This is an empty file that you can use to implement your own test application that will use the RUStore client library.
- TestStringCLI.java - This is a simple interactive program that will allow you to send test and send text to your object server as String objects.
There is a folder called inputfiles
under the root of the project with a file that you can use to test if you can properly store and retrieve files as objects:
lofi.mp3 - 1 minute of royalty-free lofi music
There is also a folder called outputfiles
. This is an empty folder where you can direct data objects downloaded from the remote object store. This is simply here to act as a place to keep files separate from the original input files.
-
Run the server on port 12345
java -jar ./target/RUStoreServer.jar 12345
-
Run test programs. Ex.:
java -jar ./target/TestStringCLI.jar