Package hermes.impl

Examples of hermes.impl.DestinationConfigKeyWrapper


      for (int i = 0; i < getChildCount(); i++)
      {
         if (getChildAt(i) instanceof DestinationConfigTreeNode)
         {
            DestinationConfigTreeNode child = (DestinationConfigTreeNode) getChildAt(i);
            map.put(new DestinationConfigKeyWrapper(getHermes(), child.getConfig()), child);
         }
         else
         {
            DestinationFragmentTreeNode child = (DestinationFragmentTreeNode) getChildAt(i);
            fragmentMap.put(child.getId(), child);
View Full Code Here


      TreeNode node = root.getChildAt(i);

      if (node instanceof DestinationConfigTreeNode) {
        DestinationConfigTreeNode dNode = (DestinationConfigTreeNode) node;

        map.put(new DestinationConfigKeyWrapper(getHermes(), dNode.getConfig()), dNode);
      } else {
        getDestinationTreeNodes(node, map);
      }
    }
  }
View Full Code Here

    TreeMap<DestinationConfigKeyWrapper, MutableTreeNode> map = new TreeMap<DestinationConfigKeyWrapper, MutableTreeNode>(
        new DestinationConfigKeyWrapperComparator());

    for (int i = 0; i < getChildCount(); i++) {
      DestinationConfigTreeNode child = (DestinationConfigTreeNode) getChildAt(i);
      map.put(new DestinationConfigKeyWrapper(getHermes(), child.getConfig()), child);
    }

    map.put(new DestinationConfigKeyWrapper(getHermes(), node.getConfig()), node);
    removeAllChildren();

    for (Map.Entry<DestinationConfigKeyWrapper, MutableTreeNode> entry : map.entrySet()) {
      super.add(entry.getValue());
    }
View Full Code Here

      return config.getId();
   }

   private WatchInfo getWatchInfo(Hermes hermes, DestinationConfig dConfig) throws JMSException
   {
      return model.getRowByKey(new DestinationConfigKeyWrapper(dConfig));
   }
View Full Code Here

        final DestinationConfig dConfig = HermesBrowser.getConfigDAO().duplicateForWatch(destination, hermes) ;
              
        synchronized (watchStatistics)
        {
            final DestinationConfigKeyWrapper key = new DestinationConfigKeyWrapper(dConfig) ;
            State stats;
           
            if ( watchStatistics.containsKey(key))
            {
                stats = watchStatistics.get(key);
View Full Code Here

    public static final String EXCEPTION = "exception";
    public static final String OLDEST = "oldest";

    public WatchInfo(String hermesId, DestinationConfig dConfig) throws JMSException
    {
        super(new DestinationConfigKeyWrapper(dConfig));
        this.key = new DestinationConfigKeyWrapper(dConfig) ;
        this.hermesId = hermesId;
        this.dConfig = dConfig;
        dConfig.setMyHermes(hermesId) ;
    }
View Full Code Here

         {
            if (hermesMap.containsKey(hermes.getId()))
            {
               final HermesTreeNode cfNode = (HermesTreeNode) hermesMap.get(hermes.getId());
               final DestinationConfigTreeNode dNode = new DestinationConfigTreeNode(cfNode, destinationConfig, cfNode.isCascadeNamespace());
               final DestinationConfigKeyWrapper key = new DestinationConfigKeyWrapper(hermes, destinationConfig);

               if (destinationMap.containsKey(key))
               {
                  cat.error("duplicate destination key=" + key);
               }
View Full Code Here

         public void run()
         {
            if (hermesMap.containsKey(hermes.getId()))
            {
               final HermesTreeNode cfNode = (HermesTreeNode) hermesMap.get(hermes.getId());
               final DestinationConfigKeyWrapper key = new DestinationConfigKeyWrapper(hermes, destinationConfig);

               if (destinationMap.containsKey(key))
               {
                  final DestinationConfigTreeNode node = destinationMap.remove(key);
View Full Code Here

         hermesMap.remove(hermes.getId());

         for (Iterator<DestinationConfigKeyWrapper> iter = destinationMap.keySet().iterator(); iter.hasNext();)
         {
            DestinationConfigKeyWrapper key = iter.next();

            if (key.getHermes().equals(hermes))
            {
               iter.remove();
            }
         }
      }
View Full Code Here

TOP

Related Classes of hermes.impl.DestinationConfigKeyWrapper

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.