Examples of Connection

  • 2 ends that can be connected to {@link Gate}.
  • A {@link Path} that provides the path from the first end to the last end @author zxpletran007
  • spark.api.Connection
    A connection to a SPARQL processor. Connections can be used to create commands, get metadata, or be closed.
  • sun.rmi.transport.Connection
  • tv.floe.metronome.classification.neuralnetworks.core.Connection
  • vicazh.hyperpool.stream.Connection
    This class is the superclass of all connections @author Victor Zhigunov @version 0.4.8.3

  • Examples of org.infinispan.cli.connection.Connection

          Getopt g = new Getopt("ispn-cli", args, sopts, lopts);
          int c;
          while ((c = g.getopt()) != -1) {
             switch (c) {
             case 'c':
                Connection connection = ConnectionFactory.getConnection(g.getOptarg());
                String password = null;
                if (connection.needsCredentials()) {
                   java.io.Console sysConsole = System.console();
                   if (sysConsole != null) {
                      password = new String(sysConsole.readPassword("Password: "));
                   } else {
                      exitWithError("Cannot read password non-interactively");
                   }
                }
                connection.connect(password);
                context.setConnection(connection);
                break;
             case 'f':
                inputFile = g.getOptarg();
                if ("-".equals(inputFile) || new File(inputFile).isFile()) {
    View Full Code Here

    Examples of org.jboss.as.process.protocol.Connection

                    final ProcessControllerClient client = (ProcessControllerClient) connection.getAttachment();
                    messageHandler.handleConnectionFinished(client);
                }
            });
            final ProtocolClient client = new ProtocolClient(configuration);
            final Connection connection = client.connect();
            boolean ok = false;
            try {
                final OutputStream os = connection.writeMessage();
                try {
                    os.write(Protocol.AUTH);
                    os.write(1);
                    os.write(authCode);
                    final ProcessControllerClient processControllerClient = new ProcessControllerClient(connection);
                    connection.attach(processControllerClient);
                    CLIENT_LOGGER.trace("Sent initial greeting message");
                    os.close();
                    ok = true;
                    return processControllerClient;
                } finally {
    View Full Code Here

    Examples of org.jboss.as.protocol.Connection

        public Future<T> execute(final ManagementRequestConnectionStrategy connectionStrategy) throws IOException {
            this.connectionStrategy = connectionStrategy;
            OutputStream dataOutput = null;
            ByteDataOutput output = null;
            try {
                final Connection connection = connectionStrategy.getConnection();
                connection.backupMessageHandler();

                connection.setMessageHandler(initiatingMessageHandler);
                dataOutput = connection.writeMessage();
                output = new SimpleByteDataOutput(dataOutput);
                // Start by writing the header
                final ManagementRequestHeader managementRequestHeader = new ManagementRequestHeader(ManagementProtocol.VERSION, requestId, getHandlerId());
                managementRequestHeader.write(output);
                connection.setMessageHandler(initiatingMessageHandler);
                output.close();
                dataOutput.close();
            } finally {
                safeClose(output);
                safeClose(dataOutput);
    View Full Code Here

    Examples of org.jboss.as.protocol.old.Connection

                    final ProcessControllerClient client = (ProcessControllerClient) connection.getAttachment();
                    messageHandler.handleConnectionFinished(client);
                }
            });
            final ProtocolClient client = new ProtocolClient(configuration);
            final Connection connection = client.connect();
            boolean ok = false;
            try {
                final OutputStream os = connection.writeMessage();
                try {
                    os.write(Protocol.AUTH);
                    os.write(1);
                    os.write(authCode);
                    final ProcessControllerClient processControllerClient = new ProcessControllerClient(connection);
                    connection.attach(processControllerClient);
                    log.trace("Sent initial greeting message");
                    os.close();
                    ok = true;
                    return processControllerClient;
                } finally {
    View Full Code Here

    Examples of org.jboss.blacktie.jatmibroker.xatmi.Connection

       */
      public JABConnection getConnection(String connectionName)
          throws JABException {
        JABConnection toReturn = connections.get(connectionName);
        if (toReturn == null) {
          Connection connection = connectionFactory.getConnection();
          toReturn = new JABConnection(connection, session);
          connections.put(connectionName, toReturn);
        }
        return toReturn;
      }
    View Full Code Here

    Examples of org.jboss.narayana.blacktie.jatmibroker.xatmi.Connection

      public JABConnection getConnection(String connectionName)
          throws JABException {
        JABConnection toReturn = connections.get(connectionName);
        if (toReturn == null) {
          try {
            Connection connection = connectionFactory.getConnection();
            toReturn = new JABConnection(connection, session);
            connections.put(connectionName, toReturn);
          } catch (ConfigurationException e) {
            throw new JABException(e.getMessage());
          }
    View Full Code Here

    Examples of org.jboss.remoting3.Connection

        private void connectionClosed() {
            if(! reconnect.get()) {
                return; // Nothing to do
            }
            // Wait until the connection is closed before reconnecting
            final Connection connection = this.connection;
            if(connection != null) {
                if(channel == null) {
                    connection.closeAsync();
                }
            } else {
                HostControllerLogger.ROOT_LOGGER.lostRemoteDomainConnection();
                executorService.execute(new Runnable() {
                    @Override
    View Full Code Here

    Examples of org.jboss.soa.esb.http.configurators.Connection

                    throw new ConfigurationException("Failed to load HttpClient config '" + fileConfig + "'.");
                }
            }

            // Apply the mandatory Configurators...
            new Connection().configure(httpClient, properties);

            // Apply the optional (configured) Configurators...
            configurators = properties.getProperty("configurators", HttpProtocol.class.getName()).split(",");
            for(String configuratorClass : configurators) {
              configuratorClass = configuratorClass.trim();
    View Full Code Here

    Examples of org.jbpm.process.workitem.email.Connection

      
        private Connection connection;
        private boolean result = false;

      public void setConnection(String host, String port, String userName, String password) {
        connection = new Connection();
        connection.setHost(host);
        connection.setPort(port);
        connection.setUserName(userName);
        connection.setPassword(password);
      }
    View Full Code Here

    Examples of org.jbpm.workflow.core.Connection

            split.setMetaData("x", 1);
            split.setMetaData("y", 2);
            split.setMetaData("width", 3);
            split.setMetaData("height", 4);
            split.setType(Split.TYPE_XOR);
            Connection connection = new ConnectionImpl(split, Node.CONNECTION_DEFAULT_TYPE, actionNode, Node.CONNECTION_DEFAULT_TYPE);
            Constraint constraint = new ConstraintImpl();
            constraint.setName("constraint1 ><&&");
            constraint.setPriority(1);
            constraint.setDialect("dialect1");
            constraint.setType("type1");
            constraint.setConstraint("constraint-text1");
            split.setConstraint(connection, constraint);
            connection = new ConnectionImpl(split, Node.CONNECTION_DEFAULT_TYPE, ruleSetNode, Node.CONNECTION_DEFAULT_TYPE);
            constraint = new ConstraintImpl();
            constraint.setName("constraint2");
            constraint.setPriority(2);
            constraint.setDialect("dialect2");
            constraint.setType("type2");
            constraint.setConstraint("constraint-text2");
            split.setConstraint(connection, constraint);
            process.addNode(split);
            new ConnectionImpl(startNode, Node.CONNECTION_DEFAULT_TYPE, split, Node.CONNECTION_DEFAULT_TYPE);
           
            EventNode eventNode = new EventNode();
            eventNode.setName("action");
            eventNode.setMetaData("x", 1);
            eventNode.setMetaData("y", 2);
            eventNode.setMetaData("width", 3);
            eventNode.setMetaData("height", 4);
            eventNode.setVariableName("eventVariable");
            EventTypeFilter eventFilter = new EventTypeFilter();
            eventFilter.setType("eventType");
            eventNode.addEventFilter(eventFilter);
            process.addNode(eventNode);
           
            Join join = new Join();
            join.setName("join");
            join.setMetaData("x", 1);
            join.setMetaData("y", 2);
            join.setMetaData("width", 3);
            join.setMetaData("height", 4);
            join.setType(Join.TYPE_N_OF_M);
            join.setN("#{var1}");
            process.addNode(join);
            new ConnectionImpl(actionNode, Node.CONNECTION_DEFAULT_TYPE, join, Node.CONNECTION_DEFAULT_TYPE);
            new ConnectionImpl(ruleSetNode, Node.CONNECTION_DEFAULT_TYPE, join, Node.CONNECTION_DEFAULT_TYPE);
            new ConnectionImpl(eventNode, Node.CONNECTION_DEFAULT_TYPE, join, Node.CONNECTION_DEFAULT_TYPE);
           
            MilestoneNode milestone = new MilestoneNode();
            milestone.setName("milestone");
            milestone.setMetaData("x", 1);
            milestone.setMetaData("y", 2);
            milestone.setMetaData("width", 3);
            milestone.setMetaData("height", 4);
            milestone.setConstraint("constraint");
            timer = new Timer();
            timer.setDelay("100");
            timer.setPeriod("100");
            action = new DroolsConsequenceAction("dialect", "consequence");
            milestone.addTimer(timer, action);
            timer = new Timer();
            timer.setDelay("200");
            timer.setPeriod("200");
            action = new DroolsConsequenceAction("dialect", "consequence");
            milestone.addTimer(timer, action);
            List<DroolsAction> actions = new ArrayList<DroolsAction>();
            DroolsAction action1 = new DroolsConsequenceAction("java", "System.out.println(\"action1\");");
            actions.add(action1);
            DroolsAction action2 = new DroolsConsequenceAction("java", "System.out.println(\"action2\");");
            actions.add(action2);
            milestone.setActions(ExtendedNodeImpl.EVENT_NODE_ENTER, actions);
            milestone.setActions(ExtendedNodeImpl.EVENT_NODE_EXIT, actions);
            process.addNode(milestone);
            connection = new ConnectionImpl(join, Node.CONNECTION_DEFAULT_TYPE, milestone, Node.CONNECTION_DEFAULT_TYPE);
            connection.setMetaData("bendpoints", "[10,10;20,20]");
           
            SubProcessNode subProcess = new SubProcessNode();
            subProcess.setName("subProcess");
            subProcess.setMetaData("x", 1);
            subProcess.setMetaData("y", 2);
            subProcess.setMetaData("width", 3);
            subProcess.setMetaData("height", 4);
            subProcess.setProcessId("processId");
            subProcess.setWaitForCompletion(false);
            subProcess.setIndependent(false);
            subProcess.addInMapping("subvar1", "var1");
            subProcess.addOutMapping("subvar2", "var2");
            timer = new Timer();
            timer.setDelay("100");
            timer.setPeriod("100");
            action = new DroolsConsequenceAction("dialect", "consequence");
            subProcess.addTimer(timer, action);
            timer = new Timer();
            timer.setDelay("200");
            timer.setPeriod("200");
            action = new DroolsConsequenceAction("dialect", "consequence");
            subProcess.addTimer(timer, action);
            subProcess.setActions(ExtendedNodeImpl.EVENT_NODE_ENTER, actions);
            subProcess.setActions(ExtendedNodeImpl.EVENT_NODE_EXIT, actions);
            process.addNode(subProcess);
            connection = new ConnectionImpl(milestone, Node.CONNECTION_DEFAULT_TYPE, subProcess, Node.CONNECTION_DEFAULT_TYPE);
            connection.setMetaData("bendpoints", "[10,10]");

            WorkItemNode workItemNode = new WorkItemNode();
            workItemNode.setName("WorkItem");
            Work work = new WorkImpl();
            work.setName("workname");
            Set<ParameterDefinition> parameterDefinitions = new HashSet<ParameterDefinition>();
            ParameterDefinition parameterDefinition = new ParameterDefinitionImpl("param1", new StringDataType());
            parameterDefinitions.add(parameterDefinition);
            parameterDefinition = new ParameterDefinitionImpl("param2", new IntegerDataType());
            parameterDefinitions.add(parameterDefinition);
            work.setParameterDefinitions(parameterDefinitions);
            work.setParameter("param1", "value1");
            work.setParameter("param2", 1);
            workItemNode.setWork(work);
            workItemNode.setWaitForCompletion(false);
            workItemNode.addInMapping("param1", "var1");
            workItemNode.addOutMapping("param2", "var2");
            timer = new Timer();
            timer.setDelay("100");
            timer.setPeriod("100");
            action = new DroolsConsequenceAction("dialect", "consequence");
            workItemNode.addTimer(timer, action);
            timer = new Timer();
            timer.setDelay("200");
            timer.setPeriod("200");
            action = new DroolsConsequenceAction("dialect", "consequence");
            workItemNode.addTimer(timer, action);
            workItemNode.setActions(ExtendedNodeImpl.EVENT_NODE_ENTER, actions);
            workItemNode.setActions(ExtendedNodeImpl.EVENT_NODE_EXIT, actions);
            process.addNode(workItemNode);
            connection = new ConnectionImpl(subProcess, Node.CONNECTION_DEFAULT_TYPE, workItemNode, Node.CONNECTION_DEFAULT_TYPE);
            connection.setMetaData("bendpoints", "[]");
           
            HumanTaskNode humanTaskNode = new HumanTaskNode();
            humanTaskNode.setName("Human Task");
            work = humanTaskNode.getWork();
            parameterDefinitions = new HashSet<ParameterDefinition>();
    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.