|
JASMI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.EventObject
com.agentpp.smi.event.RepositoryEvent
public class RepositoryEvent
The RepositoryEvent class represents MIB module read or write
requests for compiled (binary) MIB modules.
| Field Summary | |
|---|---|
static int |
READ_MIB_MODULE
Specifies that a MIB module should be read from the repository. |
static int |
WRITE_MIB_MODULE
Specifies that a MIB module should be written to the repository. |
| Constructor Summary | |
|---|---|
RepositoryEvent(java.lang.Object source,
java.lang.String moduleName)
Creates an RepositoryEvent to load or store a given MIB module. |
|
RepositoryEvent(java.lang.Object source,
java.lang.String moduleName,
IModule module)
Creates an RepositoryEvent to load or store a given MIB module. |
|
| Method Summary | |
|---|---|
java.io.InputStream |
getInputStream()
Gets the input stream to be used to load a compiled MIB module from persistent storage. |
IModule |
getModule()
Gets the MIB module that should be written to persistent storage. |
java.lang.String |
getModuleName()
Gets the module name of the MIB module to read or write. |
java.io.OutputStream |
getOutputStream()
Gets the output stream to write the MIB module. |
boolean |
isModuleDeleted()
Indicates whether the deletion of the MIB module specified by the module name of this event object was sucessfully completed. |
boolean |
isUseDefaults()
Indicates whether a repository manager should try to use its default behavior to process the event if this listener does not set input/output stream. |
void |
setInputStream(java.io.InputStream inputStream)
Sets the InputStream to be used to load a compiled MIB
module from persistent storage. |
void |
setModuleDeleted(boolean moduleDeleted)
Sets the flag that indicates whether a MIB module has been successfully removed from persistent storage. |
void |
setOutputStream(java.io.OutputStream outputStream)
Sets the output stream to write a MIB module with the given name to the repository. |
void |
setUseDefaults(boolean useDefaults)
Sets the useDefaults that indicates whether a repository
manager should try to use its default behavior to process the event if
this listener does not set input/output stream. |
| Methods inherited from class java.util.EventObject |
|---|
getSource, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int READ_MIB_MODULE
public static final int WRITE_MIB_MODULE
| Constructor Detail |
|---|
public RepositoryEvent(java.lang.Object source,
java.lang.String moduleName,
IModule module)
RepositoryEvent to load or store a given MIB module.
source - the event source, typically a IRepositoryManager instance.moduleName - the module name of the MIB module to read or write from/to persitent
storage.module - the module MIB module to write to persitent storage.
public RepositoryEvent(java.lang.Object source,
java.lang.String moduleName)
RepositoryEvent to load or store a given MIB module.
source - the event source, typically a IRepositoryManager instance.moduleName - the module name of the MIB module to read or write from/to persitent
storage.| Method Detail |
|---|
public java.io.InputStream getInputStream()
InputStream.public void setInputStream(java.io.InputStream inputStream)
InputStream to be used to load a compiled MIB
module from persistent storage. The input stream must be set when a
RepositoryListener.readModule event is received.
inputStream - an InputStream that reads the MIB module with the name
specified by getModuleName.public void setOutputStream(java.io.OutputStream outputStream)
RepositoryListener.writeModule event is received.
outputStream - an OutputStream instance.public java.io.OutputStream getOutputStream()
OutputStream instance.public java.lang.String getModuleName()
public void setModuleDeleted(boolean moduleDeleted)
RepositoryListener interface receives a request to delete
a MIB module.
moduleDeleted - a boolean value that inidicates whether the MIB module has been deleted.public void setUseDefaults(boolean useDefaults)
useDefaults that indicates whether a repository
manager should try to use its default behavior to process the event if
this listener does not set input/output stream.
useDefaults - false to disable any default behavior.public boolean isModuleDeleted()
true if the MIB module is removed from persistent storage.public IModule getModule()
IModule instance or null if this event
is not a write module event.public boolean isUseDefaults()
true if the default behavior should be used (this is the
default).
|
JASMI API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||