Package | Description |
---|---|
org.friendlysnmp |
Provides classes and interfaces to access FriendlySNMP API.
|
org.friendlysnmp.event |
Provides classes and interfaces for event handling in FriendlySNMP API.
|
org.friendlysnmp.mib |
Provides classes to access managed objects in MIBs supported by FriendlySNMP and SNMP4J.
|
org.friendlysnmp.persist |
Provides persistency for scalars and tables in FriendlySNMP API.
|
org.friendlysnmp.plugin |
Provides base class for plugins in FriendlySNMP API.
|
org.friendlysnmp.plugin.core |
Contains classes to support FRIENDLY-SNMP-MIB.
|
org.friendlysnmp.target |
Provides classes for custom and default SNMPv1, SNMPv2 and SNMPv3 targets in FriendlySNMP API.
|
Modifier and Type | Method and Description |
---|---|
protected FException |
FNode.makeFException(java.lang.String msg)
Method to throw FException with message appended with object name.
|
protected FException |
FNode.makeFException(java.lang.String msg,
java.lang.Throwable cause)
Method to throw FException with message appended with object name.
|
Modifier and Type | Method and Description |
---|---|
void |
AgentWorker.exceptionThrown(FException e)
Sends exception to all registered listeners in the application.
|
void |
AgentWorker.exceptionThrown(FTable table,
FException e)
Sends exception to the registered listeners in the application with
a message that a problem is found while updating the table.
|
void |
AgentWorker.exceptionThrown(java.lang.String msg,
FException e)
Sends exception to the registered listener in the application
|
Modifier and Type | Method and Description |
---|---|
void |
FriendlyAgent.addMIB(BaseMib mib)
Method to add user defined MIB to the agent.
|
FID |
FTable.addRow(FID id)
Adds row with specified row ID.
|
FID |
FTable.addRow(int... id)
Adds row with specified row ID.
|
FID |
FTable.addRowNext()
Row ID is generated by increasing the max first integer and
setting others (if exist) to 1.
|
void |
FriendlyAgent.addTarget(TargetBase target)
Adds targets
TargetBase to the agent. |
void |
AgentWorker.addTarget(TargetBase target)
Adds
TargetBase objects to the collection of targets
without actual initialization of the added target. |
void |
FTable.deleteAll()
Deletes all rows.
|
FID |
FTable.deleteRow(FID idRow)
Deletes row from managed objects table.
|
void |
FValueNode.fireRestoreDefaultEvent()
Fires RESTORE DEFAULT event.
|
java.util.Map<java.lang.String,java.lang.String> |
FConfig.getAppDependencies()
Returns application dependencies collection: external jars, used tools,
and so on.
|
java.util.Map<java.lang.String,java.lang.String> |
FConfig.getAppInfo()
Returns collection of application information: title, version and so on.
|
int |
FConfig.getConfigInteger(java.lang.String key) |
java.lang.String[] |
FConfig.getPlugins() |
FID |
FTable.getRowID(int indexRow)
Finds row ID by row index.
|
java.lang.Object |
FTable.getValueAt(FID idRow,
FColumn col)
Gets the value of specified cell.
|
void |
FriendlyAgent.init()
Initializes SNMP agent.
|
void |
FHandler.init()
The method is called by SNMP agent when it's initialized.
|
void |
AgentWorker.initAgent()
This method performs all essential actions as
org.snmp4j.agent.BaseAgent.init() does. |
boolean |
FTable.isCellEditable(FID idRow,
FColumn col)
Checks the editable flag for the specified cell.
|
protected FException |
FNode.makeFException(java.lang.String msg)
Method to throw FException with message appended with object name.
|
protected FException |
FNode.makeFException(java.lang.String msg,
java.lang.Throwable cause)
Method to throw FException with message appended with object name.
|
static org.snmp4j.smi.Counter32 |
FConverter.parseCounter32(java.lang.Object obj)
Parses Long or String to Counter32.
|
static org.snmp4j.smi.Counter64 |
FConverter.parseCounter64(java.lang.Object obj)
Parses Long or String to Counter64.
|
static org.snmp4j.smi.Integer32 |
FConverter.parseInteger32(java.lang.Object obj)
Parses Integer or String to Integer32.
|
static org.snmp4j.smi.TimeTicks |
FConverter.parseTimeTicks(java.lang.Object obj)
Parses Long or String to TimeTicks.
|
static org.snmp4j.smi.UnsignedInteger32 |
FConverter.parseUnsignedInteger32(java.lang.Object obj,
int syntax)
Parses Long or String to UnsignedInteger32.
|
void |
FHandler.registerMib(BaseMib mb) |
void |
FTable.setDefaultValues(java.lang.Object... obj)
Sets default cell values for a new row.
|
void |
FriendlyAgent.setPersistStorage(PersistStorage persistStorage)
Sets persistence storage.
|
void |
FScalar.setValue(java.lang.Object obj)
Sets scalar managed object value.
|
void |
FTable.setValueAt(java.lang.Object obj,
FID idRow,
FColumn col)
Sets the value for the specified cell.
|
void |
FriendlyAgent.start()
Starts SNMP agent.
|
void |
AgentWorker.startAgent()
Starts the agent.
|
void |
FriendlyAgent.stop()
Stops SNMP agent.
|
void |
AgentWorker.stopAgent()
Stops the agent by closing the SNMP session and associated transport mappings.
|
static void |
FConfig.throwFException(java.lang.String key) |
static org.snmp4j.smi.Variable |
FConverter.toVariable(java.lang.Object obj,
org.snmp4j.agent.mo.MOColumn<?> moColumn)
Converts a
java.lang object into a SMI object by calling
the appropriate 'parseXXX' methods. |
static org.snmp4j.smi.Variable |
FConverter.toVariable(java.lang.Object obj,
org.snmp4j.agent.mo.MOScalar<?> moScalar)
Converts a
java.lang object into a SMI object by calling
the appropriate 'parseXXX' methods. |
static org.snmp4j.smi.Variable |
FConverter.toVariable(java.lang.Object obj,
ValueSyntax syntax)
Converts a
java.lang object into a SMI object by calling
the appropriate 'parseXXX' methods. |
Constructor and Description |
---|
AgentWorker(java.lang.String appTitle,
java.lang.String appVersion,
java.util.Properties propApp)
Constructor
|
FriendlyAgent(java.lang.String title,
java.lang.String version,
java.util.Properties prop)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
FExceptionListener.exceptionThrown(java.lang.String msg,
FException e)
This method is called on registered object with an exception caught
in the library.
|
Modifier and Type | Method and Description |
---|---|
void |
FRestoreDefaultListener.restoreDefault(FRestoreDefaultEvent ev)
|
Modifier and Type | Method and Description |
---|---|
void |
BaseMib.exceptionThrown(FException e)
Sends exception to all registered listeners in the application.
|
void |
BaseMib.exceptionThrown(FTable table,
FException e)
Sends exception to the registered listeners in the application with
a message that a problem is found while updating the table.
|
void |
BaseMib.exceptionThrown(java.lang.String msg,
FException e)
Sends exception to the registered listener in the application
|
Modifier and Type | Method and Description |
---|---|
void |
BaseMib.addHandler(FHandler handler)
Adds handler to the MIB.
|
void |
SnmpVacmMibF.init(AgentWorker agent) |
void |
SnmpV2MibF.init(AgentWorker agent) |
void |
SnmpUsmMibF.init(AgentWorker agent) |
void |
SnmpTargetMibF.init(AgentWorker agent) |
void |
SnmpProxyMibF.init(AgentWorker agent) |
void |
SnmpNotificationMibF.init(AgentWorker agent) |
void |
SnmpFrameworkMibF.init(AgentWorker agent) |
void |
SnmpCommunityMibF.init(AgentWorker agent) |
void |
BaseMib.init(AgentWorker aw)
Actual implementation is provided in generated MIB-to-Java class.
|
Modifier and Type | Method and Description |
---|---|
static PersistPolicy |
PersistPolicy.find(java.lang.String s)
Finds
PersistPolicy enum object from its string value. |
void |
PersistStorageImpl.put(FScalar scalar)
Saves scalar in persistence storage.
|
abstract void |
PersistStorage.put(FScalar scalar)
Saves scalar in persistence storage.
|
void |
PersistStorageImpl.put(FTable table)
Saves table in persistence storage.
|
abstract void |
PersistStorage.put(FTable table)
Saves table in persistence storage.
|
void |
PersistStorageImpl.remove(FID id)
Removes object from persistence storage.
|
abstract void |
PersistStorage.remove(FID id)
Removes object from persistence storage.
|
void |
PersistStorageImpl.save()
Saves persistence storage.
|
abstract void |
PersistStorage.save()
Saves persistence storage.
|
void |
PersistStorage.shutdown()
Shutdowns persistence storage.
|
Constructor and Description |
---|
PersistEntryTable(FTable table) |
PersistStorageImpl(java.lang.String filename)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
FPlugin.initPlugin()
The agent calls this method to initialize plugin.
|
Modifier and Type | Method and Description |
---|---|
void |
FriendlySnmpMibFriend.init(AgentWorker agent) |
void |
PluginCore.initPlugin()
The agent calls this method to initialize plugin.
|
void |
CorePersistenceHandler.registerMib(BaseMib mb) |
void |
CoreLifeHandler.registerMib(BaseMib mb) |
void |
CoreExceptionsHandler.registerMib(BaseMib mb) |
void |
CoreDeadlockHandler.registerMib(BaseMib mb) |
Modifier and Type | Method and Description |
---|---|
void |
TargetV3.init(AgentWorker aw)
Initializes target
|
void |
TargetV1.init(AgentWorker aw)
Initializes target
|
void |
TargetBase.init(AgentWorker aw)
Initializes target
|