protected void performDisconnect () { if ( this.controller != null ) { this.controller.disconnect (); } else { this.connection.disconnect (); } }
@Override public void run () { listener.privilegesChanged ( granted ); } } );
@Override protected AbstractConnectionService createConnectionService ( final DriverFactory factory, final ConnectionInformation connectionInformation ) { final Connection connection = (Connection)factory.getDriverInformation ( connectionInformation ).create ( connectionInformation ); if ( connection == null ) { return null; } return new ConnectionServiceImpl ( connection, 10000, false ); }
public static void registerDriver () { ConnectionFactory.registerDriverFactory ( new DriverFactoryImpl () ); } }
public EntryImpl ( final ConnectionDescriptor connectionDescriptor, final ConnectionService connectionService, final ServiceRegistration<?> serviceRegistration ) { this.connectionDescriptor = connectionDescriptor; this.connectionService = connectionService; this.serviceRegistration = serviceRegistration; connectionService.getConnection ().addConnectionStateListener ( this ); }
@Override public String getLabel () { return this.connection.getConnectionInformation ().toMaskedString (); }
protected void setConnection ( final Connection connection ) { this.connection = connection; if ( this.autoReconnectDelay != null ) { this.controller = new AutoReconnectController ( connection, this.autoReconnectDelay ); } else { this.controller = null; } }
protected void doFireConnectionStateChange ( final ConnectionState connectionState, final Throwable error ) { if ( this.disposed ) { return; } final Set<ConnectionStateListener> listeners = this.connectionStateListeners.get (); for ( final ConnectionStateListener listener : listeners ) { listener.stateChange ( this.connection, connectionState, error ); } }
@Override protected AbstractConnectionService createConnectionService ( final DriverFactory factory, final ConnectionInformation connectionInformation ) { final Connection connection = (Connection)factory.getDriverInformation ( connectionInformation ).create ( connectionInformation ); if ( connection == null ) { return null; } return new ConnectionServiceImpl ( connection, 10000, false ); }
public static void registerDriver () { ConnectionFactory.registerDriverFactory ( new DriverFactoryImpl () ); } }
public EntryImpl ( final ConnectionDescriptor connectionDescriptor, final ConnectionService connectionService, final ServiceRegistration<?> serviceRegistration ) { this.connectionDescriptor = connectionDescriptor; this.connectionService = connectionService; this.serviceRegistration = serviceRegistration; connectionService.getConnection ().addConnectionStateListener ( this ); }
@Override public void run () { listener.privilegesChanged ( granted ); } } );
@Override protected AbstractConnectionService createConnection () { logger.debug ( "Creating new AE connection: {}", getConnectionInformation () ); final Connection connection = (Connection)getFactory ().getDriverInformation ( getConnectionInformation () ).create ( getConnectionInformation () ); if ( connection == null ) { return null; } return new ConnectionServiceImpl ( connection, getAutoReconnectDelay () ); }
public static void registerDriver () { ConnectionFactory.registerDriverFactory ( new DriverFactoryImpl () ); } }
@Override protected AbstractConnectionService createConnection () { logger.debug ( "Creating new DA connection: {}", getConnectionInformation () ); final Connection connection = (Connection)getFactory ().getDriverInformation ( getConnectionInformation () ).create ( getConnectionInformation () ); if ( connection == null ) { return null; } return new ConnectionServiceImpl ( connection, getAutoReconnectDelay (), false ); }
public static void registerDriver () { ConnectionFactory.registerDriverFactory ( new DriverFactoryImpl () ); } }
public static void registerDriver () { ConnectionFactory.registerDriverFactory ( new DriverFactoryImpl () ); } }
public static void registerDriver () { ConnectionFactory.registerDriverFactory ( new DriverFactoryImpl () ); } }