public IpAddress copy() { return new IpAddressUUID(ip_addr, port, low, high); }
/** * Creates the unicast and multicast sockets and starts the unicast and multicast receiver threads */ public void start() throws Exception { if(use_ip_addrs) { PhysicalAddress tmp=getPhysicalAddress(); if(tmp instanceof IpAddress) { local_addr=new IpAddressUUID(((IpAddress)tmp).getIpAddress(), ((IpAddress)tmp).getPort()); stack.getTopProtocol().down(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); stack.getTopProtocol().up(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); } } fetchLocalAddresses(); if(timer == null) throw new Exception("timer is null"); startDiagnostics(); if(bundler == null) { bundler=createBundler(bundler_type); bundler.init(this); bundler.start(); } // local_addr is null when shared transport setInAllThreadFactories(cluster_name != null? cluster_name.toString() : null, local_addr, thread_naming_pattern); }
public static Address readAddress(DataInput in) throws Exception { byte flags=in.readByte(); if(Util.isFlagSet(flags,Address.NULL)) return null; Address addr; if(Util.isFlagSet(flags,Address.UUID_ADDR)) { addr=new UUID(); addr.readFrom(in); } else if(Util.isFlagSet(flags,Address.SITE_UUID)) { addr=new SiteUUID(); addr.readFrom(in); } else if(Util.isFlagSet(flags,Address.SITE_MASTER)) { addr=new SiteMaster(); addr.readFrom(in); } else if(Util.isFlagSet(flags,Address.IP_ADDR)) { addr=new IpAddress(); addr.readFrom(in); } else if(Util.isFlagSet(flags, Address.IP_ADDR_UUID)) { addr=new IpAddressUUID(); addr.readFrom(in); } else { addr=readOtherAddress(in); } return addr; }
public IpAddress copy() { return new IpAddressUUID(ip_addr, port, low, high); }
/** * Creates the unicast and multicast sockets and starts the unicast and multicast receiver threads */ public void start() throws Exception { if(use_ip_addrs) { PhysicalAddress tmp=getPhysicalAddress(); if(tmp instanceof IpAddress) { local_addr=new IpAddressUUID(((IpAddress)tmp).getIpAddress(), ((IpAddress)tmp).getPort()); stack.getTopProtocol().down(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); stack.getTopProtocol().up(new Event(Event.SET_LOCAL_ADDRESS, local_addr)); } } fetchLocalAddresses(); if(timer == null) throw new Exception("timer is null"); startDiagnostics(); if(bundler == null) { bundler=createBundler(bundler_type); bundler.init(this); bundler.start(); } // local_addr is null when shared transport setInAllThreadFactories(cluster_name != null? cluster_name.toString() : null, local_addr, thread_naming_pattern); }
public static Address readAddress(DataInput in) throws Exception { byte flags=in.readByte(); if(Util.isFlagSet(flags,Address.NULL)) return null; Address addr; if(Util.isFlagSet(flags,Address.UUID_ADDR)) { addr=new UUID(); addr.readFrom(in); } else if(Util.isFlagSet(flags,Address.SITE_UUID)) { addr=new SiteUUID(); addr.readFrom(in); } else if(Util.isFlagSet(flags,Address.SITE_MASTER)) { addr=new SiteMaster(); addr.readFrom(in); } else if(Util.isFlagSet(flags,Address.IP_ADDR)) { addr=new IpAddress(); addr.readFrom(in); } else if(Util.isFlagSet(flags, Address.IP_ADDR_UUID)) { addr=new IpAddressUUID(); addr.readFrom(in); } else { addr=readOtherAddress(in); } return addr; }