[jboss-jira] [JBoss JIRA] Commented: (JGRP-1089) org.jgroups.util.UUID.toString() should print the physical address too

Bela Ban (JIRA) jira-events at lists.jboss.org
Wed Nov 4 05:46:07 EST 2009


    [ https://jira.jboss.org/jira/browse/JGRP-1089?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12493016#action_12493016 ] 

Bela Ban commented on JGRP-1089:
--------------------------------

You can get the physical address like this:
public class bla5 {

    static final int NUM=1000;

    public static void main(String[] args) throws IOException, ChannelException {
        JChannel ch=new JChannel("/home/bela/fast.xml");
        ch.connect("x");

        Address local_addr=ch.getAddress();
        PhysicalAddress physical_addr=(PhysicalAddress)ch.downcall(new Event(Event.GET_PHYSICAL_ADDRESS, local_addr));
        System.out.println("\n-------------------------------------------------------------------\n" +
                "GMS: address=" + local_addr + 
                (physical_addr != null? ", physical address=" + physical_addr : "") +
                "\n-------------------------------------------------------------------");
    }
}


> org.jgroups.util.UUID.toString() should print the physical address too
> ----------------------------------------------------------------------
>
>                 Key: JGRP-1089
>                 URL: https://jira.jboss.org/jira/browse/JGRP-1089
>             Project: JGroups
>          Issue Type: Task
>            Reporter: Galder Zamarreno
>            Assignee: Bela Ban
>             Fix For: 2.8
>
>
> In Infinispan, we print the local address:
> 2009-11-03 13:18:36,377 3125  INFO  [org.infinispan.remoting.transport.jgroups.JGroupsTransport] (main:) Cache local address is localhost.localdomain-32544
> This effectively calls org.jgroups.util.UUID which implements address.
> It's be really useful if UUID's toString() also contained the physical address in the same way that you get it when GMS.print_address is on.
> This would help debugging when GMS.print_address is off.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list