|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jp.ne.dti.lares.foozy.ptlog.LogServer
Base of classes which provide log service or intermediate direction.
You must concretize below method(s) to have this function.
getContext(java.lang.Object)
addServee_(jp.ne.dti.lares.foozy.ptlog.LogServee)
removeServee_(jp.ne.dti.lares.foozy.ptlog.LogServee)
getServees()
Constructor Summary | |
LogServer()
Constructor. |
Method Summary | |
protected abstract void |
addServee_(LogServee servee)
Add " LogServee " to management list.
|
void |
addServee(LogServee servee)
Add " LogServee " to management list.
|
protected void |
fireReconfigure()
Propagete notification of configuration changes. |
abstract LogContext |
getContext(java.lang.Object subject)
Get context for specified log subject. |
protected abstract java.util.Iterator |
getServees()
Get iterator of registered " LogServee "s.
|
static java.lang.String |
getSubjectName(java.lang.Object subject)
Get subject name of specified object. |
protected abstract void |
removeServee_(LogServee servee)
Remove " LogServee " from management list.
|
void |
removeServee(LogServee servee)
Remove " LogServee " from management list.
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LogServer()
Method Detail |
public final void addServee(LogServee servee)
LogServee
" to management list.
This invokes addServee_(jp.ne.dti.lares.foozy.ptlog.LogServee)
, then
invokeds reconfigure
on specified one.
servee
- to be served by this.addServee_(jp.ne.dti.lares.foozy.ptlog.LogServee)
public final void removeServee(LogServee servee)
LogServee
" from management list.
This invokes removeServee_(jp.ne.dti.lares.foozy.ptlog.LogServee)
.
servee
- not to be served by this.removeServee_(jp.ne.dti.lares.foozy.ptlog.LogServee)
public abstract LogContext getContext(java.lang.Object subject)
subject
- of logging request.
public static java.lang.String getSubjectName(java.lang.Object subject)
This returns Class#getName
,
if specified subject is instance of Class
.
Otherwise, this returns #toString
result applied on it.
subject
- of logging
protected abstract void addServee_(LogServee servee)
LogServee
" to management list.
Concretized class can ignore specified one, if no service is provided to it.
servee
- to be served by this.addServee(jp.ne.dti.lares.foozy.ptlog.LogServee)
protected abstract void removeServee_(LogServee servee)
LogServee
" from management list.
Concretized class can ignore specified one, if no service is provided to it.
servee
- to be served by this.removeServee(jp.ne.dti.lares.foozy.ptlog.LogServee)
protected abstract java.util.Iterator getServees()
LogServee
"s.
This is invoked from 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 addServee(jp.ne.dti.lares.foozy.ptlog.LogServee)
(or #removeServee)
in the middle of iteration.
fireReconfigure()
,
SafeList
protected final void fireReconfigure()
This invokes ConfigListener.reconfigure(jp.ne.dti.lares.foozy.ptlog.LogServer)
on
each elements contained by getServees()
result.
|
PTLog API - 1.0 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |