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

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


  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 */);

        if (SanityManager.DEBUG)
                {
                    if (SanityManager.DEBUG_ON(DaemonService.DaemonTrace))
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

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.