Examples of Connect


Examples of akka.zeromq.Connect

    //#pub-socket

    //#sub-socket
    ActorRef listener = system.actorOf(Props.create(ListenerActor.class));
    ActorRef subSocket = ZeroMQExtension.get(system).newSubSocket(
      new Connect("tcp://127.0.0.1:1233"),
      new Listener(listener), Subscribe.all());
    //#sub-socket

    //#sub-topic-socket
    ActorRef subTopicSocket = ZeroMQExtension.get(system).newSubSocket(
      new Connect("tcp://127.0.0.1:1233"),
      new Listener(listener), new Subscribe("foo.bar"));
    //#sub-topic-socket

    //#unsub-topic-socket
    subTopicSocket.tell(new Unsubscribe("foo.bar"), ActorRef.noSender());
View Full Code Here

Examples of com.devbugger.network.Connect

*/
public class SirJava
{
    public static void main( String[] args )
    {
        Connect c = null;
        try {
            c = new Connect();
        } catch (IOException e) {
            e.printStackTrace();
        }
        c.runBot();
    }
View Full Code Here

Examples of com.nirima.libvirt.Connect

    }

    public JLibVirtConnectImpl(String host, int port, String username, String password, String hypervisorUri, boolean b) throws VirtException {
        try
        {
            this.connect = new Connect(host, port, username, password, hypervisorUri, b);
        } catch (Exception e) {
            throw new VirtException(e);
        }
    }
View Full Code Here

Examples of com.vaadin.shared.ui.Connect

        // Keep track of what has happened to avoid logging intermediate state
        Map<JClassType, List<JClassType>> replaced = new HashMap<JClassType, List<JClassType>>();

        for (JClassType type : types) {
            Connect connectAnnotation = type.getAnnotation(Connect.class);
            if (connectAnnotation == null) {
                continue;
            }

            String identifier = connectAnnotation.value().getCanonicalName();

            JClassType previousMapping = mappings.put(identifier, type);
            if (previousMapping != null) {
                // There are multiple mappings, pick the subclass
                JClassType subclass;
View Full Code Here

Examples of com.vaadin.shared.ui.Connect

        }
        return visitors;
    }

    protected LoadStyle getLoadStyle(JClassType connectorType) {
        Connect annotation = connectorType.getAnnotation(Connect.class);
        return annotation.loadStyle();
    }
View Full Code Here

Examples of com.vaadin.shared.ui.Connect

public class OnStateChangeVisitor extends TypeVisitor {

    @Override
    public void visitConnector(TreeLogger logger, JClassType type,
            ConnectorBundle bundle) throws UnableToCompleteException {
        Connect connectAnnotation = type.getAnnotation(Connect.class);
        if (connectAnnotation != null) {
            // Find all the annotated methods in all the superclasses
            JClassType connector = type;
            while (connector != null) {
                for (JMethod method : connector.getMethods()) {
View Full Code Here

Examples of com.vaadin.shared.ui.Connect

public class ConnectorInitVisitor extends TypeVisitor {

    @Override
    public void visitConnector(TreeLogger logger, JClassType type,
            ConnectorBundle bundle) throws UnableToCompleteException {
        Connect connectAnnotation = type.getAnnotation(Connect.class);
        if (connectAnnotation != null) {
            logger.log(Type.INFO, type.getName() + " will be in the "
                    + bundle.getName().replaceAll("^_*", "") + " bundle");
            String identifier = connectAnnotation.value().getCanonicalName();

            bundle.setIdentifier(type, identifier);
            bundle.setNeedsGwtConstructor(type);
        }
    }
View Full Code Here

Examples of de.innovationgate.utils.remote.commands.Connect

     * @throws RemoteException
     */
    public void connect() throws RemoteException {
        try {
            _server = new Socket(_host, _port);
            Connect connect = new Connect(_version);
            sendCommand(connect);
        }
        catch (Exception e) {
            throw new RemoteException("Unable to connect to server." ,e);
        }
View Full Code Here

Examples of org.fusesource.mqtt.codec.CONNECT

                mqttTransport.sendToMQTT(PING_RESP_FRAME);
                LOG.debug("Sent Ping Response to " + getClientId());
                break;
            }
            case CONNECT.TYPE: {
                onMQTTConnect(new CONNECT().decode(frame));
                LOG.debug("MQTT Client " + getClientId() + " connected.");
                break;
            }
            case DISCONNECT.TYPE: {
                LOG.debug("MQTT Client " + getClientId() + " disconnecting");
View Full Code Here

Examples of org.libvirt.Connect

        value = (String) params.get("host.reserved.mem.mb");
        _dom0MinMem = NumbersUtil.parseInt(value, 0) * 1024 * 1024;

        LibvirtConnection.initialize(_hypervisorURI);
        Connect conn = null;
        try {
            conn = LibvirtConnection.getConnection();
        } catch (LibvirtException e) {
            throw new CloudRuntimeException(e.getMessage());
        }

        /* Does node support HVM guest? If not, exit */
        if (!IsHVMEnabled(conn)) {
            throw new ConfigurationException(
                    "NO HVM support on this machine, please make sure: "
                            + "1. VT/SVM is supported by your CPU, or is enabled in BIOS. "
                            + "2. kvm modules are loaded (kvm, kvm_amd|kvm_intel)");
        }

        _hypervisorPath = getHypervisorPath(conn);
        try {
            _hvVersion = conn.getVersion();
            _hvVersion = (_hvVersion % 1000000) / 1000;
        } catch (LibvirtException e) {

        }

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.