public NoseyObjectStore(ObjectStore os) { super(os); ShutdownHook.registerObject(this); }
/** * @see Thread#run */ @Override public void run() { shutdown(); } }
public NoseyObjectStore(ObjectStore os) { super(os); ShutdownHook.registerObject(this); }
/** * @see Thread#run */ @Override public void run() { shutdown(); } }
Queue<Track> trackQueue = new LinkedList<Track>(); this.osw = osw; ShutdownHook.registerObject(new WeakReference<Object>(this)); try { connection = getConnection();
Queue<Track> trackQueue = new LinkedList<Track>(); this.osw = osw; ShutdownHook.registerObject(new WeakReference<Object>(this)); try { connection = getConnection();
ShutdownHook.registerObject(new WeakReference<Object>(this)); Exception e = new Exception(); e.fillInStackTrace();
ShutdownHook.registerObject(new WeakReference<Object>(this)); Exception e = new Exception(); e.fillInStackTrace();
LOG.info("Creating new invalid Database ", e); ShutdownHook.registerObject(new WeakReference<Database>(this));
LOG.info("Creating new invalid Database ", e); ShutdownHook.registerObject(new WeakReference<Database>(this));
/** * Constructs an ObjectStoreInterMineImpl, with a schema. * * @param db the database in which the model resides * @param schema the schema * @throws NullPointerException if db or model are null * @throws IllegalArgumentException if db or model are invalid */ protected ObjectStoreInterMineImpl(Database db, DatabaseSchema schema) { super(schema.getModel()); this.db = db; this.schema = schema; ShutdownHook.registerObject(new WeakReference<Object>(this)); limitedContext = new QueryOptimiserContext(); limitedContext.setTimeLimit(getMaxTime() / 10); maxQueryParseTime = getMaxQueryParseTime(); if (maxQueryParseTime != null) { limitedContext.setMaxQueryParseTime(maxQueryParseTime); } description = "ObjectStoreInterMineImpl(" + db + ")"; }
FileWriter fw = new FileWriter(logfile, true); BufferedWriter logWriter = new BufferedWriter(fw); ShutdownHook.registerObject(logWriter);
/** * Constructs an ObjectStoreInterMineImpl, with a schema. * * @param db the database in which the model resides * @param schema the schema * @throws NullPointerException if db or model are null * @throws IllegalArgumentException if db or model are invalid */ protected ObjectStoreInterMineImpl(Database db, DatabaseSchema schema) { super(schema.getModel()); this.db = db; this.schema = schema; ShutdownHook.registerObject(new WeakReference<Object>(this)); limitedContext = new QueryOptimiserContext(); limitedContext.setTimeLimit(getMaxTime() / 10); maxQueryParseTime = getMaxQueryParseTime(); if (maxQueryParseTime != null) { limitedContext.setMaxQueryParseTime(maxQueryParseTime); } description = "ObjectStoreInterMineImpl(" + db + ")"; }
FileWriter fw = new FileWriter(logfile, true); BufferedWriter logWriter = new BufferedWriter(fw); ShutdownHook.registerObject(logWriter);