Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/deevus/seng3400-a3
https://github.com/deevus/seng3400-a3
Last synced: 18 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/deevus/seng3400-a3
- Owner: deevus
- Created: 2015-10-30T03:59:05.000Z (about 9 years ago)
- Default Branch: develop
- Last Pushed: 2015-11-01T07:14:29.000Z (about 9 years ago)
- Last Synced: 2024-12-13T17:51:20.842Z (24 days ago)
- Language: Java
- Size: 406 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SENG3400 - Assignment 3
## Simon Hartcher - C3185790### Usage Instructions
#### a) Build using Makefile
Run `make` from the `src/` directory
#### b) Build Manually
1. Generate IDL (`src/`)
Note that we use the `-fall` flag as the helper classes are required in the implementation.
```
idlj -td client -fall sync.idl
idlj -td server -fall sync.idl
```2. Compile server (`src/server/`)
```
javac *.java SyncApp/*.java
```3. Compile client (`src/client/`)
```
javac *.java SyncApp/*.java
```### Running
1. Start server (assuming orb daemon is running) (`src/server/`)
```
java SyncServer
```2. Run clients (`src/client/`)
```
java SyncClient -SyncMode deferred
java SyncClient -SyncMode async
```### Notes
The deferred client will always end after 15 ticks, as the client will block on
the 10th tick until we can assign a new value, before doing the final five ticks.The async client will end somewhere on or after 10 ticks depending on the server.
When the value changes, the final five ticks counts down before ending.