|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Whiteboard erasers are used to clear key/value pairs from whiteboards. Erasers can be triggered as timed events or by setting a limit on the number of times a key/value pair can be accessed.
EbiWhiteboard
Method Summary | |
void |
erase()
Begins erase processing. |
int |
getCurrentCounter()
Returns the number of times the object has been accessed. |
String |
getEraserName()
Returns the name of the eraser |
int |
getLife()
Returns the time, in milliseconds, the eraser was set to delay, before beginning erase processing. |
int |
getMaxCounter()
Returns the maximum allowable accesses for the bound object, before eraser starts processing. |
boolean |
getRunning()
Returns a boolean indication of the eraser's running status. |
Thread |
getThread()
Returns the Thread that this eraser belongs to. |
EbiWhiteboard |
getWhiteboard()
Returns the whiteboard object that contains this eraser. |
void |
incrementCurrentCounter()
Increments access counter. |
boolean |
isCounterExceeded()
Returns true if the object bound to this eraser has been accessed more than the allowable times. |
boolean |
isRunning()
Returns a boolean indication of the eraser's running status. |
void |
run()
Starts the eraser Thread. |
void |
setCurrentCounter(int counter)
Sets the counter value. |
void |
setEraserName(String name)
Sets the name of the eraser. |
void |
setLife(int time)
Sets a timer for the eraser. |
void |
setMaxCounter(int counter)
Sets a counter for the eraser. |
void |
setRunning(boolean flag)
Starts or stops the eraser. |
void |
setThread(Thread threadName)
Set the Thread that this eraser belongs to. |
void |
setWhiteboard(EbiWhiteboard whiteboardName)
Sets the EbiWhiteboard that this eraser belongs to. |
void |
stop()
Stops the eraser processing. |
String |
toString()
Returns a String representation of the eraser. |
Method Detail |
public EbiWhiteboard getWhiteboard()
EbiWhiteboard
object that contains
this eraser.public void setWhiteboard(EbiWhiteboard whiteboardName)
whiteboardName
- An EbiWhiteboard
object.public Thread getThread()
public void setThread(Thread threadName)
threadName
- Thread to associate with this eraser.public boolean getRunning()
EbiWhiteboardEraser.isRunning()
,
EbiWhiteboardEraser.setRunning(boolean running)
public void setRunning(boolean flag)
flag
- true to start eraser thread, false to stop eraser thread.EbiWhiteboardEraser.isRunning()
,
EbiWhiteboardEraser.getRunning()
public boolean isRunning()
EbiWhiteboardEraser.getRunning()
,
EbiWhiteboardEraser.setRunning(boolean running)
public void stop()
public String getEraserName()
public void setEraserName(String name)
name
- The name of the eraser.public int getLife()
public void setLife(int time)
time
- The timer value in milliseconds.public boolean isCounterExceeded()
Returns
- true if the object bound to this eraser has been accessed more
than the allowable times.EbiWhiteboardEraser.getMaxCounter()
,
EbiWhiteboardEraser.setMaxCounter(int counter)
public int getMaxCounter()
EbiWhiteboardEraser.setMaxCounter(int counter)
,
EbiWhiteboardEraser.isCounterExceeded()
public void setMaxCounter(int counter)
counter
- The number of accesses before eraser is activated.EbiWhiteboardEraser.isCounterExceeded()
,
EbiWhiteboardEraser.getMaxCounter()
public void incrementCurrentCounter()
EbiWhiteboardEraser.isCounterExceeded()
,
EbiWhiteboardEraser.getMaxCounter()
,
EbiWhiteboardEraser.setMaxCounter(int counter)
public int getCurrentCounter()
EbiWhiteboardEraser.isCounterExceeded()
,
EbiWhiteboardEraser.getMaxCounter()
,
EbiWhiteboardEraser.setMaxCounter(int counter)
,
EbiWhiteboardEraser.incrementCurrentCounter()
public void setCurrentCounter(int counter)
counter
- Value to set counter to.EbiWhiteboardEraser.isCounterExceeded()
,
EbiWhiteboardEraser.getMaxCounter()
,
EbiWhiteboardEraser.setMaxCounter(int counter)
,
EbiWhiteboardEraser.incrementCurrentCounter()
,
EbiWhiteboardEraser.getCurrentCounter()
public void run()
public void erase()
public String toString()
|
Novell exteNd Director 5.2 API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |