Package org.apache.derby.iapi.services.daemon

Examples of org.apache.derby.iapi.services.daemon.Serviceable


          if (!dbOnlyProperty && key.startsWith("derby.")) {
            if (PropertyUtil.whereSet(key, d) == PropertyUtil.SET_IN_JVM)
              continue;
          }

          Serviceable s;
          if ((s = psc.apply(key,value,d)) != null)
            ((TransactionManager) tc).addPostCommitWork(s);
          if (mappedValue == null)
             mappedValue = psc.map(key, value, d);
        }
View Full Code Here


  protected void serviceClient(ServiceRecord clientRecord)
  {
    clientRecord.serviced();

    Serviceable client = clientRecord.client;

    // client may have unsubscribed while it had items queued
    if (client == null)
      return;

    ContextManager cm = contextMgr;

    if (SanityManager.DEBUG)
    {
      SanityManager.ASSERT(cm != null, "Context manager is null");
      SanityManager.ASSERT(client != null, "client is null");
    }

    try
    {
      int status = client.performWork(cm);

      if (clientRecord.subscriber)
        return;

      if (status == Serviceable.REQUEUE)
      {
        List queue = client.serviceASAP() ? highPQ : normPQ;
        synchronized (this) {
          queue.add(clientRecord);

          if (SanityManager.DEBUG) {
View Full Code Here

          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p =
                    new ReclaimSpace(
                            ReclaimSpace.CONTAINER,
                            ckey,
                            this,
                            true /* service ASAP */);
 
View Full Code Here

          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p =
                    new ReclaimSpace(
                            ReclaimSpace.CONTAINER,
                            ckey,
                            this,
                            true /* service ASAP */);
 
View Full Code Here

          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p =
                    new ReclaimSpace(
                            ReclaimSpace.CONTAINER,
                            ckey,
                            this,
                            true /* service ASAP */);
 
View Full Code Here

    tran.logAndDo(new RemoveFileOperation(name, currentGenerationId, purgeOnCommit));

    if (purgeOnCommit) {

      Serviceable s = new RemoveFile(getAsFile(name, currentGenerationId));

      tran.addPostCommitWork(s);
    }
  }
View Full Code Here

          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p =
                    new ReclaimSpace(
                            ReclaimSpace.CONTAINER,
                            ckey,
                            this,
                            true /* service ASAP */);
 
View Full Code Here

          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p = new ReclaimSpace(ReclaimSpace.CONTAINER, ckey,
                         this, true /* service ASAP */);

        if (SanityManager.DEBUG)
                {
                    if (SanityManager.DEBUG_ON(DaemonService.DaemonTrace))
View Full Code Here

          containerHdl.preDirty(false);
        }


        // remember this as a post commit work item
        Serviceable p =
                    new ReclaimSpace(
                            ReclaimSpace.CONTAINER,
                            ckey,
                            this,
                            true /* service ASAP */);
 
View Full Code Here

                        factory.getRawStoreFactory(),
                        cm,
                        AccessFactoryGlobals.USER_TRANS_NAME);

        StorageFile ff = factory.storageFactory.newStorageFile(f);
        Serviceable s = new RemoveFile(ff);

        // Since this code is only used during upgrade to post-10.8 databases
        // we do no bother to build code for a special RemoveDirOperation and
        // do tran.logAndDo (cf. logic in #remove). If the post-commit removal
        // doesn't get completed, that is no big issue, the dirs can be removed
View Full Code Here

TOP

Related Classes of org.apache.derby.iapi.services.daemon.Serviceable

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.