PTLog API - 1.0

jp.ne.dti.lares.foozy.ptlog
Class EffectiveLogServer

java.lang.Object
  extended byjp.ne.dti.lares.foozy.ptlog.LogServer
      extended byjp.ne.dti.lares.foozy.ptlog.EffectiveLogServer
Direct Known Subclasses:
IntermediateServer, ServiceProvider

public abstract class EffectiveLogServer
extends LogServer

(Part )concretization of "LogServer" to work.

You must concretize below method(s) to have this function.

See Also:
NullLogServer

Constructor Summary
EffectiveLogServer()
          Constructor.
 
Method Summary
protected  void addServee_(LogServee servee)
          Add specified one to management list.
protected  java.util.Iterator getServees()
          Get iterator of registered "LogServee"s.
protected  void removeServee_(LogServee servee)
          Remove specified one from management list.
 
Methods inherited from class jp.ne.dti.lares.foozy.ptlog.LogServer
addServee, fireReconfigure, getContext, getSubjectName, removeServee
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EffectiveLogServer

public EffectiveLogServer()
Constructor.

Method Detail

addServee_

protected void addServee_(LogServee servee)
Add specified one to management list.

Specified by:
addServee_ in class LogServer
Parameters:
servee - to be served by this.
See Also:
LogServer.addServee(jp.ne.dti.lares.foozy.ptlog.LogServee)

removeServee_

protected void removeServee_(LogServee servee)
Remove specified one from management list.

Specified by:
removeServee_ in class LogServer
Parameters:
servee - to be served by this.
See Also:
LogServer.removeServee(jp.ne.dti.lares.foozy.ptlog.LogServee)

getServees

protected java.util.Iterator getServees()
Description copied from class: LogServer
Get iterator of registered "LogServee"s.

This is invoked from LogServer.fireReconfigure() to propagate notification to them.

This class does not "synchronize" servee list for runtime efficiency.

So, concretization of this method should ensure that returned iterator can safely complete iteration even if someone invokes LogServer.addServee(jp.ne.dti.lares.foozy.ptlog.LogServee)(or #removeServee) in the middle of iteration.

Specified by:
getServees in class LogServer
Returns:
iterator consisting of managed ones.
See Also:
LogServer.fireReconfigure(), SafeList

PTLog API - 1.0