private void saveInitRequestTable() { try { AgentServer.getTransaction().save( initRequestContextLists, INIT_REQUEST_TABLE); } catch (IOException exc) { throw new Error(exc.toString()); } }
/** * Saves the object state on persistent storage. */ void save() throws IOException { AgentServer.getTransaction().save(this, "AgentIdStamp"); }
private void saveServers() { try { AgentServer.getTransaction().save(servers, SERVER_LIST); } catch (IOException exc) { throw new Error(exc.toString()); } }
private void saveRequestCounter() { try { AgentServer.getTransaction().save( new Integer(requestCounter), HA_REQUEST_COUNTER); } catch (IOException exc) { throw new Error(exc.toString()); } }
/** * Saves the object state on persistent storage. */ void save() throws IOException { AgentServer.getTransaction().save(this, "AgentIdStamp"); }
private void saveWriteRequestTable() { try { AgentServer.getTransaction().save( writeRequestContextLists, WRITE_REQUEST_TABLE); } catch (IOException exc) { throw new Error(exc.toString()); } }
private void saveInitRequestTable() { try { AgentServer.getTransaction().save( initRequestContextLists, INIT_REQUEST_TABLE); } catch (IOException exc) { throw new Error(exc.toString()); } }
private void saveWriteRequestTable() { try { AgentServer.getTransaction().save( writeRequestContextLists, WRITE_REQUEST_TABLE); } catch (IOException exc) { throw new Error(exc.toString()); } }
private void saveSyncRequestTable() { try { AgentServer.getTransaction().save( syncRequestContextLists, SYNC_REQUEST_TABLE); } catch (IOException exc) { throw new Error(exc.toString()); } }
private void saveServers() { try { AgentServer.getTransaction().save(servers, SERVER_LIST); } catch (IOException exc) { throw new Error(exc.toString()); } }
/** * Removes an <code>AgentId</code> in the <code>fixedAgentIdList</code> * <code>Vector</code>. * * @param id the <code>AgentId</code> of no more used fixed agent. */ void removeFixedAgentId(AgentId id) throws IOException { fixedAgentIdList.removeElement(id); AgentServer.getTransaction().save(fixedAgentIdList, getName() + ".fixed"); }
/** * Removes an <code>AgentId</code> in the <code>fixedAgentIdList</code> * <code>Vector</code>. * * @param id the <code>AgentId</code> of no more used fixed agent. */ void removeFixedAgentId(AgentId id) throws IOException { fixedAgentIdList.removeElement(id); AgentServer.getTransaction().save(fixedAgentIdList, getName() + ".fixed"); }
/** * Adds an <code>AgentId</code> in the <code>fixedAgentIdList</code> * <code>Vector</code>. * * @param id the <code>AgentId</code> of new fixed agent. */ void addFixedAgentId(AgentId id) throws IOException { fixedAgentIdList.addElement(id); AgentServer.getTransaction().save(fixedAgentIdList, getName() + ".fixed"); }
public void save() { try { AgentServer.getTransaction().save(this, getTxName()); } catch (IOException exc) { logger.log(BasicLevel.ERROR, "ClientContext named [" + txName + "] could not be saved", exc); } }
public void save() throws IOException { if (logger.isLoggable(BasicLevel.DEBUG)) logger.log(BasicLevel.DEBUG, "QueueDeliveryTable.save() " + modified); if (modified) { // Calls 'save' and not 'saveByteArray' in order to enable lazy encoding // (and potentially 'delete') when reactions are grouped. AgentServer.getTransaction().save(this, txName); modified = false; } }
/** * save configuration of agent servers (Config) * in a serialized file. * * @exception IOException * @see AgentServer.DEFAULT_SER_CFG_FILE */ public void save() throws IOException { if (Log.logger.isLoggable(BasicLevel.DEBUG)) Log.logger.log(BasicLevel.DEBUG, "Config.save(" + this + ")"); AgentServer.getTransaction().save(this, AgentServer.DEFAULT_SER_CFG_FILE); }
final void testBootTS(short source, int boot) throws IOException { int fromIdx = index(source); if (boot != bootTS[fromIdx]) { if ((bootTS[fromIdx] != -1) && (logmon.isLoggable(BasicLevel.WARN))) logmon.log(BasicLevel.WARN, getName() + ", reset stamp #" + source + ", " + bootTS[fromIdx] + " -> " + boot); bootTS[fromIdx] = boot; AgentServer.getTransaction().save(bootTS, bootTSFN); updateStamp(fromIdx, -1); } }
final void testBootTS(short source, int boot) throws IOException { int fromIdx = index(source); if (boot != bootTS[fromIdx]) { if ((bootTS[fromIdx] != -1) && (logmon.isLoggable(BasicLevel.WARN))) logmon.log(BasicLevel.WARN, getName() + ", reset stamp #" + source + ", " + bootTS[fromIdx] + " -> " + boot); bootTS[fromIdx] = boot; AgentServer.getTransaction().save(bootTS, bootTSFN); updateStamp(fromIdx, -1); } }
/** * Saves object in persistent storage. */ static void save() throws IOException { AgentServer.getTransaction().save(manager, "serviceManager"); // with OSGi the service start asynchronously, // and perhaps without running transaction. AgentServer.getTransaction().begin(); AgentServer.getTransaction().commit(true); if (xlogmon.isLoggable(BasicLevel.DEBUG)) xlogmon.log(BasicLevel.DEBUG, getName() + " service manager saved."); }
/** * Saves object in persistent storage. */ static void save() throws IOException { AgentServer.getTransaction().save(manager, "serviceManager"); // with OSGi the service start asynchronously, // and perhaps without running transaction. AgentServer.getTransaction().begin(); AgentServer.getTransaction().commit(true); if (xlogmon.isLoggable(BasicLevel.DEBUG)) xlogmon.log(BasicLevel.DEBUG, getName() + " service manager saved."); }