[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
No Subject
hello,
again, the OO1 benchmark was not working, because of some little problems,
that I fixed.
hope this helps,
Stan.
cvs diff -w CattellImpl.java (in directory E:\tmp\ozone-cvs\ozone\samples\OO1\)
Index: CattellImpl.java
===================================================================
RCS file: /raid/Repository/ozone/samples/OO1/CattellImpl.java,v
retrieving revision 1.18
diff -w -r1.18 CattellImpl.java
5a6
> import java.util.StringTokenizer;
62,63c63,78
< log.logMessage( "server host: " + serverHost );
< ((RemoteDatabase)rdb).open( serverHost, 3333 );
---
>
> //note: the serverHost String follows the
following pattern: "server:port"
> //It thus needs to be parsed, before being passed
to the open() method.
>
> //let's do it...
> StringTokenizer tokenizer = new
StringTokenizer(serverHost, ":");
> String host = tokenizer.nextToken();
> String portString = tokenizer.nextToken();
>
> //NOTE: I am expecting the serverHost to hold an
integer after the ":" symbol.
> //MayBe I should be less confident about that, and
make a
> //safer system.
> Integer portNumber = new Integer(portString);
>
> log.logMessage( "server host: " + host );
> ((RemoteDatabase)rdb).open( host, portNumber.intValue() );