Package com.orientechnologies.orient.core.OMemoryWatchDog

Examples of com.orientechnologies.orient.core.OMemoryWatchDog.Listener


  public void setMaxSize(final int iMaxSize) {
    maxSize = iMaxSize;
  }

  public void startup() {
    watchDogListener = Orient.instance().getMemoryWatchDog().addListener(new Listener() {
      /**
       * Auto reduce cache size of 50%
       */
      public void memoryUsageLow(TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM) {
View Full Code Here


  private volatile int                                            optimization    = 0;

  public OIndexMVRBTreeAbstract(final String iType) {
    type = iType;

    watchDog = new Listener() {
      public void memoryUsageLow(final TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM)
          optimization = 1;
      }
View Full Code Here

  private Listener                                                watchDog;

  public OIndexMVRBTreeAbstract(final String iType) {
    type = iType;

    watchDog = new Listener() {
      public void memoryUsageLow(final TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM) {
          if (map != null) {
            acquireExclusiveLock();
            try {
View Full Code Here

  public void setMaxSize(final int iMaxSize) {
    maxSize = iMaxSize;
  }

  public void startup() {
    watchDogListener = Orient.instance().getMemoryWatchDog().addListener(new Listener() {
      /**
       * Auto reduce cache size of 50%
       */
      public void memoryUsageLow(TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM) {
View Full Code Here

  private Listener                                                watchDog;

  public OIndexMVRBTreeAbstract(final String iType) {
    type = iType;

    watchDog = new Listener() {
      public void memoryUsageLow(final TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM) {
          if (map != null) {
            acquireExclusiveLock();
            try {
View Full Code Here

  private volatile int                                            optimization    = 0;

  public OIndexMVRBTreeAbstract(final String iType) {
    type = iType;

    watchDog = new Listener() {
      public void memoryUsageLow(final TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM)
          optimization = 1;
      }
View Full Code Here

  public void setMaxSize(final int iMaxSize) {
    maxSize = iMaxSize;
  }

  public void startup() {
    watchDogListener = Orient.instance().getMemoryWatchDog().addListener(new Listener() {
      /**
       * Auto reduce cache size of 50%
       */
      public void memoryUsageLow(TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM) {
View Full Code Here

  public void setMaxSize(final int iMaxSize) {
    maxSize = iMaxSize;
  }

  public void startup() {
    watchDogListener = Orient.instance().getMemoryWatchDog().addListener(new Listener() {
      /**
       * Auto reduce cache size of 50%
       */
      public void memoryUsageLow(TYPE iType, final long usedMemory, final long maxMemory) {
        if (iType == TYPE.JVM) {
View Full Code Here

TOP

Related Classes of com.orientechnologies.orient.core.OMemoryWatchDog.Listener

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.