3 Replies Latest reply on Mar 29, 2005 2:00 AM by belaban

    Runtime info about cluster

    ravi2box

      HI,

      I need to collect some statistics about object serialization when one cluster node fails over to another node in the partition.Specifically I would like to observe how long it takes to fail over and replicate objects on another node.Is there some way I can write a small agent app that joins the partition and listens to notifications?

      Can i use the jgroups library and connect with a small client app?

      TIA
      Ravi

        • 1. Re: Runtime info about cluster
          belaban

          Sure, you could even write a small MBean that collects the stats and makes the available via JMX

          • 2. Re: Runtime info about cluster
            ravi2box

            Bela,

            Can u give me an idea of where to find code snippets to understand how this can be done..Am i correct in assuming that if ANY agent that joins a channel called "Defaultpartition" automatically is part of the cluster??

            Specifically, where can i find code in the jboss CVS tree that handles new nodes being added to the cluster and how notifications are processed at each node?

            Thanks
            Ravi

            • 3. Re: Runtime info about cluster
              belaban

              Look at ClusterPartition (in cluster/src/main/org/jboss/ha/framework/server) for an example