protected void addQueueCommandInt(IQueueCommand pCmd) { LOG.INFO("addCommand: " + pCmd.toString()); lock (m_mxStackCommands) { boolean bExist = false; if (isSkipDuplicateCmd()) { for (int i = 0; i < (int)m_stackCommands.size(); i++) { if (m_stackCommands.get(i).equals(pCmd)) { LOG.INFO("Command already exists in queue. Skip it."); bExist = true; break; } } } if (!bExist) { m_stackCommands.add(pCmd); } } }
public void Init(WebBrowser browser, PhoneApplicationPage appMainPage, Grid layoutRoot, RhoView rhoView) { initAppUrls(); RhoLogger.InitRhoLog(); LOG.INFO("Init"); CRhoFile.recursiveCreateDir(CFilePath.join(getBlobsDirPath(), " ")); m_webBrowser = browser; if (m_appMainPage == null) { m_appMainPage = appMainPage; } if (m_layoutRoot == null) { m_layoutRoot = layoutRoot; } //m_appMainPage.ApplicationBar = null; if (m_httpServer == null) { m_httpServer = new CHttpServer(CFilePath.join(getRhoRootPath(), "apps")); } m_rhoView = rhoView; if (m_rhoView.MasterView) { m_masterView = rhoView; } }
public void Init(WebBrowser browser) { initAppUrls(); RhoLogger.InitRhoLog(); LOG.INFO("Init"); CRhoFile.recursiveCreateDir(CFilePath.join(getBlobsDirPath(), " ")); m_webBrowser = browser; m_httpServer = new CHttpServer(CFilePath.join(getRhoRootPath(), "apps")); CRhoResourceMap.deployContent(); RhoRuby.Init(m_webBrowser); DBAdapter.initAttrManager(); LOG.INFO("Starting sync engine..."); SyncThread sync = null; try{ sync = SyncThread.Create(); }catch (Exception exc) { LOG.ERROR("Create sync failed.", exc); } if (sync != null) { //sync.setStatusListener(this); } RhoRuby.InitApp(); RhoRuby.call_config_conflicts(); RHOCONF().conflictsResolved(); }
public virtual void START(String szCounterName) { CCounter pCounter = (CCounter)m_mapCounters.get(szCounterName); if (pCounter == null || !pCounter.isWasStarted()) { LOG.INFO(szCounterName + " : START"); } if (pCounter == null) { m_mapCounters.put(szCounterName, new CCounter(true)); } else { pCounter.start(); } }