Examples of retrieveDevice()


Examples of nz.co.abrahams.asithappens.storage.DeviceDAO.retrieveDevice()

        long pollInterval;
        int snmpIndex;
       
        name = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DEVICE, sessionID));
        deviceDAO = DAOFactory.getDeviceDAO(connection);
        device = deviceDAO.retrieveDevice(name, false);
        snmp = new MemoryHRSNMP(device);
        pollInterval = ((Long)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_POLLINTERVAL, sessionID))).longValue();
        snmpIndex = ((Integer)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_INDEX, sessionID))).intValue();
        //device.enumeratePorts();
        return new MemoryHRCollector(snmp, pollInterval, snmpIndex);
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DeviceDAO.retrieveDevice()

        String[] ifDescriptions;
        int[] ifIndicies;
       
        name = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DEVICE, sessionID));
        deviceDAO = DAOFactory.getDeviceDAO();
        device = deviceDAO.retrieveDevice(name, false);
        deviceDAO.closeConnection();
        bandwidthSNMP = new BandwidthSNMP(device);
        pollInterval = ((Long)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_POLLINTERVAL, sessionID))).longValue();
        prefer64BitCounters = ((Byte)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_USE64BITCOUNTERS, sessionID))).intValue() == 1;
        ifDescriptions = retrieveBandwidthCollectorPorts(sessionID);
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DeviceDAO.retrieveDevice()

        long pollInterval;
        int snmpIndex;
       
        name = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DEVICE, sessionID));
        deviceDAO = DAOFactory.getDeviceDAO(connection);
        device = deviceDAO.retrieveDevice(name, false);
        snmp = new ProcessorUCDSNMP(device);
        pollInterval = ((Long)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_POLLINTERVAL, sessionID))).longValue();
        //device.enumeratePorts();
        return new ProcessorUCDCollector(snmp, pollInterval);
    }
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DeviceDAO.retrieveDevice()

        int direction;
        int tableSize;
       
        name = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DEVICE, sessionID));
        deviceDAO = DAOFactory.getDeviceDAO();
        device = deviceDAO.retrieveDevice(name, true);
        deviceDAO.closeConnection();
        pollInterval = ((Long)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_POLLINTERVAL, sessionID))).longValue();
        ifDescr = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_IFDESCR, sessionID));
        direction = ((Integer)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DIRECTION, sessionID))).intValue();
        tableSize = ((Integer)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_TABLESIZE, sessionID))).intValue();
View Full Code Here

Examples of nz.co.abrahams.asithappens.storage.DeviceDAO.retrieveDevice()

        PreparedStatement statement;
        ResultSet results;
       
        name = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DEVICE, sessionID));
        deviceDAO = DAOFactory.getDeviceDAO(connection);
        device = deviceDAO.retrieveDevice(name, false);
        snmp = new CustomOIDSNMP(device);
        pollInterval = ((Long)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_POLLINTERVAL, sessionID))).longValue();
        valueUnits = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_VALUEUNITS, sessionID));
        oidIDs = new Vector();
        customOIDs = new Vector();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.