public abstract class MOOManagerCallBack
extends java.lang.Object
MOOManager| Modifier and Type | Field and Description |
|---|---|
static int |
ABORT_UPDATE |
static int |
CONTINUE_UPDATE |
protected int |
updateInterval |
| Constructor and Description |
|---|
MOOManagerCallBack(int inupdateInterval)
Constructs a MOOManagerCallBack object.
|
| Modifier and Type | Method and Description |
|---|---|
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
|
public static final int ABORT_UPDATE
public static final int CONTINUE_UPDATE
protected int updateInterval
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() processpublic int getUpdateInterval()
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'spublic 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 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_UPDATE
API Documentation Copyright © 1998-2004 Novell, Inc. All rights reserved.
NDS is a registered trademark of Novell, Inc. in the United States and other countries.
Generated ${TODAY} ${TSTAMP}.