Acct Server Init

From ADempiere ERP Wiki
Jump to navigationJump to search

The Sequence[edit]

Note: Indentation means levels of invocation.

 1 org.compiere.web.AdempiereMonitor.init(): Initialises the ADempiere server monitor.
   1.1 org.compiere.util.WebEnv.initWeb(): Initialises the web environment.
   1.2 org.compiere.server.AdempiereServerMgr.get(): Gets an instance of the class.
     1.2.1 org.compiere.server.AdempiereServerMgr.AdempiereServerMgr():
       1.2.1.1 #A
       1.2.1.2 org.compiere.util.Env.getCtx():
       1.2.1.3 org.compiere.server.AdempiereServerMgr.startEnvironment():
         1.2.1.3.1 org.compiere.Adempiere.startup(): Startup client/server and loads INI parameters.
         1.2.1.3.2 org.compiere.util.Env.getCtx():
         1.2.1.3.3 org.compiere.model.MSession.get(Properties, boolean):
           1.2.1.3.3.1 org.compiere.util.Env.getContextAsInt(Properties, String):
           1.2.1.3.3.2 org.compiere.model.MSession.MSession(Properties, String):
             1.2.1.3.3.2.1 org.compiere.model.MSession.MSession(Properties, int, String):
             1.2.1.3.3.2.2 org.compiere.model.X_AD_Session.setRemote_Addr():
             1.2.1.3.3.2.3 org.compiere.model.X_AD_Session.setRemote_Host():
           1.2.1.3.3.3 org.compiere.model.X_AD_Session.save():
           1.2.1.3.3.4 org.compiere.model.X_AD_Session.getAD_Session_ID():
           1.2.1.3.3.5 org.compiere.util.Env.setContext(Properties, String, int):
           1.2.1.3.3.6 org.compiere.util.CCache.put():
         1.2.1.3.4 org.compiere.model.MSession.setWebStoreSession():
         1.2.1.3.5 org.compiere.model.X_AD_Session.setWebSession():
         1.2.1.3.6 org.compiere.model.X_AD_Session.save():
     1.2.2 org.compiere.server.AdempiereServerMgr.startServers():
       1.2.2.1 org.compiere.model.MAcctProcessor.getActive(): Gets active processors.
         1.2.2.1.1 org.compiere.model.MAcctProcessor.MAcctProcessor():
           1.2.2.1.1.1 org.compiere.model.X_C_AcctProcessor.X_C_AcctProcessor():
       1.2.2.2 #C
       1.2.2.3 org.compiere.server.AcctProcessor.start():
         1.2.2.3.1 org.compiere.server.AcctProcessor.run():

From now on, all processors start asynchronously as different threads.

       1.2.2.4 org.compiere.server.AcctProcessor.setPriority():
       1.2.2.5 org.compiere.server.AdempiereServerMgr.startAll():
         1.2.2.5.1 org.compiere.server.AdempiereServerMgr.getInActive():
         1.2.2.5.2 org.compiere.server.AdempiereServerMgr.isAlive():
         1.2.2.5.3 org.compiere.server.AdempiereServerGroup.get():
         1.2.2.5.4 org.compiere.server.AdempiereServerGroup.dump():


When the first request is received the following sequence commences:

 1 org.compiere.server.AdempiereServer.getDateNextRun():
   1.1 org.compiere.model.MAcctProcessor.getDateNextRun():
     1.1.1 org.compiere.model.PO.load(String):
       1.1.1.1 #B
       1.1.1.2 org.compiere.util.CPreparedStatement.executeQuery():
       1.1.1.3 org.compiere.model.PO.load(ResultSet):
   1.2 org.compiere.model.X_C_AcctProcessor.getDateNextRun():
 2 org.compiere.server.AdempiereServer.doWork():
   2.1 org.compiere.MAcctProcessor.getC_AcctSchema_ID():
   2.2 org.compiere.model.MAcctSchema.getClientAcctSchema(Properties, int):
     2.2.1 org.compiere.model.MAcctSchema.getClientAcctSchema(Properties, int, String):
       2.2.1.1 #B
       2.2.1.2 org.compiere.util.CPreparedStatement.executeQuery():
       2.2.1.3 org.compiere.model.MClientInfo.MClientInfo():
       2.2.1.4 org.compiere.model.MAcctSchema.get():
         2.2.1.4.1 org.compiere.model.PO.load(ResultSet):
         2.2.1.4.2 org.compiere.model.MAcctSchema.MAcctSchema():
     2.2.2 #B
   2.3 org.compiere.server.AdempiereServer.postSession():
     2.3.1 org.compiere.server.MAcctProcessor.getAD_Table_ID():
     2.3.2 #B
     2.3.3 org.compiere.acct.Doc.get(MAcctSchema[], int, ResultSet, String):
       2.3.3.1 org.compiere.acct.Doc_Invoice.Doc_Invoice(MAcctSchema[], int, ResultSet, String):
         2.3.3.1.1 org.compiere.acct.Doc(MAcctSchema[], Class, ResultSet, String, String):
           2.3.3.1.1.1 #A
           2.3.3.1.1.2 org.compiere.model.MInvoice(Properties, ResultSet, String):
           2.3.3.1.1.3 org.compiere.acct.Doc.setDocumentType():
             2.3.3.1.1.3.1 #B
       2.3.3.2 org.compiere.acct.Doc.post():
     2.3.4 org.compiere.model.MCost.create(MClient):
       2.3.4.1 org.compiere.model.MAcctSchema.getClientAcctSchema(Properties, int):
         2.3.4.1.1 org.compiere.model.MAcctSchema.getClientAcctSchema(Properties, int, String):
           2.3.4.1.1.1 #B
           2.3.4.1.1.2 org.compiere.util.CPreparedStatement.executeQuery():
           2.3.4.1.1.3 org.compiere.model.MClientInfo.MClientInfo():
           2.3.4.1.1.4 org.compiere.model.MAcctSchema.get():
             2.3.4.1.1.4.1 org.compiere.model.PO.load(ResultSet):
             2.3.4.1.1.4.2 org.compiere.model.MAcctSchema.MAcctSchema():
         2.3.4.1.2 #B
       2.3.4.2 org.compiere.util.Trx.createTrxName():
       2.3.4.3 org.compiere.util.Trx.get():
       2.3.4.4 #B
       2.3.4.5 org.compiere.util.Trx.commit():
         2.3.4.5.1 org.compiere.util.Trx.commit(boolean):
           2.3.4.5.1.1 org.compiere.util.DB.isREmoteObjects():
     2.3.5 org.compiere.model.MAcctProcessor.deleteLog():




