test_class.declarator: dsCls
test_class.modifier: private final
test_class.original_string: private final Class<? extends DataSource> dsCls;
test_class.type: Class<? extends DataSource>
test_class.var_name: dsCls
test_class.declarator: ds
test_class.modifier: private
test_class.original_string: private DataSource ds;
test_class.type: DataSource
test_class.var_name: ds
test_class.file: comsat-jdbc/src/test/java/co/paralleluniverse/fibers/jdbc/FiberDataSourceTest.java
test_class.identifier: FiberDataSourceTest
test_case.body: @Test
      public void testGetConnection() throws IOException, InterruptedException, Exception {
          // snippet DataSource wrapping
          final DataSource fiberDs = FiberDataSource.wrap(ds);
          // end of snippet
          new Fiber<Void>(new SuspendableRunnable() {
              @Override
              public void run() throws SuspendExecution, InterruptedException {
                  try {
                      // snippet DataSource usage
                      Connection conn = fiberDs.getConnection();
                      // end of snippet
                      conn.close();
                  } catch (SQLException ex) {
                      fail(ex.getMessage());
                  }
              }
          }).start().join();
      }
test_case.class_method_signature: FiberDataSourceTest.testGetConnection()
test_case.full_signature: @Test public void testGetConnection()
test_case.identifier: testGetConnection
test_case.invocations: wrap join start getConnection close fail getMessage
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void testGetConnection()
focal_class.declarator: ds
focal_class.modifier: private final
focal_class.original_string: private final DataSource ds;
focal_class.type: DataSource
focal_class.var_name: ds
focal_class.declarator: executor
focal_class.modifier: private final
focal_class.original_string: private final ExecutorService executor;
focal_class.type: ExecutorService
focal_class.var_name: executor
focal_class.file: comsat-jdbc/src/main/java/co/paralleluniverse/fibers/jdbc/FiberDataSource.java
focal_class.identifier: FiberDataSource
focal_class.interfaces: implements DataSource
focal_class.class_method_signature: FiberDataSource.wrap(final DataSource ds, final ExecutorService executor)
focal_class.full_signature: public static DataSource wrap(final DataSource ds, final ExecutorService executor)
focal_class.identifier: wrap
focal_class.modifiers: public static
focal_class.parameters: (final DataSource ds, final ExecutorService executor)
focal_class.return: DataSource
focal_class.signature: DataSource wrap(final DataSource ds, final ExecutorService executor)
focal_class.class_method_signature: FiberDataSource.wrap(final DataSource ds, final int numThreads)
focal_class.full_signature: public static DataSource wrap(final DataSource ds, final int numThreads)
focal_class.identifier: wrap
focal_class.modifiers: public static
focal_class.parameters: (final DataSource ds, final int numThreads)
focal_class.return: DataSource
focal_class.signature: DataSource wrap(final DataSource ds, final int numThreads)
focal_class.class_method_signature: FiberDataSource.wrap(final DataSource ds)
focal_class.full_signature: public static DataSource wrap(final DataSource ds)
focal_class.identifier: wrap
focal_class.modifiers: public static
focal_class.parameters: (final DataSource ds)
focal_class.return: DataSource
focal_class.signature: DataSource wrap(final DataSource ds)
focal_class.class_method_signature: FiberDataSource.FiberDataSource(final DataSource ds, final ExecutorService exec)
focal_class.full_signature: protected  FiberDataSource(final DataSource ds, final ExecutorService exec)
focal_class.identifier: FiberDataSource
focal_class.modifiers: protected
focal_class.parameters: (final DataSource ds, final ExecutorService exec)
focal_class.signature:  FiberDataSource(final DataSource ds, final ExecutorService exec)
focal_class.class_method_signature: FiberDataSource.getConnection()
focal_class.full_signature: @Override @Suspendable public FiberConnection getConnection()
focal_class.identifier: getConnection
focal_class.modifiers: @Override @Suspendable public
focal_class.parameters: ()
focal_class.return: FiberConnection
focal_class.signature: FiberConnection getConnection()
focal_class.class_method_signature: FiberDataSource.getConnection(final String username, final String password)
focal_class.full_signature: @Override @Suspendable public FiberConnection getConnection(final String username, final String password)
focal_class.identifier: getConnection
focal_class.modifiers: @Override @Suspendable public
focal_class.parameters: (final String username, final String password)
focal_class.return: FiberConnection
focal_class.signature: FiberConnection getConnection(final String username, final String password)
focal_class.class_method_signature: FiberDataSource.getLogWriter()
focal_class.full_signature: @Override @Suspendable public PrintWriter getLogWriter()
focal_class.identifier: getLogWriter
focal_class.modifiers: @Override @Suspendable public
focal_class.parameters: ()
focal_class.return: PrintWriter
focal_class.signature: PrintWriter getLogWriter()
focal_class.class_method_signature: FiberDataSource.setLogWriter(final PrintWriter out)
focal_class.full_signature: @Override @Suspendable public void setLogWriter(final PrintWriter out)
focal_class.identifier: setLogWriter
focal_class.modifiers: @Override @Suspendable public
focal_class.parameters: (final PrintWriter out)
focal_class.return: void
focal_class.signature: void setLogWriter(final PrintWriter out)
focal_class.class_method_signature: FiberDataSource.setLoginTimeout(final int seconds)
focal_class.full_signature: @Override @Suspendable public void setLoginTimeout(final int seconds)
focal_class.identifier: setLoginTimeout
focal_class.modifiers: @Override @Suspendable public
focal_class.parameters: (final int seconds)
focal_class.return: void
focal_class.signature: void setLoginTimeout(final int seconds)
focal_class.class_method_signature: FiberDataSource.getLoginTimeout()
focal_class.full_signature: @Override @Suspendable public int getLoginTimeout()
focal_class.identifier: getLoginTimeout
focal_class.modifiers: @Override @Suspendable public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int getLoginTimeout()
focal_class.class_method_signature: FiberDataSource.getParentLogger()
focal_class.full_signature: @Override public Logger getParentLogger()
focal_class.identifier: getParentLogger
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: Logger
focal_class.signature: Logger getParentLogger()
focal_class.class_method_signature: FiberDataSource.unwrap(final Class<T> iface)
focal_class.full_signature: @Override public T unwrap(final Class<T> iface)
focal_class.identifier: unwrap
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<T> iface)
focal_class.return: T
focal_class.signature: T unwrap(final Class<T> iface)
focal_class.class_method_signature: FiberDataSource.isWrapperFor(final Class<?> iface)
focal_class.full_signature: @Override public boolean isWrapperFor(final Class<?> iface)
focal_class.identifier: isWrapperFor
focal_class.modifiers: @Override public
focal_class.parameters: (final Class<?> iface)
focal_class.return: boolean
focal_class.signature: boolean isWrapperFor(final Class<?> iface)
focal_class.class_method_signature: FiberDataSource.hashCode()
focal_class.full_signature: @Override public int hashCode()
focal_class.identifier: hashCode
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: int
focal_class.signature: int hashCode()
focal_class.class_method_signature: FiberDataSource.equals(final Object obj)
focal_class.full_signature: @Override @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") public boolean equals(final Object obj)
focal_class.identifier: equals
focal_class.modifiers: @Override @SuppressWarnings("EqualsWhichDoesntCheckParameterClass") public
focal_class.parameters: (final Object obj)
focal_class.return: boolean
focal_class.signature: boolean equals(final Object obj)
focal_class.class_method_signature: FiberDataSource.toString()
focal_class.full_signature: @Override public String toString()
focal_class.identifier: toString
focal_class.modifiers: @Override public
focal_class.parameters: ()
focal_class.return: String
focal_class.signature: String toString()
focal_method.body: @Override
      @Suspendable
      public FiberConnection getConnection() throws SQLException {
          return JDBCFiberAsync.exec(executor, new CheckedCallable<FiberConnection, SQLException>() {
              @Override
              public FiberConnection call() throws SQLException {
                  return new FiberConnection(ds.getConnection(), executor);
              }
          });
      }
focal_method.class_method_signature: FiberDataSource.getConnection()
focal_method.full_signature: @Override @Suspendable public FiberConnection getConnection()
focal_method.identifier: getConnection
focal_method.invocations: exec getConnection
focal_method.modifiers: @Override @Suspendable public
focal_method.parameters: ()
focal_method.return: FiberConnection
focal_method.signature: FiberConnection getConnection()