Examples of Connection

  • 2 ends that can be connected to {@link Gate}.
  • A {@link Path} that provides the path from the first end to the last end @author zxpletran007
  • spark.api.Connection
    A connection to a SPARQL processor. Connections can be used to create commands, get metadata, or be closed.
  • sun.rmi.transport.Connection
  • tv.floe.metronome.classification.neuralnetworks.core.Connection
  • vicazh.hyperpool.stream.Connection
    This class is the superclass of all connections @author Victor Zhigunov @version 0.4.8.3

  • Examples of mondrian.olap.Connection

       *
       */
      private void fill(String connProps, String fileName) throws JRException
      {
        long start = System.currentTimeMillis();
        Connection conn = null;
        try
        {
          conn = getConnection(connProps);
          if (conn != null)
          {
            Map parameters = new HashMap();
            parameters.put(JRMondrianQueryExecuterFactory.PARAMETER_MONDRIAN_CONNECTION, conn);
           
            JasperFillManager.fillReportToFile(fileName, parameters);
            System.err.println("Report : " + fileName + ". Filling time : " + (System.currentTimeMillis() - start));
          }
        }
        catch (FileNotFoundException e)
        {
          throw new JRException(e);
        }
        catch (IOException e)
        {
          throw new JRException(e);
        }
        finally
        {
          if (conn != null)
          {
            conn.close();
          }
        }
      }
    View Full Code Here

    Examples of mungbean.protocol.Connection

            return new DBConnection(server);
        }

        public <T> T execute(DBConversation<T> conversation) {
            checkPoolStatus();
            Connection connection = null;
            try {
                connection = borrow();
                return conversation.execute(connection);
            } finally {
                try {
    View Full Code Here

    Examples of mx4j.tools.remote.Connection

       protected Connection doConnect(String connectionId, Subject subject) throws IOException
       {
          RemoteNotificationServerHandler notificationHandler = new DefaultRemoteNotificationServerHandler(getEnvironment());
          HTTPConnection invoker = new HTTPServerInvoker(mbeanServerConnection, notificationHandler);
          HTTPConnection subjectInvoker = HTTPSubjectInvoker.newInstance(invoker, subject, getSecurityContext(), getEnvironment());
          Connection handler = new HTTPConnectionHandler(subjectInvoker, this, connectionId);
          return handler;
       }
    View Full Code Here

    Examples of name.mjw.jamber.IO.AMBER.Connection

          Atom b = residue.getAtoms().get(OffsettedIndexOfAtomB);

          a.setIndexWithinCurrentResidue(OffsettedIndexOfAtomA);
          b.setIndexWithinCurrentResidue(OffsettedIndexOfAtomB);

          Connection connection = new Connection(a, b);
          residue.addConnection(connection);

        }

      }
    View Full Code Here

    Examples of net.bnubot.core.Connection

          this.socket = socket;
        }

        @Override
        public void run() {
          Connection pri = null;
          do {
            try {
              sleep(1000);
            } catch (InterruptedException e) {}
            if(profile != null)
              pri = profile.getPrimaryConnection();
            if((pri != null) && (pri.getMyUser() == null))
              pri = null;
          } while(pri == null);

          try {
            InputStream is = socket.getInputStream();
            OutputStream os = socket.getOutputStream();
            bw = new BufferedWriter(new OutputStreamWriter(os));
            BufferedReader br = new BufferedReader(new InputStreamReader(is));

            while((is.available() == 0) && socket.isConnected())
              sleep(500);

            int loginAttempts = 0;
            while(!connected && (++loginAttempts < 3)) {
              if(loginAttempts == 1) {
                // This is the first login attempt; require them to shake hands
                int b = is.read();
                while(b == 255) {
                  sleep(500);
                  b = is.read();
                }
                if((b != 'c') && (b != 3))
                  break;

                Out.debug(TelnetEventHandler.class, "Connection established from " + socket.getRemoteSocketAddress().toString());
              }

              sendInternal("Username: ");
              String username = br.readLine();
              if(username.length() == 0)
                username = br.readLine(); // Fool me once, shame on you
              if(username.length() == 0)
                continue; // Fool me twice, shame on me

              while(username.charAt(0) < 0x20)
                username = username.substring(1);

              ConnectionSettings cs = pri.getConnectionSettings();
              if(!username.equalsIgnoreCase(cs.username)) {
                sendInternal("1019 Error \"Invalid username\"");
                continue;
              }

              sendInternal("Password: ");
              String password = br.readLine();

              if(!password.equalsIgnoreCase(cs.password)) {
                sendInternal("1019 Error \"Invalid password\"");
                continue;
              }

              connected = true;
            }

            if(connected) {
              Out.debug(TelnetEventHandler.class, "Login accepted from " + socket.getRemoteSocketAddress().toString());
              dispatch(ChatEvent.NAME, pri.getMyUser().getShortLogonName());
              dispatch(ChatEvent.CHANNEL, quoteText(pri.getChannel()));
              for(BNetUser user : pri.getUsers())
                dispatchUserDetail(ChatEvent.USER, user);
            } else
              send("Login failed");

            try {
              while(connected) {
                if(!socket.isConnected())
                  break;
                pri.sendChatInternal(br.readLine());
              }
            } catch(SocketException e) {
              Out.debug(TelnetEventHandler.class, socket.getRemoteSocketAddress().toString() + " " + e.getMessage());
            }
          } catch(Exception e) {
    View Full Code Here

    Examples of net.jini.jeri.connection.Connection

        sock = connectToHost(rh);
          } else {
        sock = newSocket();
          }
         
          Connection c = new ConnectionImpl(sock, config);
          if (logger.isLoggable(Level.FINE)) {
        logger.log(Level.FINE, "New connection established:\n{0}",
             new Object[] {c});
          }
          return c;
    View Full Code Here

    Examples of net.minecraft.server.v1_6_R3.Connection

            iteminworldmanager.setGameMode(EnumGamemode.SURVIVAL);

            NPCSocket socket = new NPCSocket();
            NetworkManager netMgr;
            try {
                netMgr = new NPCNetworkManager(server.getLogger(), socket, "npc mgr", new Connection() {
                    @Override
                    public boolean a() {
                        return false;
                    }
                }, server.H().getPrivate());
    View Full Code Here

    Examples of net.noderunner.amazon.s3.Connection

       /**
        * Returns a new connection.
        */
       Connection getConnection()
       {
          return new Connection(getAccessKeyId(), getSecretAccessKey(),
                isSecure(), getServer(), getPort(), getCallingFormat());
       }
    View Full Code Here

    Examples of net.sf.atjc.Connection

        } catch (IllegalArgumentException e) {
          LOG.error("Invalid destination '{}'. {}", new Object[] { aDestination.getAddress(), e.getMessage(), e });
          return false;
        }

        Connection connection = null;

        if (testMode) {
          return true;
        }

        Message message = createMessage(aMessage, connection);
        connection.sendMessage(message);

        return true;
      }
    View Full Code Here

    Examples of net.sourceforge.guacamole.net.auth.mysql.model.Connection

         *         connection was found.
         */
        public MySQLConnection retrieveConnection(int id, int userID) {

            // Query connection by ID
            Connection connection = connectionDAO.selectByPrimaryKey(id);

            // If no connection found, return null
            if(connection == null)
                return null;

    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.