(A)

 1 org.compiere.util.CLogger.getLogger(Class):
   1.1 org.compiere.util.CLogger.getLogger(String):
     1.1.1 org.compiere.CLogger.CLogger():
     1.1.2 org.compiere.CLogger.setLevel():



(B)

 1 org.compiere.util.DB.prepareStatement(String, String):
   1.1 org.compiere.util.DB.prepareStatement(String, int, int, String):
     1.1.1 org.compiere.util.CPreparedStatement.CPreparedStatement(int, int, String, String):
       1.1.1.1 org.compiere.util.CStatement.CStatement():
         1.1.1.1.1 #A
       1.1.1.2 org.compiere.util.DB.getDatabase():
         1.1.1.2.1 org.compiere.util.CConnection.getDatabase():
       1.1.1.3 org.compiere.util.DB_XX.convertStatement():
         1.1.1.3.1 org.compiere.dbPort.Convert.convert():
           1.1.1.3.1.1 org.compiere.dbPort.Convert.convertIt():
       1.1.1.4 org.compiere.util.CStatementVO.CStatementVO (int, int, String):
         1.1.1.4.1 org.compiere.util.CStatementVO.CStatementVO (int, int):
           1.1.1.4.1.1 org.compiere.util.CStatementVO.setResultSetType():
           1.1.1.4.1.2 org.compiere.util.CStatementVO.setResultSetConcurrency():
           1.1.1.4.1.3 org.compiere.util.CStatementVO.setSql(): Sets SQL and replaces ROWID with TRIM(ROWID) to convert it to a string, since ROWID is not serialisable.
             1.1.1.4.1.3.1 org.compiere.util.DB.isRemoteObjects():
               1.1.1.4.1.3.1.1 org.compiere.util.CConnection.isServerObjects():
               1.1.1.4.1.3.1.2 org.compiere.util.CCOnnection.isAppsServerOK():
         1.1.1.4.2 org.compiere.util.CStatementVO.setTrxName():
       1.1.1.5 org.compiere.util.CPreparedStatement.init():
         1.1.1.5.1 org.compiere.util.DB.isRemoteObjects():
           1.1.1.5.1.1 org.compiere.util.CConnection.isServerObjects():
           1.1.1.5.1.2 org.compiere.util.CCOnnection.isAppsServerOK():
         1.1.1.5.2 org.compiere.util.CStatementVO.getTrxName():
         1.1.1.5.3 org.compiere.util.DB.getConnectionRO():



(C)

 1 org.compiere.server.AdempiereServer.create():
   1.1 org.compiere.server.AcctProcessor():
     1.1.1 org.compiere.server.AdempiereServer.AdempiereServer():
       1.1.1.1 org.compiere.server.AdempiereServerGroup.get():
         1.1.1.1.1 org.compiere.server.AdempiereServerGroup.AdempiereServerGroup():
       1.1.1.2 org.compiere.server.AdempiereServer.getName():
       1.1.1.3 #A
       1.1.1.4 org.compiere.model.MSystem.get(Properties):
       1.1.1.5 org.compiere.model.MClient.get(Properties):
         1.1.1.5.1 org.compiere.model.MClient.get(Properties, int):
           1.1.1.5.1.1 org.compiere.util.Env.getContextAsInt():
       1.1.1.6 org.compiere.util.Env.setContext():
     1.1.2 org.compiere.model.MClient.get(Properties, int):
       1.1.2.1 org.compiere.util.CCache.get():
         1.1.2.1.1 org.compiere.util.CCache.expire():
       1.1.2.2 org.compiere.model.MClient.MClient(Properties, int, String):
         1.1.2.2.1 org.compiere.model.MClient.MClient(Properties, int, boolean, String):
           1.1.2.2.1.1 org.compiere.model.X_AD_Client():
       1.1.2.3 org.compiere.util.CCache.put():
         1.1.2.3.1 org.compiere.util.CCache.expire():

See Also[edit]