Skip to content

Commit 30a2b1b

Browse files
committed
towards a stable certificate exchange.
1 parent 4e7f6f0 commit 30a2b1b

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

src/net/sharksystem/asap/ASAPChunkStorageFS.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,8 @@ public ASAPMessages getASAPChunkCache(CharSequence uri, int toEra) throws IOExce
141141
public ASAPMessages getASAPChunkCache(CharSequence uri, int fromEra, int toEra) throws IOException {
142142
Log.writeLog(this, "create ASAPInMemoMessages");
143143

144+
Log.writeLogErr(this, "PLEASE: Implement a method getValidEra() which delivers set of all era which are present int that store - would increase performance!");
145+
144146
return new ASAPInMemoMessages(
145147
this,
146148
this.getFormat(),

src/net/sharksystem/asap/ASAPEngine.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -232,8 +232,8 @@ public void removeChannel(CharSequence uri) throws IOException {
232232
} while(currentEra != this.getEra());
233233
}
234234

235-
public ASAPMessages getChunkChain(int position) throws IOException, ASAPException {
236-
return this.getChunkChain(position, this.era);
235+
public ASAPMessages getChunkChain(int uriPosition) throws IOException, ASAPException {
236+
return this.getChunkChain(uriPosition, this.era);
237237
}
238238

239239
public ASAPMessages getChunkChain(CharSequence uri, int toEra) throws IOException {
@@ -244,17 +244,17 @@ public ASAPMessages getChunkChain(CharSequence uri) throws IOException {
244244
return this.getChunkChain(uri, this.getEra());
245245
}
246246

247-
public ASAPMessages getChunkChain(int position, int toEra)
247+
public ASAPMessages getChunkChain(int uriPosition, int toEra)
248248
throws IOException, ASAPException {
249249

250250
List<CharSequence> channelURIs = this.getChannelURIs();
251-
if(channelURIs.size() - 1 < position) {
251+
if(channelURIs.size() - 1 < uriPosition) {
252252
throw new ASAPException("position greater than number of channels");
253253
}
254254

255-
CharSequence uri = channelURIs.get(position);
255+
CharSequence uri = channelURIs.get(uriPosition);
256256
if(uri == null) {
257-
throw new ASAPException("uri at postion is null. Position: " + position);
257+
throw new ASAPException("uri at postion is null. Position: " + uriPosition);
258258
}
259259

260260
return this.chunkStorage.getASAPChunkCache(uri, toEra);

src/net/sharksystem/asap/ASAPStorage.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,9 +255,9 @@ public interface ASAPStorage {
255255
*/
256256
ASAPChunkStorage getChunkStorage();
257257

258-
ASAPMessages getChunkChain(int position) throws IOException, ASAPException;
258+
ASAPMessages getChunkChain(int uriPosition) throws IOException, ASAPException;
259259

260-
ASAPMessages getChunkChain(int position, int toEra) throws IOException, ASAPException;
260+
ASAPMessages getChunkChain(int uriPosition, int toEra) throws IOException, ASAPException;
261261

262262
ASAPMessages getChunkChain(CharSequence uri, int toEra) throws IOException;
263263

0 commit comments

Comments
 (0)