public IpAddress copy() { return new IpAddressUUID(ip_addr, port, low, high); }
public IpAddressUUID(int port) { super(port); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddressUUID(InetSocketAddress sock_addr) { super(sock_addr); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
/** * 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 IpAddressUUID(int port, boolean set_default_host) { super(port, set_default_host); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
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 IpAddressUUID(InetAddress i, int p) { super(i, p); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddress copy() { return new IpAddressUUID(ip_addr, port, low, high); }
public IpAddressUUID(String i, int p) throws UnknownHostException { super(i, p); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
/** * 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 IpAddressUUID(String addr_port) throws Exception { super(addr_port); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
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 IpAddressUUID(int port, boolean set_default_host) { super(port, set_default_host); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddressUUID(InetAddress i, int p) { super(i, p); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddressUUID(String i, int p) throws UnknownHostException { super(i, p); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddressUUID(int port) { super(port); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddressUUID(String addr_port) throws Exception { super(addr_port); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }
public IpAddressUUID(InetSocketAddress sock_addr) { super(sock_addr); long[] tmp=createUUID(); low=tmp[0]; high=(int)tmp[1]; }