Examples of closeConnection()


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

        long pollInterval;
       
        name = (String)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_DEVICE, sessionID));
        deviceDAO = DAOFactory.getDeviceDAO();
        device = deviceDAO.retrieveDevice(name, false);
        deviceDAO.closeConnection();
        pollInterval = ((Long)(DBUtil.retrieveSingleAttributeWithPK(connection, RETRIEVE_POLLINTERVAL, sessionID))).longValue();
        return new ResponseWindowsCollector(device, pollInterval);
    }
   
    /**
 
View Full Code Here

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

        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);
        portsSNMP = new PortsSelectorSNMP(device);
View Full Code Here

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

        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();
        portsSNMP = new PortsSelectorSNMP(device);
View Full Code Here

Examples of nz.co.abrahams.asithappens.uiutil.SetDisplayDAO.closeConnection()

                statement.setInt(2, set);
                statement.setInt(3, setDisplayID);
                statement.executeUpdate();
                statement.close();
            }
            displayDAO.closeConnection();
            return graphOptionsID;
        } catch (SQLException e) {
            logger.error("Problem creating graph options in database");
            throw new DBException("Problem creating graph options in database", e);
        }
View Full Code Here

Examples of nz.co.abrahams.asithappens.uiutil.SetDisplayDAO.closeConnection()

                logger.info("SetDisplayID: " + results.getInt(1));
                displayDAO.update(results.getInt(1), options.getSetDisplay(set));
                results.close();
                statement.close();
            }
            displayDAO.closeConnection();
           
        } catch (SQLException e) {
            logger.error("Problem Updating graph options in database");
            throw new DBException("Problem Updating graph options in database", e);
        }
View Full Code Here

Examples of org.apache.ctakes.jdl.data.base.JdlConnection.closeConnection()

        } catch (JAXBException e) {
          e.printStackTrace();
        } finally {
          try {
            if (jdlConnection != null)
              jdlConnection.closeConnection();
          } catch (SQLException e) {
            log.error("closing connection", e);
          }
        }
      } else {
View Full Code Here

Examples of org.apache.derby.impl.tools.planexporter.AccessDatabase.closeConnection()

                  if(access.initializeDataArray()){
                    access.createXMLFragment();
                    access.markTheDepth();
                    String stmt=access.statement();
                    String time=access.time();
                    access.closeConnection();

                    //advanced XSL feature
                    //possible occurrences are
                    //-adv -xml {path} -xsl {path} or
                    //-adv -xsl {path} -xml {path}
View Full Code Here

Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy.closeConnection()

                }

                Thread.sleep(1000);
            }
        }
        server.closeConnection();

        // Stop the timer, server should be up now
        timeoutTask.cancel();

        log.info("Geronimo server started in " + watch);
View Full Code Here

Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy.closeConnection()

        ServerProxy server =
            new ServerProxy(hostname, port, username, password);

        String geronimoHomeStr = server.getGeronimoHome();

        server.closeConnection();
       
        log.info("Geronimo Home: " + geronimoHomeStr);

        if (geronimoHomeStr == null) {
            throw new MojoExecutionException("Unable to determine Geronimo installation directory");
View Full Code Here

Examples of org.apache.geronimo.mavenplugins.geronimo.ServerProxy.closeConnection()

                }

                Thread.sleep(1000);
            }
        }
        server.closeConnection();

        // Stop the timer, server should be up now
        timeoutTask.cancel();

        log.info("Geronimo server started in " + watch);
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.