|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.novell.admin.ns.MOOManagerCallBack
This class describes a callback mechanism service for multiple object operations.
MOOManager| Field Summary | |
static int |
ABORT_UPDATE
|
static int |
CONTINUE_UPDATE
|
protected int |
updateInterval
|
| Constructor Summary | |
MOOManagerCallBack(int inupdateInterval)
Constructs a MOOManagerCallBack object. |
|
| Method Summary | |
abstract void |
finished(int totaloeCount)
CallBack from MOOManager.updateObjects |
int |
getUpdateInterval()
|
abstract int |
handleException(java.lang.Exception e,
ObjectEntry errorOE)
CallBack from MOOManager.updateObjects when an exception occurs |
abstract int |
update(ObjectEntry nextOE,
int oeCount)
CallBack from MOOManager.updateObjects |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int ABORT_UPDATE
public static final int CONTINUE_UPDATE
protected int updateInterval
| Constructor Detail |
public MOOManagerCallBack(int inupdateInterval)
inupdateInterval - - The interval with which to call update() on this callback.
If 1, then update will be called before each attempt to
update an ObjectEntry on the MOOManager. If 10, then
update will be called before trying to update the 10th,
20th, 30th, etc. ObjectEntries on the MOOManager.
If set to 0, then update will never be called during the
MOOManager.updateObjects() process| Method Detail |
public abstract void finished(int totaloeCount)
totaloeCount - The number count of the associated Objectentry(s)
that have been processed. Processing does not
mean successfully completed but an attempt was
made.
The updateObjects() call is now complete and will be returning.
The returned count may be 0 if no OE's existed or were attempted to be
processed. This is called as the last thing before returning
from updateObjects() with the number of currently completed objects,
whether any exceptions occurred or whether the update() or handleException()
calls above returned ABORT_UPDATEpublic int getUpdateInterval()
public abstract int handleException(java.lang.Exception e,
ObjectEntry errorOE)
e - The exception that occured.errorOE - The ObjectEntry that caused an error when being modified.
This ObjectEntry will not be modified.
This may be null if an error outside of a specif OE update
occurred.
public abstract int update(ObjectEntry nextOE,
int oeCount)
nextOE - The next ObjectEntry to be modified. It has not been
processed yet, but is about to be tried.oeCount - The number count of the associated Objectentry
from 1 to Total_Number_of__OE's
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||