@Override public void debug(String s) { if ( ForwardDebug ) Log.Debug(name, s); }
@Override public void debug(String s, Object o, Object o1) { if ( ForwardDebug ) Log.Debug(name, s+" "+o+" "+o1); }
@Override public void debug(String s, Object o) { if ( ForwardDebug ) Log.Debug(name, s+" "+o); }
@Override public void trace(String s, Object o) { Log.Debug(s+" "+o); }
@Override public void trace(String s, Object o, Object o1) { Log.Debug(s+" "+o+" "+o1); // wtf }
@Override public void trace(String s) { Log.Debug(s); }
@Override public void debug(String s, Object... objects) { if ( ForwardDebug ) Log.Debug(name, s+" "+Arrays.toString(objects)); }
@Override public void trace(String s, Object... objects) { Log.Debug(s+" "+ Arrays.toString(objects)); // wtf }
protected void writeObject(ObjectSocket chan, RemoteCallEntry rce) throws Exception { try { chan.writeObject(rce); } catch (Exception e) { Log.Debug(this,"a connection closed '"+e.getMessage()+"', terminating registry"); disconnect(); } }
protected void writeObject(ObjectSocket chan, RemoteCallEntry rce) throws Exception { try { chan.writeObject(rce); } catch (Exception e) { Log.Debug(this,"a connection closed '"+e.getMessage()+"', terminating registry"); disconnect(); } }
/** * remove current <remoteId,actor> mappings if present. * return map containing removed mappings (for reconnection) * @param act * */ public void unpublishActor(Actor act) { Long integer = publishedActorMappingReverse.get(act.getActorRef()); if ( integer != null ) { Log.Debug(this, ""+act.getClass().getSimpleName()+" unpublished"); publishedActorMap.remove(integer); publishedActorMappingReverse.remove(act.getActorRef()); act.__removeRemoteConnection(this); if ( act instanceof RemotedActor) { String connectionIdentifier = getSocketRef().getConnectionIdentifier(); ((RemotedActor) act).hasBeenUnpublished(connectionIdentifier); } } }
/** * remove current <remoteId,actor> mappings if present. * return map containing removed mappings (for reconnection) * @param act * */ public void unpublishActor(Actor act) { Long integer = publishedActorMappingReverse.get(act.getActorRef()); if ( integer != null ) { Log.Debug(this, ""+act.getClass().getSimpleName()+" unpublished"); publishedActorMap.remove(integer); publishedActorMappingReverse.remove(act.getActorRef()); act.__removeRemoteConnection(this); if ( act instanceof RemotedActor) { String connectionIdentifier = getSocketRef().getConnectionIdentifier(); ((RemotedActor) act).hasBeenUnpublished(connectionIdentifier); } } }
@CallerSideMethod protected void __stopImpl() { Log.Debug(this,"stopping actor "+getClass().getSimpleName()); Actor self = __self; if ( self == null || getActor() == null || (self.isStopped() && getActor().isStopped()) ) return; getActorRef().__stopped = true; getActor().__stopped = true; if (__stopHandlers!=null) { __stopHandlers.forEach( (cb) -> cb.complete(self(), null) ); __stopHandlers.clear(); } // remove ref to real actor as ref might still be referenced in threadlocals and // queues. //FIXME: this causes NPE instead of deadletter // try { // getActorRef().getClass().getField("__target").set( getActorRef(), null ); // } catch (IllegalAccessException e) { // e.printStackTrace(); // } catch (NoSuchFieldException e) { // e.printStackTrace(); // } throw InternalActorStoppedException.Instance; }
@CallerSideMethod protected void __stopImpl() { Log.Debug(this,"stopping actor "+getClass().getSimpleName()); Actor self = __self; if ( self == null || getActor() == null || (self.isStopped() && getActor().isStopped()) ) return; getActorRef().__stopped = true; getActor().__stopped = true; if (__stopHandlers!=null) { __stopHandlers.forEach( (cb) -> cb.complete(self(), null) ); __stopHandlers.clear(); } // remove ref to real actor as ref might still be referenced in threadlocals and // queues. //FIXME: this causes NPE instead of deadletter // try { // getActorRef().getClass().getField("__target").set( getActorRef(), null ); // } catch (IllegalAccessException e) { // e.printStackTrace(); // } catch (NoSuchFieldException e) { // e.printStackTrace(); // } throw InternalActorStoppedException.Instance; }
Log.Debug(this,"dispatcher thread terminated "+getName()); } finally { activeDispatchers.decrementAndGet();
Log.Debug(this,"dispatcher thread terminated "+getName()); } finally { activeDispatchers.decrementAndGet();