Examples of ConnectionState


Examples of com.jolbox.bonecp.hooks.ConnectionState

    return super.onAcquireFail(t, acquireConfig);
  }

  @Override
  public ConnectionState onMarkPossiblyBroken(ConnectionHandle connection, String state, SQLException e) {
    ConnectionState ret = super.onMarkPossiblyBroken(connection, state, e);

    log.warn("JDBC connection possibly broken: " + key + " state=" + state + " ret=" + ret, e);

    return ret;
  }
View Full Code Here

Examples of com.salas.bb.utils.ConnectionState

     *
     * @throws Exception in exceptional cases.
     */
    public void testStress() throws Exception
    {
        new ActivityIndicatorView(new ConnectionState(), null);

        final Racer[] r = new Racer[RACERS];
        for (int i = 0; i < RACERS; i++) r[i] = new Racer();
        for (int i = 0; i < RACERS; i++) r[i].start();
        for (int i = 0; i < RACERS; i++) r[i].join();
View Full Code Here

Examples of com.sun.tools.jconsole.JConsoleContext.ConnectionState

     * time.
     */
    public void propertyChange(PropertyChangeEvent ev) {
        String prop = ev.getPropertyName();
        if (prop == JConsoleContext.CONNECTION_STATE_PROPERTY) {
            ConnectionState newState = (ConnectionState) ev.getNewValue();
            if (newState == ConnectionState.CONNECTED && stats.size() != 0) {
                for (Stats status : stats) {
                    status.setConnection(
                            getContext().getMBeanServerConnection());
                }
View Full Code Here

Examples of de.fu_berlin.inf.dpp.net.ConnectionState

        item.fill(parent, -1);
    }

    protected void updateStatus() {
        try {
            ConnectionState state = saros.getSarosNet().getConnectionState();
            switch (state) {
            case CONNECTED:
                setText(Messages.ChangeXMPPAccountAction_disconnect);
                setImageDescriptor(ImageManager
                    .getImageDescriptor("/icons/elcl16/connect.png")); //$NON-NLS-1$
View Full Code Here

Examples of org.adbcj.postgresql.codec.ConnectionState

      channelFuture.addListener(new ChannelFutureListener() {
        @Override
        public void operationComplete(ChannelFuture future) throws Exception {
          Channel channel = future.getChannel();
          Connection connection = new Connection(NettyConnectionManager.this, channel, PostgresqlConnectFuture.this);
          ConnectionState state = connection.getConnectionState();
          ProtocolHandler protocolHandler = new ProtocolHandler(NettyConnectionManager.this);

          ChannelPipeline pipeline = channel.getPipeline();
          pipeline.addLast(ENCODER, new Encoder(state));
          pipeline.addLast(DECODER, new Decoder(state));
View Full Code Here

Examples of org.apache.activemq.state.ConnectionState

        Field statesField = ConnectionStateTracker.class.getDeclaredField("connectionStates");
        statesField.setAccessible(true);
        ConcurrentHashMap<ConnectionId, ConnectionState> states =
                (ConcurrentHashMap<ConnectionId, ConnectionState>) statesField.get(stateTracker);

        ConnectionState state = states.get(connection.getConnectionInfo().getConnectionId());

        Collection<TransactionState> transactionStates = state.getTransactionStates();

        connection.stop();
        connection.close();

        assertEquals("Transaction states not cleaned up", 0,transactionStates.size());
View Full Code Here

Examples of org.apache.bookkeeper.proto.PerChannelBookieClient.ConnectionState

                    }
                }
            };
        Thread checkThread = new Thread() {
                public void run() {
                    ConnectionState state;
                    Channel channel;
                    while (running.get()) {
                        synchronized (client) {
                            state = client.state;
                            channel = client.channel;
View Full Code Here

Examples of org.apache.curator.framework.state.ConnectionState

            );
            client.start();

            client.checkExists().forPath("/");

            ConnectionState state = states.poll(timing.forWaiting().milliseconds(), TimeUnit.MILLISECONDS);
            Assert.assertEquals(state, ConnectionState.READ_ONLY);
        }
        finally
        {
            CloseableUtils.closeQuietly(client);
View Full Code Here

Examples of org.eclipse.jetty.websocket.common.ConnectionState

     */
    @Override
    protected boolean onReadTimeout()
    {
        IOState state = getIOState();
        ConnectionState cstate = state.getConnectionState();
        if (LOG.isDebugEnabled())
            LOG.debug("{} Read Timeout - {}",policy.getBehavior(),cstate);

        if (cstate == ConnectionState.CLOSED)
        {
View Full Code Here

Examples of org.jboss.jms.client.state.ConnectionState

        
         JBossConnection jbConn = (JBossConnection)conn;
        
         ClientConnectionDelegate del = (ClientConnectionDelegate)jbConn.getDelegate();
        
         ConnectionState state = (ConnectionState)del.getState();
        
         ResourceManager rm = state.getResourceManager();
        
         Session session = conn.createSession(true, Session.SESSION_TRANSACTED);
        
        
         for (int i = 0; i < 100; i++)
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.