Package org.voltdb.dtxn

Examples of org.voltdb.dtxn.SiteTracker


            for (MailboxType type : MailboxType.values()) {
                m_mailboxMap.put(type, new LinkedList<MailboxNodeContent>());
            }
            m_mailboxMap.get(MailboxType.StatsAgent).add(
                    new MailboxNodeContent(m_hostMessenger.getHSIdForLocalSite(HostMessenger.STATS_SITE_ID), null));
            m_siteTracker = new SiteTracker(m_hostId, m_mailboxMap);
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here


        return retval;
    }

    public void addSite(long siteId, MailboxType type) {
        m_mailboxMap.get(type).add(new MailboxNodeContent(siteId, null));
        m_siteTracker = new SiteTracker(m_hostId, m_mailboxMap);
    }
View Full Code Here

    public void addSite(long siteId, int partitionId)
    {
        MailboxNodeContent mnc = new MailboxNodeContent( siteId, partitionId);
        m_mailboxMap.get(MailboxType.ExecutionSite).add(mnc);
        m_siteTracker = new SiteTracker(m_hostId, m_mailboxMap);
    }
View Full Code Here

                if (iter.next().HSId == siteId) {
                    iter.remove();
                }
            }
        }
        m_siteTracker = new SiteTracker(m_hostId, m_mailboxMap);
    }
View Full Code Here

                }
                hostLog.info(e.getValue());
            }

            //Construct the list of partitions and sites because it simply doesn't exist anymore
            SiteTracker siteTracker = VoltDB.instance().getSiteTrackerForSnapshot();
            List<Long> sites = siteTracker.getSitesForHost(m_messenger.getHostId());

            List<Integer> partitions = new ArrayList<Integer>();
            for (Long site : sites) {
                Integer partition = siteTracker.getPartitionForSite(site);
                partitions.add(partition);
            }

            // 1. update the export manager.
            ExportManager.instance().updateCatalog(m_catalogContext, partitions);
View Full Code Here

    }

    @Override
    public SiteTracker getSiteTrackerForSnapshot()
    {
        return new SiteTracker(m_messenger.getHostId(), m_cartographer.getSiteTrackerMailboxMap(), 0);
    }
View Full Code Here

        long days = hours / 24; hours -= days * 24;
        String starttime = String.format("%s (%dd %dh %dm)",
                date.toString(), days, hours, minutes);

        // handle the basic info page below this
        SiteTracker st = VoltDB.instance().getSiteTrackerForSnapshot();

        // get the cluster info
        String clusterinfo = st.getAllHosts().size() + " hosts ";
        clusterinfo += " with " + st.getAllSites().size() + " sites ";
        clusterinfo += " (" + st.getAllSites().size() / st.getAllHosts().size();
        clusterinfo += " per host)";

        StringBuilder sb = new StringBuilder();
        sb.append("<table class='table table-condensed'>\n");
        sb.append("<tr><td>Mode                     </td><td>" + VoltDB.instance().getMode().toString() + "</td><td>\n");
View Full Code Here

TOP

Related Classes of org.voltdb.dtxn.SiteTracker

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.