|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface FileListener
The Listener interface for FileEvent. The
addFileListener
method on the
PACEConnection instance may be used to
register FileListener instances.
Sample Usage:
// Implement FileListener interface
public class MyFileListener implements FileListener
{
...
}
// Create an instance of FileEventQualifier
// [You may also use an instance of QualifyAll
// that performs no filtering.]
myQualifier = new FileEventQualifier();
// We care about new files only
myQualifier.setNewFile();
// Register listener using PACEConnection
...
conn.addFileListener(
new MyFileListener(), // FileListener
myQualifier // Qualifier
);
...
ProvAPIEventListener| Field Summary | |
|---|---|
static int |
ADD_FILE
Event ID that indicates the ADD_FILE sub-event type of the FileEvent. |
static int |
CHANGED_PROPERTIES
Event ID that indicates the CHANGE_PROPERTIES sub-event type of the FileEvent. |
static int |
DELETE_FILE
Event ID that indicates the DELETE_FILE sub-event type of the FileEvent. |
static int |
REPLACE_FILE
Event ID that indicates the REPLACE_FILE sub-event type of the FileEvent. |
| Method Summary | |
|---|---|
void |
added(FileEvent ev)
The method invoked when an FileEvent
arrives when a new file is created. |
void |
deleted(FileEvent ev)
The method invoked when an FileEvent
arrives when a file is deleted. |
void |
propertiesChanged(FileEvent ev)
The method invoked when an FileEvent
arrives when a file is change Properties. |
void |
replaced(FileEvent ev)
The method invoked when an FileEvent
arrives when a file is replaced. |
| Methods inherited from interface com.cisco.provisioning.cpe.events.ProvAPIEventListener |
|---|
getOneShot, setOneShot |
| Field Detail |
|---|
static final int ADD_FILE
FileEvent. This indicates that
a file has been added to BAC.
static final int REPLACE_FILE
FileEvent. This indicates that
a file has been replaced in BAC.
static final int DELETE_FILE
FileEvent. This indicates that
a file has been deleted from BAC.
static final int CHANGED_PROPERTIES
FileEvent. This indicates that
a file Properties has been changed from BAC.
| Method Detail |
|---|
void added(FileEvent ev)
FileEvent
arrives when a new file is created.
ev - The object containing the
FileEvent data.void replaced(FileEvent ev)
FileEvent
arrives when a file is replaced.
ev - The object containing the
FileEvent data.void deleted(FileEvent ev)
FileEvent
arrives when a file is deleted.
ev - The object containing the
FileEvent data.void propertiesChanged(FileEvent ev)
FileEvent
arrives when a file is change Properties.
ev - The object containing the
FileEvent data.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||