@Test(groups = { "integration" }) public void testCheckAlive() { OracleConnector oc = createTestConnector(); oc.checkAlive(); oc.dispose(); OracleConnector con = new OracleConnector(); try { con.checkAlive(); Assert.fail("Must fail for not initialized"); } catch (RuntimeException e) { } }
public void checkAlive() { testInitialized(); if (adminConn == null) { adminConn = createAdminConnection(); try { OracleSpecifics.testConnection(adminConn); } finally { if (ConnectionType.DATASOURCE.equals(cfg.getConnType())) { SQLUtil.closeQuietly(adminConn); adminConn = null; } } } else { OracleSpecifics.testConnection(adminConn); } }
OracleConnector implements PoolableConnector, AuthenticateOp, CreateOp,
        DeleteOp, UpdateOp, UpdateAttributeValuesOp, SearchOp<Pair<String, FilterWhereBuilder>>,
        SchemaOp, TestOp, AttributeNormalizer { public void checkAlive() { testInitialized(); if (adminConn == null) { adminConn = createAdminConnection(); try { OracleSpecifics.testConnection(adminConn); } finally { if (ConnectionType.DATASOURCE.equals(cfg.getConnType())) { SQLUtil.closeQuietly(adminConn); adminConn = null; } } } else { OracleSpecifics.testConnection(adminConn); } } }
OracleConnector implements PoolableConnector, AuthenticateOp, CreateOp,
        DeleteOp, UpdateOp, UpdateAttributeValuesOp, SearchOp<Pair<String, FilterWhereBuilder>>,
        SchemaOp, TestOp, AttributeNormalizer { public void checkAlive() { testInitialized(); if (adminConn == null) { adminConn = createAdminConnection(); try { OracleSpecifics.testConnection(adminConn); } finally { if (ConnectionType.DATASOURCE.equals(cfg.getConnType())) { SQLUtil.closeQuietly(adminConn); adminConn = null; } } } else { OracleSpecifics.testConnection(adminConn); } }  }
OracleConnector implements PoolableConnector, AuthenticateOp, CreateOp,
        DeleteOp, UpdateOp, UpdateAttributeValuesOp, SearchOp<Pair<String, FilterWhereBuilder>>,
        SchemaOp, TestOp, AttributeNormalizer { public void checkAlive() { testInitialized(); if (adminConn == null) { adminConn = createAdminConnection(); try { OracleSpecifics.testConnection(adminConn); } finally { if (ConnectionType.DATASOURCE.equals(cfg.getConnType())) { SQLUtil.closeQuietly(adminConn); adminConn = null; } } } else { OracleSpecifics.testConnection(adminConn); } }  void checkAlive(); void dispose(); OracleConfiguration getConfiguration(); void init(Configuration cfg); void test(); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); void delete(ObjectClass objClass, Uid uid, OperationOptions options); Uid create(ObjectClass oclass, Set<Attribute> attrs, OperationOptions options); Uid update(ObjectClass objclass, Uid uid, Set<Attribute> attrs, OperationOptions options); Uid addAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToAdd,
            OperationOptions options); Uid removeAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToRemove,
            OperationOptions options); FilterTranslator<Pair<String, FilterWhereBuilder>> createFilterTranslator(
            ObjectClass oclass, OperationOptions options); void executeQuery(ObjectClass oclass, Pair<String, FilterWhereBuilder> pair,
            ResultsHandler handler, OperationOptions options); Schema schema(); Attribute normalizeAttribute(ObjectClass oclass, Attribute attribute); }
OracleConnector implements PoolableConnector, AuthenticateOp, CreateOp,
        DeleteOp, UpdateOp, UpdateAttributeValuesOp, SearchOp<Pair<String, FilterWhereBuilder>>,
        SchemaOp, TestOp, AttributeNormalizer { public void checkAlive() { testInitialized(); if (adminConn == null) { adminConn = createAdminConnection(); try { OracleSpecifics.testConnection(adminConn); } finally { if (ConnectionType.DATASOURCE.equals(cfg.getConnType())) { SQLUtil.closeQuietly(adminConn); adminConn = null; } } } else { OracleSpecifics.testConnection(adminConn); } }  void checkAlive(); void dispose(); OracleConfiguration getConfiguration(); void init(Configuration cfg); void test(); Uid authenticate(ObjectClass objectClass, String username, GuardedString password,
            OperationOptions options); void delete(ObjectClass objClass, Uid uid, OperationOptions options); Uid create(ObjectClass oclass, Set<Attribute> attrs, OperationOptions options); Uid update(ObjectClass objclass, Uid uid, Set<Attribute> attrs, OperationOptions options); Uid addAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToAdd,
            OperationOptions options); Uid removeAttributeValues(ObjectClass objclass, Uid uid, Set<Attribute> valuesToRemove,
            OperationOptions options); FilterTranslator<Pair<String, FilterWhereBuilder>> createFilterTranslator(
            ObjectClass oclass, OperationOptions options); void executeQuery(ObjectClass oclass, Pair<String, FilterWhereBuilder> pair,
            ResultsHandler handler, OperationOptions options); Schema schema(); Attribute normalizeAttribute(ObjectClass oclass, Attribute attribute);  }