/** * Get the id of this instance * @return */ private String getServerId() { return serverConfigurationService.getServerId(); }
/** * Start the maintenance thread, registering this app server in the cluster table. */ public void start() { if (m_maintenanceChecker != null) return; // register in the cluster table String statement = clusterServiceSql.getInsertServerSql(); Object fields[] = new Object[3]; fields[0] = m_serverConfigurationService.getServerIdInstance(); fields[1] = Status.STARTING.toString(); fields[2] = m_serverConfigurationService.getServerId(); boolean ok = m_sqlService.dbWrite(statement, fields); if (!ok) { log.warn("start(): dbWrite failed"); } m_maintenanceChecker = new Thread(this, "SakaiClusterService.Maintenance"); m_maintenanceChecker.setDaemon(true); m_maintenanceCheckerStop = false; m_maintenanceChecker.start(); }
new ClusterNodeImpl(m_serverConfigurationService.getServerId(), status, new Date())); if (dbStatus == null)
/** * Get the id of this instance * @return */ private String getServerId() { return serverConfigurationService.getServerId(); }
+ "("+serverConfigurationService.getServerId()+") ["+serverConfigurationService.getServerIdInstance()+"]\n ";
public static java.lang.String getServerId() { org.sakaiproject.component.api.ServerConfigurationService service = getInstance(); if (service == null) return null; return service.getServerId(); }
serverId = serverConfigurationService().getServerId(); serverConfigurationService().getServerId(), serverConfigurationService().getServerInstance(), serverConfigurationService().getServerIdInstance(),
@ManagedAttribute(description="Sakai server id", currencyTimeLimit=600) public String getServerId() { return serverConfigurationService.getServerId(); }
fields[0] = serverIdInstance; fields[1] = status; fields[2] = m_serverConfigurationService.getServerId(); boolean ok = m_sqlService.dbWrite(statement, fields); if (!ok) fields = new Object[3]; fields[0] = status; fields[1] = m_serverConfigurationService.getServerId(); fields[2] = serverIdInstance; boolean ok = m_sqlService.dbWrite(statement, fields);
doc.appendChild(root); root.setAttribute("source", siteId); root.setAttribute("server", m_serverConfigurationService.getServerId()); root.setAttribute("date", now.toString()); root.setAttribute("system", fromSystem); doc.appendChild(root); root.setAttribute("source", siteId); root.setAttribute("server", m_serverConfigurationService.getServerId()); root.setAttribute("date", now.toString()); root.setAttribute("system", fromSystem);
doc.appendChild(root); root.setAttribute("source", siteId); root.setAttribute("server", m_serverConfigurationService.getServerId()); root.setAttribute("date", now.toString()); root.setAttribute("system", FROM_SAKAI_2_8); doc.appendChild(root); root.setAttribute("source", siteId); root.setAttribute("server", m_serverConfigurationService.getServerId()); root.setAttribute("date", now.toString()); root.setAttribute("system", FROM_SAKAI_2_8);
public void init() { node = serverConfigurationService.getServerId(); if (StringUtils.isBlank(node)) { log.error("node cannot be blank, StoredConfigService is disabled");
reportId = "~" + serverConfigurationService().getServerId() + "~" + event.getUserId();
server = "tincanapi.dev.sakaiproject.org"; } else { server = serverConfigurationService.getServerId()+"."+server;