Examples of Signal


Examples of org.apache.sshd.server.Signal

    protected boolean handleSignal(Buffer buffer) throws IOException {
        boolean wantReply = buffer.getBoolean();
        String name = buffer.getString();
        log.debug("Signal received on channel {}: {}", id, name);

        final Signal signal = Signal.get(name);
        if (signal != null) {
            getEnvironment().signal(signal);
        } else {
            log.warn("Unknown signal received: " + name);
        }
View Full Code Here

Examples of org.apache.uima.ducc.ws.utils.LinuxSignals.Signal

    case FailedInitialization:
    case InitializationTimeout:
    case Killed:
      int code = process.getProcessExitCode();
      if(LinuxSignals.isSignal(code)) {
        Signal signal = LinuxSignals.lookup(code);
        if(signal != null) {
          cbList[index].append(signal.name()+"("+signal.number()+")");
        }
        else {
          cbList[index].append("UnknownSignal"+"("+LinuxSignals.getValue(code)+")");
        }
      }
View Full Code Here

Examples of org.eclipse.bpmn2.Signal

            if (result == null)
                result = defaultCase(theEObject);
            return result;
        }
        case Bpmn2Package.SIGNAL: {
            Signal signal = (Signal) theEObject;
            T result = caseSignal(signal);
            if (result == null)
                result = caseRootElement(signal);
            if (result == null)
                result = caseBaseElement(signal);
View Full Code Here

Examples of org.jbpm.client.Signal

    startExecution.setKey(executionKey);
    return (Execution) commandService.execute(startExecution);
  }

  public Execution signal(long executionDbid) {
    return (Execution) commandService.execute(new Signal(executionDbid));
  }
View Full Code Here

Examples of org.jbpm.client.Signal

  public Execution signal(long executionDbid) {
    return (Execution) commandService.execute(new Signal(executionDbid));
  }

  public Execution signal(long executionDbid, String signalName) {
    return (Execution) commandService.execute(new Signal(executionDbid, signalName));
  }
View Full Code Here

Examples of org.jbpm.client.Signal

  public Execution signal(long executionDbid, String signalName) {
    return (Execution) commandService.execute(new Signal(executionDbid, signalName));
  }

  public Execution signal(long executionDbid, String signalName, Map<String, Object> parameters) {
    return (Execution) commandService.execute(new Signal(executionDbid, signalName, parameters));
  }
View Full Code Here

Examples of org.jbpm.pvm.internal.model.op.Signal

    if (getProcessDefinition().isSuspended()) {
      throw new JbpmException("process definition "+getProcessDefinition().getId()+" is suspended");
    }
    propagation = Propagation.EXPLICIT;
    if (getActivity()!=null) {
      performAtomicOperation(new Signal(signal, parameters));
    } else if (transition!=null) {
      performAtomicOperation(AtomicOperation.TRANSITION_START_ACTIVITY);
    } else {
      throw new JbpmException("execution is not in a activity or in a transition");
    }
View Full Code Here

Examples of sun.misc.Signal

    Shutdown.exit(sig.getNumber() + 0200);
      }
  };
  handler = sh;
        try {
            Signal.handle(new Signal("INT"), sh);
            Signal.handle(new Signal("TERM"), sh);
        } catch (IllegalArgumentException e) {
            // When -Xrs is specified the user is responsible for
            // ensuring that shutdown hooks are run by calling
            // System.exit()
        }
View Full Code Here

Examples of sun.misc.Signal

    public IRubyObject trap(final IRubyObject recv, IRubyObject arg1, IRubyObject arg2, IRubyObject arg3) {
        final JRubySignalHandler handler = new JRubySignalHandler(recv.getRuntime(), arg1, arg2, arg3.toString());
       
        final SignalHandler oldHandler;
        try {
            oldHandler = Signal.handle(new Signal(handler.signal), handler);
        } catch (Exception e) {
            throw recv.getRuntime().newArgumentError(e.getMessage());
        }
        if(oldHandler instanceof JRubySignalHandler) {
            return ((JRubySignalHandler)oldHandler).block;
        } else {
            return RubyProc.newProc(recv.getRuntime(), CallBlock.newCallClosure(recv, (RubyModule)recv,
                                                                                Arity.noArguments(), new BlockCallback(){
                                                                                        public IRubyObject call(ThreadContext context, IRubyObject[] args, Block block) {
                                                                                            oldHandler.handle(new Signal(handler.signal));
                                                                                            return recv.getRuntime().getNil();
                                                                                        }
                                                                                    }, recv.getRuntime().getCurrentContext()), Block.Type.NORMAL);
        }
    }
View Full Code Here

Examples of sun.misc.Signal

                        .callMethod(context, "raise", e.getException());
                } catch(Exception ignored) {}
            } catch (MainExitException mee) {
                runtime.getThreadService().getMainThread().kill();
            } finally {
                Signal.handle(new Signal(this.signal), this);
            }
        }
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.