Package anvil.script

Examples of anvil.script.Context.log()


  public void shutdown()
  {
    Context ctx = _context;
    if (ctx != null) {
      ctx.log().info("Thread shutting down");
    }
    clear();
  }

 
View Full Code Here


 
  public void overload()
  {
    Context ctx = _context;
    if (ctx != null) {
      ctx.log().error("Overload, cannot start thread");
    }
    clear();
  }

View Full Code Here

    Any callable = _callable;
    Any[] parameters = _parameters;
    if (context != null && callable != null && parameters != null) {
      context.join(Thread.currentThread());
      try {
        context.log().info("Executing function: "+_callable);
        Any rv = _callable.execute(context, parameters);
        context.log().info("Function "+_callable+" exited, return value: "+rv);
       
      } catch (ExitException e) {
        context.log().info("Explicit thread termination, exit value: "+e.getExitValue());
View Full Code Here

    if (context != null && callable != null && parameters != null) {
      context.join(Thread.currentThread());
      try {
        context.log().info("Executing function: "+_callable);
        Any rv = _callable.execute(context, parameters);
        context.log().info("Function "+_callable+" exited, return value: "+rv);
       
      } catch (ExitException e) {
        context.log().info("Explicit thread termination, exit value: "+e.getExitValue());
       
      } catch (ScriptException e) {
View Full Code Here

        context.log().info("Executing function: "+_callable);
        Any rv = _callable.execute(context, parameters);
        context.log().info("Function "+_callable+" exited, return value: "+rv);
       
      } catch (ExitException e) {
        context.log().info("Explicit thread termination, exit value: "+e.getExitValue());
       
      } catch (ScriptException e) {
        context.log().info("Uncaught exception\n" + e.getData());
       
      } catch (Throwable t) {
View Full Code Here

       
      } catch (ExitException e) {
        context.log().info("Explicit thread termination, exit value: "+e.getExitValue());
       
      } catch (ScriptException e) {
        context.log().info("Uncaught exception\n" + e.getData());
       
      } catch (Throwable t) {
        context.log().info("Uncaught exception", t);
      }
    }
View Full Code Here

       
      } catch (ScriptException e) {
        context.log().info("Uncaught exception\n" + e.getData());
       
      } catch (Throwable t) {
        context.log().info("Uncaught exception", t);
      }
    }
    clear();
  }
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.