@Override public void onError(Throwable throwable) { Log.Error(KontraktorServlet.this,throwable); } });
public static void Error(Object source, String s) { Error(source,null,s); } public static void Error(Object source, Throwable th) {
public static void Error(Object source, String s) { Error(source,null,s); } public static void Error(Object source, Throwable th) {
@Override public void error(String s) { Log.Error( name, s ); }
@Override public void error(String s, Object o, Object o1) { Log.Error( name, s +" "+o+", "+o1 ); }
@Override public void error(String s, Throwable throwable) { Log.Error( name, throwable, s ); }
public static void Error(Object source, Throwable th) { Error(source,th,null); } public static void Error(Object source, Throwable th, String s) {
public static void Error(Object source, Throwable th) { Error(source,th,null); } public static void Error(Object source, Throwable th, String s) {
private void dumpMisses() { for (int i=0; i < NUM_SLOTS; i++ ) { if ( ! shardMap.containsKey(i) ) Log.Error(this," missing bucket "+i); } }
@Override public void error(String s, Object... objects) { Log.Error( name, s +" "+Arrays.toString(objects) ); }
default String postProcess(String currentJS, JSPostProcessorContext context) { try { return new String(postProcess(currentJS.getBytes("UTF-8"),context),"UTF-8"); } catch (UnsupportedEncodingException e) { Log.Error(this,e); return ""+e; } }
@Override public void send(byte[] b) { try { send(new String(b,"UTF-8")); } catch (UnsupportedEncodingException e) { Log.Error(this,e); } }
default byte[] postProcess(byte[] currentJS, JSPostProcessorContext context) { try { return postProcess(new String(currentJS,"UTF-8"),context).getBytes("UTF-8"); } catch (UnsupportedEncodingException e) { Log.Error(this,e); return (""+e).getBytes(); } }
@Override public boolean isTerminated() { boolean terminated = reg.isTerminated(); if ( terminated ) return true; boolean closed = chan.get().isClosed(); if ( closed ) { Log.Error(this, "registry alive, but socket closed"); } return closed; }
@Override public void sendAuthResponse(byte[] response, String sessionId) { try { send(new String(response,"UTF-8")); aCtx.complete(); } catch (UnsupportedEncodingException e) { Log.Error(this,e); } } }
@Override public boolean isTerminated() { boolean terminated = reg.isTerminated(); if ( terminated ) return true; boolean closed = chan.get().isClosed(); if ( closed ) { Log.Error(this, "registry alive, but socket closed"); } return closed; }
@Override public void receive(ChangeMessage change) { checkThread(); try { storageDriver.receive(change); } catch (Exception th) { Log.Error(this,th); } }
private void publishActorDirect(Long id, Actor act) { Object o = publishedActorMap.get(id); if ( o != null && o != act.getActorRef() ) { Log.Error(this,"id already present old:"+o+" new:"+act); } publishedActorMap.put(id, act.getActorRef()); publishedActorMappingReverse.put(act.getActorRef(), id); act.__addRemoteConnection(this); }
private void publishActorDirect(Long id, Actor act) { Object o = publishedActorMap.get(id); if ( o != null && o != act.getActorRef() ) { Log.Error(this,"id already present old:"+o+" new:"+act); } publishedActorMap.put(id, act.getActorRef()); publishedActorMappingReverse.put(act.getActorRef(), id); act.__addRemoteConnection(this); }
public ShardedTable(RealLiveTable[] shards, TableDescription desc) { this.description = desc; for (int i = 0; i < shards.length; i++) { addNode( createSlots(shards.length,i), shards[i] ); } if ( ! isComplete() ) { Log.Error(this,"incomplete key coverage"); } long now = System.currentTimeMillis() - 8; realSubs( rec -> rec.getLastModified() > now, change -> globalListen(change) ); }