Package org.apache.derby.iapi.services.monitor

Examples of org.apache.derby.iapi.services.monitor.ModuleFactory


    {
      Thread.yield();
    }
    else
    {
      ModuleFactory mf = Monitor.getMonitor();
      if (mf != null)
        mf.setThreadPriority(Thread.MIN_PRIORITY);
      Thread.yield();
      if (mf != null)
        mf.setThreadPriority(oldPriority);
    }
  }
View Full Code Here


  public void boot(boolean create, Properties startParams)
    throws StandardException
  {

    ModuleFactory monitor = Monitor.getMonitor();
    if (create)
    {
      if (startParams.getProperty(Property.CREATE_WITH_NO_LOG) == null)
        startParams.put(Property.CREATE_WITH_NO_LOG, "true");

      String localeID =
                startParams.getProperty(
                    org.apache.derby.iapi.reference.Attribute.TERRITORY);

      if (localeID == null) {
        localeID = Locale.getDefault().toString();
      }
      databaseLocale = monitor.setLocale(startParams, localeID);

    } else {
      databaseLocale = monitor.getLocale(this);
    }
    setLocale(databaseLocale);     

    // boot the validation needed to do property validation, now property
    // validation is separated from AccessFactory, therefore from store
View Full Code Here

    @return the value of the property or defaultValue if it does not exist.
  */
  public static String getSystemProperty(String key, String defaultValue) {

    ModuleFactory monitor = Monitor.getMonitorLite();

    String value = monitor.getJVMProperty(key);

    if (value == null) {

      Properties applicationProperties =
        monitor.getApplicationProperties();

      if (applicationProperties != null)
        value = applicationProperties.getProperty(key);
    }
    return value == null ? defaultValue : value;
View Full Code Here

  }

  public void boot(boolean create, Properties startParams)
    throws StandardException
  {
    ModuleFactory monitor = Monitor.getMonitor();
    if (create)
    {
      if (startParams.getProperty(Property.CREATE_WITH_NO_LOG) == null)
        startParams.put(Property.CREATE_WITH_NO_LOG, "true");

      String localeID =
                startParams.getProperty(
                    org.apache.derby.iapi.reference.Attribute.TERRITORY);

      if (localeID == null) {
        localeID = Locale.getDefault().toString();
      }
      databaseLocale = monitor.setLocale(startParams, localeID);

    } else {
      databaseLocale = monitor.getLocale(this);
    }
    setLocale(databaseLocale);     

    // boot the validation needed to do property validation, now property
    // validation is separated from AccessFactory, therefore from store
View Full Code Here

    @return the value of the property or defaultValue if it does not exist.
  */
  public static String getSystemProperty(String key, String defaultValue) {

    ModuleFactory monitor = Monitor.getMonitorLite();

    String value = monitor.getJVMProperty(key);

    if (value == null) {

      Properties applicationProperties =
        monitor.getApplicationProperties();

      if (applicationProperties != null)
        value = applicationProperties.getProperty(key);
    }
    return value == null ? defaultValue : value;
View Full Code Here

  protected Properties allParams;  // properties to be used *only* while booting.

  public void boot(boolean create, Properties startParams)
    throws StandardException
  {
    ModuleFactory monitor = Monitor.getMonitor();
    if (create)
    {
      if (startParams.getProperty(Property.CREATE_WITH_NO_LOG) == null)
        startParams.put(Property.CREATE_WITH_NO_LOG, "true");

      String localeID = startParams.getProperty(org.apache.derby.iapi.reference.Attribute.TERRITORY);

      if (localeID == null) {
        localeID = Locale.getDefault().toString();
      }
      databaseLocale = monitor.setLocale(startParams, localeID);

    } else {
      databaseLocale = monitor.getLocale(this);
    }
    setLocale(databaseLocale);

        normalizeToUpper = true;
       
View Full Code Here

  }

  public void boot(boolean create, Properties startParams)
    throws StandardException
  {
    ModuleFactory monitor = Monitor.getMonitor();
    if (create)
    {
      if (startParams.getProperty(Property.CREATE_WITH_NO_LOG) == null)
        startParams.put(Property.CREATE_WITH_NO_LOG, "true");

      String localeID =
                startParams.getProperty(
                    org.apache.derby.iapi.reference.Attribute.TERRITORY);

      if (localeID == null) {
        localeID = Locale.getDefault().toString();
      }
      databaseLocale = monitor.setLocale(startParams, localeID);

    } else {
      databaseLocale = monitor.getLocale(this);
    }
    setLocale(databaseLocale);

        normalizeToUpper = true;
       
View Full Code Here

    @return the value of the property or defaultValue if it does not exist.
  */
  public static String getSystemProperty(String key, String defaultValue) {

    ModuleFactory monitor = Monitor.getMonitorLite();

    String value = monitor.getJVMProperty(key);

    if (value == null) {

      Properties applicationProperties =
        monitor.getApplicationProperties();

      if (applicationProperties != null)
        value = applicationProperties.getProperty(key);
    }
    return value == null ? defaultValue : value;
View Full Code Here

  }

  public void boot(boolean create, Properties startParams)
    throws StandardException
  {
    ModuleFactory monitor = Monitor.getMonitor();
    if (create)
    {
      if (startParams.getProperty(Property.CREATE_WITH_NO_LOG) == null)
        startParams.put(Property.CREATE_WITH_NO_LOG, "true");

      String localeID =
                startParams.getProperty(
                    org.apache.derby.iapi.reference.Attribute.TERRITORY);

      if (localeID == null) {
        localeID = Locale.getDefault().toString();
      }
      databaseLocale = monitor.setLocale(startParams, localeID);

    } else {
      databaseLocale = monitor.getLocale(this);
    }
    setLocale(databaseLocale);     

    // boot the validation needed to do property validation, now property
    // validation is separated from AccessFactory, therefore from store
View Full Code Here

        // Generate a DECIMAL value represetentation of 0
        decimalImplementation = decimalImplementation.getNewNull();
        decimalImplementation.setValue(0L);
        NumberDataType.ZERO_DECIMAL = decimalImplementation;       

        ModuleFactory monitor = Monitor.getMonitor();
        //The Locale on monitor has already been set by the boot code in
        //BasicDatabase so we can simply do a get here.
        //This Locale will be either the Locale obtained from the territory
        //attribute supplied by the user on the JDBC url at database create
        //time or if user didn't provide the territory attribute at database
        //create time, then it will be set to the default JVM locale. The
        //Locale object will be used to construct the Collator object which
        //will be used if user has requested territory based collation.
        databaseLocale = monitor.getLocale(this);

        //If we are here for database create time, verify that there is
        //Collator support for the database's locale. If not, then we
        //will throw an exception.
        //Notice that this Collator support check is happening only during
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.monitor.ModuleFactory

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.