@Override public synchronized void startStack() throws Exception { if(++connects == 1) super.startStack(); }
protected JChannel startStack(String cluster_name) throws Exception { checkClosed(); this.cluster_name=cluster_name; prot_stack.startStack(); // calls start() in all protocols, from top to bottom /*create a temporary view, assume this channel is the only member and is the coordinator*/ view=new View(local_addr, 0, Collections.singletonList(local_addr)); // create a dummy view TP transport=prot_stack.getTransport(); transport.registerProbeHandler(probe_handler); return this; }
setLocalAddress(local_addr); prot_stack.startStack();
@Override public synchronized void startStack() throws Exception { if(++connects == 1) super.startStack(); }
protected JChannel startStack(String cluster_name) throws Exception { checkClosed(); this.cluster_name=cluster_name; prot_stack.startStack(); // calls start() in all protocols, from top to bottom /*create a temporary view, assume this channel is the only member and is the coordinator*/ view=new View(local_addr, 0, Collections.singletonList(local_addr)); // create a dummy view TP transport=prot_stack.getTransport(); transport.registerProbeHandler(probe_handler); return this; }
prot_stack.startStack(); // calls start() in all protocols, from top to bottom
setLocalAddress(local_addr); prot_stack.startStack();