Examples of plug()


Examples of com.xensource.xenapi.VIF.plug()

                }

                nic.setDeviceId(Integer.parseInt(vifDeviceNum));

                correctVif = createVif(conn, vmName, router, nic);
                correctVif.plug(conn);
                // Add iptables rule for network usage
                networkUsage(conn, privateIpAddress, "addVif", "eth" + correctVif.getDevice(conn));
            }

            if (correctVif == null) {
View Full Code Here

Examples of com.xensource.xenapi.VIF.plug()

                config.put("nameLabel", "link_local_network_vif");
                vifr.otherConfig = config;
                vifr.MAC = "FE:FF:FF:FF:FF:FF";
                vifr.network = linkLocal;
                dom0vif = VIF.create(conn, vifr);
                dom0vif.plug(conn);
            } else {
                s_logger.debug("already have a vif on dom0 for link local network");
                if (!dom0vif.getCurrentlyAttached(conn)) {
                    dom0vif.plug(conn);
                }
View Full Code Here

Examples of com.xensource.xenapi.VIF.plug()

                dom0vif = VIF.create(conn, vifr);
                dom0vif.plug(conn);
            } else {
                s_logger.debug("already have a vif on dom0 for link local network");
                if (!dom0vif.getCurrentlyAttached(conn)) {
                    dom0vif.plug(conn);
                }
            }

            String brName = linkLocal.getBridge(conn);
            callHostPlugin(conn, "vmops", "setLinkLocalIP", "brName", brName);
View Full Code Here

Examples of com.xensource.xenapi.VIF.plug()

                return new PlugNicAnswer(cmd, false, msg);
            }
            String deviceId = getUnusedVIFNum(conn, vm);
            nic.setDeviceId(Integer.parseInt(deviceId));
            vif = createVif(conn, vmName, vm, nic);
            vif.plug(conn);
            return new PlugNicAnswer(cmd, true, "success");
        } catch (Exception e) {
            String msg = " Plug Nic failed due to " + e.toString();
            s_logger.warn(msg, e);
            return new PlugNicAnswer(cmd, false, msg);
View Full Code Here

Examples of dk.brics.xact.XML.plug()

                    .plug("LOGOURL",
                            ThreadContext.getBaseURL(request.isSecure())
                                    + request.getContextPath()
                                    + "/jwiglogo.gif");
            if (status_code == HttpServletResponse.SC_NOT_FOUND) {
                xml = xml.plug("BADNESS", "NOT FOUND");
            } else {
                xml = xml.plug("BADNESS", "ERROR");
            }
        }
View Full Code Here

Examples of name.shamansir.mvp4glayout.client.ui.widget.Layout.plug()

            if (!(container instanceof HasStatesPanels)) throw new IllegalStateException("Container " + container + " at place " + where + " does not implements HasStatesPanels, so it can not change states");
            HasStatesPanels panels = (HasStatesPanels)container;
            // TODO: check if it is already in this state
            Pluggable plug = panels.getViewFor(state);
            plug.changeState(state);
            layout.plug(where, plug);
        }
    }
   
    public void plug(Place where, Pluggable what) {
        if (currentBuilder == null) throw new IllegalStateException("Current layout builder is null, so I can not plug widgets");
View Full Code Here

Examples of org.sgx.yuigwt.yui.console.Console.plug()

    //Y.log will output on firebug's console
    Y.log("using Y.log()", "info", "myapp");
   
    //create a draggable console
    final Console console1 = Y.newConsole(ConsoleConfig.create());
    console1.plug(Y.Plugin().Drag());
   
    //be a nasty console catching each log entry and asking for confirmation.
    console1.before(Console.EVENT_ENTRY, new EventCallback() {     
      @Override
      public void call(EventFacade e) {
View Full Code Here

Examples of org.sgx.yuigwt.yui.console.Console.plug()

    //render and log something.
    console1.render();
    console1.log("using Console.log()", "info", "myapp");  
   
    //now install DD and resize plugins for the console
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{".yui3-console-hd"}));
    console1.plug(Y.Plugin().Resize());
    console1.log("drag the title for move and also resizable. ");
  }
 
});
View Full Code Here

Examples of org.sgx.yuigwt.yui.console.Console.plug()

    console1.render();
    console1.log("using Console.log()", "info", "myapp");  
   
    //now install DD and resize plugins for the console
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{".yui3-console-hd"}));
    console1.plug(Y.Plugin().Resize());
    console1.log("drag the title for move and also resizable. ");
  }
 
});
}
View Full Code Here

Examples of org.sgx.yuigwt.yui.console.Console.plug()

    Node node1 = parent.appendChild("<p>dragme1</p>");
    Drag dd = Y.newDDDrag(DragConfig.create().node(node1));
   
    //now a console dragable only at its title - using drag handle
    final Console console1 = Y.newConsole(ConsoleConfig.create()).render().cast();
    console1.plug(Y.Plugin().Drag(), DragConfig.create().handles(new String[]{"h4"}));
    console1.log("this console is only draggable by its title.");
  }
});
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.