FreenetIS
 All Classes Namespaces Functions Variables Pages
Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Snmp_Factory Class Reference

factory for creating of SNMP handlers. More...

Static Public Member Functions

static factory ($driver)
 Creates SNMP driver with the given name.
static factoryForDevice ($device_ip)
 Creates SNMP driver for the device from the given IP address.

Public Attributes

const MIKROTIK = 'mikrotik'
 Mikrotik driver name.

Static Public Attributes

static $DRIVERS

Detailed Description

factory for creating of SNMP handlers.

Author
Ondrej Fibich

Member Function Documentation

static Snmp_Factory::factory (   $driver)
static

Creates SNMP driver with the given name.

Parameters
string$driverDriver name
Returns
Abstract_SNMP Creates driver
Exceptions
InvalidArgumentExceptionOn invalid driver name (unknown)
static Snmp_Factory::factoryForDevice (   $device_ip)
static

Creates SNMP driver for the device from the given IP address.

Parameters
string$device_ipDevice IP address
Returns
Abstract_Snmp
Exceptions
InvalidArgumentExceptionIf no driver suits the given device

The documentation for this class was generated from the following file: