Examples of NetInterface


Examples of lcmc.drbd.domain.NetInterface

    }

    /** Returns ip of the net interface. */
    @Override
    public final String getInternalValue() {
        final NetInterface ni = getNetInterface();
        if (ni == null) {
            return IP_PLACEHOLDER;
        }
        return ni.getIp();
    }
View Full Code Here

Examples of lcmc.drbd.domain.NetInterface

        String address     = "";
        String bindnetaddr = "";
        String port        = "";

        if (MCAST_TYPE.equals(type)) {
            final NetInterface iface = (NetInterface) ifaceWidget.getValue();
            bindnetaddr = iface.getBindnetaddr();
            address = addrWidget.getStringValue();
            port = portWidget.getStringValue();
        }

        for (final AisCastAddress c : aisCastAddresses) {
View Full Code Here

Examples of lcmc.drbd.domain.NetInterface

    private void addInterface(final Value type) {
        String bindnetaddr = "";
        String addr        = "";
        String port        = "";
        if (MCAST_TYPE.equals(type)) {
            final NetInterface iface  = (NetInterface) ifaceWidget.getValue();
            if (iface == null) {
                LOG.appWarning("addInterface: cannot add null interface");
                return;
            }
            bindnetaddr = iface.getBindnetaddr();
            addr = addrWidget.getStringValue();
            port = portWidget.getStringValue();
        }
        aisCastAddresses.add(new AisCastAddress(type.getValueForConfig(), bindnetaddr, addr, port));
        updateConfigPanelEditable(true);
View Full Code Here

Examples of lcmc.drbd.domain.NetInterface

                                                  new AccessMode(AccessMode.RO, AccessMode.NORMAL),
                                                  Widget.NO_BUTTON);
        typeWidget.setEnabled(false);

        final NetInterface[] ni = netInterfaceService.getNetInterfacesWithBridges(hosts[0]);
        NetInterface defaultNi = null;
        for (final NetInterface n : ni) {
            /* skip lo */
            if (!n.isLocalHost()) {
                defaultNi = n;
                break;
View Full Code Here

Examples of lcmc.drbd.domain.NetInterface

                                      Widget.NO_ABBRV,
                                      new AccessMode(AccessMode.RO, AccessMode.NORMAL),
                                      Widget.NO_BUTTON);

        final NetInterface[] ni = netInterfaceService.getNetInterfacesWithBridges(hosts[0]);
        NetInterface defaultNi = null;
        for (final NetInterface n : ni) {
            /* skip lo */
            if (!n.isLocalHost()) {
                defaultNi = n;
                break;
View Full Code Here

Examples of lcmc.drbd.domain.NetInterface

                changedTypes.add(type);
                continue;
            }
            if ("net-info".equals(type)) {
                try {
                    final NetInterface netInterface = new NetInterface(line);
                    if (netInterface.getIp() != null && !"".equals(netInterface.getIp())) {
                        newNetInterfaces.add(netInterface);
                    }
                } catch (final UnknownHostException e) {
                    LOG.appWarning("parseHostInfo: cannot parse: net-info: " + line);
                }
View Full Code Here

Examples of lcmc.drbd.domain.NetInterface

                            final String hostName = drbdpM.group(3);
                            final Host proxyHost = getCluster().getProxyHostByName(hostName);
                            final ProxyNetInfo proxyNetInfo = proxyNetInfoProvider.get();
                            proxyNetInfo.init(
                                    "",
                                    new NetInterface("", proxyIp, null, false, NetInterface.AddressFamily.IPV4),
                                    getBrowser(),
                                    proxyHost);
                            config.append(proxyConfig(proxyNetInfo));
                        }
                    }
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.