Package bitel.billing.server.script.global.bean

# Class GlobalScriptMachine

java.lang.Object
ru.bitel.bgbilling.kernel.base.server.logger.BGLogger
bitel.billing.server.script.global.bean.GlobalScriptMachine

public class GlobalScriptMachine extends ru.bitel.bgbilling.kernel.base.server.logger.BGLogger

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `GlobalScriptMachine(ScriptInstance function, ConnectionSet connectionSet)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Object`
  `runScript(DefaultServerSetup setup, boolean logProcess)`
  Запуск скрипта.
  `protected void`
  `runScriptImpl(DefaultServerSetup setup, Connection con, Connection conSlave, PrintStream outPrintStream, PrintStream errPrintStream)`

  ### Methods inherited from class ru.bitel.bgbilling.kernel.base.server.logger.BGLogger

  `error, error, error, getLogger, logError, logError`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### GlobalScriptMachine

    public GlobalScriptMachine(ScriptInstance function, ConnectionSet connectionSet)

- ## Method Details

  - ### runScript

    public Object runScript(DefaultServerSetup setup, boolean logProcess)
    Запуск скрипта.
    Parameters:
      `setup` - сетап.
      `logProcess` - логгировать ли в БД (и возвращать ли результат)
    Returns:
      результат (возможно, строка), может быть null (если logProcess=false)

  - ### runScriptImpl

    protected void runScriptImpl(DefaultServerSetup setup, Connection con, Connection conSlave, PrintStream outPrintStream, PrintStream errPrintStream) throws Exception
    Throws:
      `Exception`