Package com.ericsson.otp.erlang

Examples of com.ericsson.otp.erlang.OtpErlangPid


    @Override
    public OtpErlangPid start(final IOtpNodeProxy nodeProxy) {
        try {
            final OtpErlangObject r = nodeProxy.getOtpRpc().call("erlide_shell", "start",
                    "p", nodeProxy.getEventPid());
            final OtpErlangPid server = (OtpErlangPid) BackendUtils.ok(r);
            return server;
        } catch (final RpcException e) {
            return null;
        }
    }
View Full Code Here


    }

    public synchronized IBackendShell openShell(final String id) {
        BackendShell shell = getShell(id);
        if (shell == null) {
            OtpErlangPid server = null;
            try {
                server = new ErlideReshd().start(backend.getNodeProxy());
            } catch (final Exception e) {
                ErlLogger.warn(e);
            }
View Full Code Here

    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final OtpErlangTuple t = (OtpErlangTuple) cmds[1];
        final OtpErlangPid pid = (OtpErlangPid) t.elementAt(0);
        final ErlangProcess erlangProcess = debugTarget.getOrCreateErlangProcess(pid);
        final OtpErlangAtom statusA = (OtpErlangAtom) t.elementAt(2);
        final String status = statusA.atomValue();
        erlangProcess.setStatus(status);
        final OtpErlangTuple initialCall = (OtpErlangTuple) t.elementAt(1);
View Full Code Here

                    List<DebugTraceEvent> events = eventMap.get(node);
                    if (events == null) {
                        events = new ArrayList<DebugTraceEvent>(data.getEvents().length);
                        eventMap.put(node, events);
                    }
                    final OtpErlangPid pid = data.getPid();
                    for (final OtpErlangTuple t : data.getEvents()) {
                        events.add(new DebugTraceEvent(pid, t));
                        parentMap.put(t, node);
                    }
                    viewer.add(node, data.getEvents());
View Full Code Here

    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        if (debugTarget.getMetaFromPid(pid) == null) {
            final OtpErlangPid self = debugTarget.getEventMBox();
            final OtpErlangPid metaPid = ErlideDebug.attached(debugTarget.getBackend()
                    .getOtpRpc(), pid, self);
            // ErlLogger.debug("attached: " + pid + ",  meta: " + metaPid);
            if (metaPid != null) {
                debugTarget.putMetaPid(metaPid, pid);
            }
View Full Code Here

        super(cmds);
    }

    @Override
    public void execute(final ErlangDebugTarget debugTarget) {
        final OtpErlangPid pid = (OtpErlangPid) cmds[1];
        final ErlangProcess erlangProcess = debugTarget.getOrCreateErlangProcess(pid);
        final OtpErlangAtom sa = (OtpErlangAtom) cmds[2];
        final String status = sa.atomValue();
        if (status.equals("break")) {
            handleBreakStatus(erlangProcess, status);
View Full Code Here

        if (distributed) {
            distributeDebuggerCode();
            addNodesAsDebugTargets(launch);
        }

        final OtpErlangPid pid = ErlideDebug.startDebug(backend.getOtpRpc(),
                ErlDebugFlags.getFlag(debugFlags));
        ErlLogger.debug("debug started " + pid);
        backend.getOtpRpc().send(pid,
                OtpErlang.mkTuple(PARENT_ATOM, debuggerDaemon.getMBox()));
View Full Code Here

        if (!(message.elementAt(1) instanceof OtpErlangRef))
          System.out.println("invalid request received, expected a ref, got "+message.elementAt(1));
        OtpErlangRef ref = (OtpErlangRef) message.elementAt(1);
        if (!(message.elementAt(0) instanceof OtpErlangPid))
          System.out.println("invalid request received, expected a pid, got "+message.elementAt(0));
        OtpErlangPid pid = (OtpErlangPid) message.elementAt(0);
       
        if (command.equals(msgEcho))
        {// used to establish a link between a supervisor on the Erlang side and that of the Java side
          thisMbox.link(pid);
          reply(pid,ref,msgOk,thisMbox.self());
View Full Code Here

        + "synapselauncher:find_statechum()!{self(),Ref,getNodeName},"
        + "receive {Ref,ok,Value} -> "
        + "{Pid,Value} end");
    Assert.assertEquals(2,pid_node.arity());
    String synapseNode = ErlangLabel.dumpErlangObject(pid_node.elementAt(1));
    OtpErlangPid pid = (OtpErlangPid)pid_node.elementAt(0);// PID of the parent process
   
    // Check that Synapse is running.
    Assert.assertTrue(pingNode(synapseNode));
   
    // Terminate the parent process
View Full Code Here

        if (!(message.elementAt(1) instanceof OtpErlangRef))
          System.out.println("invalid request received, expected a ref, got "+message.elementAt(1));
        OtpErlangRef ref = (OtpErlangRef) message.elementAt(1);
        if (!(message.elementAt(0) instanceof OtpErlangPid))
          System.out.println("invalid request received, expected a pid, got "+message.elementAt(0));
        OtpErlangPid pid = (OtpErlangPid) message.elementAt(0);
       
        if (command.equals(msgEcho))
        {// used to establish a link between a supervisor on the Erlang side and that of the Java side
          thisMbox.link(pid);
          reply(pid,ref,msgOk,thisMbox.self());
View Full Code Here

TOP

Related Classes of com.ericsson.otp.erlang.OtpErlangPid

Copyright © 2018 www.massapicom. 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.