added properties files, lib directory, Makefile, and run script
git-svn-id: svn://anubis/gvsu@211 45c1a28c-8058-47b2-ae61-ca45b979098e
This commit is contained in:
parent
ed66ce5b9a
commit
bf89c8c9f2
2
cs656/lab3/ChatClient.sh
Executable file
2
cs656/lab3/ChatClient.sh
Executable file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
java -cp .:./lib/log4j.jar:./lib/openchord_1.0.4.jar ChordClient $*
|
6
cs656/lab3/Makefile
Normal file
6
cs656/lab3/Makefile
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
|
||||||
|
all:
|
||||||
|
javac -cp .:lib/openchord_1.0.4.jar:lib/log4j.jar *.java
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -f *~ *.class
|
26
cs656/lab3/chord.properties
Normal file
26
cs656/lab3/chord.properties
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
#Property file for Open Chord version 1.0.4
|
||||||
|
# Name of log4j property file
|
||||||
|
log4j.properties.file=log4j.properties
|
||||||
|
|
||||||
|
# Number of bytes of displayed IDs
|
||||||
|
de.uniba.wiai.lspi.chord.data.ID.number.of.displayed.bytes=4
|
||||||
|
|
||||||
|
#Number of successors
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.successors=2
|
||||||
|
|
||||||
|
#Number of threads for asynchronous executions
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.AsyncThread.no=10
|
||||||
|
|
||||||
|
# Start times and intervals of maintenance tasks
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.StabilizeTask.start=0
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.StabilizeTask.interval=6
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.FixFingerTask.start=2
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.FixFingerTask.interval=12
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.CheckPredecessorTask.start=4
|
||||||
|
de.uniba.wiai.lspi.chord.service.impl.ChordImpl.CheckPredecessorTask.interval=6
|
||||||
|
|
||||||
|
#ThreadPool for incoming requests
|
||||||
|
de.uniba.wiai.lspi.chord.com.socket.InvocationThread.corepoolsize=10
|
||||||
|
de.uniba.wiai.lspi.chord.com.socket.InvocationThread.maxpoolsize=50
|
||||||
|
#time to keep idle threads alive before termination in seconds:
|
||||||
|
de.uniba.wiai.lspi.chord.com.socket.InvocationThread.keepalivetime=20
|
BIN
cs656/lab3/lib/log4j.jar
Normal file
BIN
cs656/lab3/lib/log4j.jar
Normal file
Binary file not shown.
BIN
cs656/lab3/lib/openchord_1.0.4.jar
Normal file
BIN
cs656/lab3/lib/openchord_1.0.4.jar
Normal file
Binary file not shown.
12
cs656/lab3/log4j.properties
Normal file
12
cs656/lab3/log4j.properties
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
log4j.rootLogger=ON
|
||||||
|
log4j.appender.FILE=org.apache.log4j.FileAppender
|
||||||
|
log4j.appender.FILE.Append=False
|
||||||
|
log4j.appender.FILE.layout=org.apache.log4j.HTMLLayout
|
||||||
|
log4j.appender.FILE.layout.LocationInfo = true
|
||||||
|
log4j.appender.FILE.File=open_chord.log.html
|
||||||
|
|
||||||
|
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
|
||||||
|
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
|
||||||
|
log4j.appender.CONSOLE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
|
||||||
|
|
||||||
|
log4j.logger.de.uniba.wiai.lspi.chord=WARN, FILE
|
Loading…
x
Reference in New Issue
Block a user