Package org.deuce.transaction

Examples of org.deuce.transaction.AbstractContext


  private String id;
     
  public BankAccount(String id) {
    this.id = id;
   
    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here


 
  public Node(String id, Integer value) {
    this.id = id;
    this.value = value;
   
    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here

    this.id = id;
    this.price = price;
    this.total = INITIAL;
    this.used = 0;
   
    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here

  private List<String> reservations = new LinkedList<String>();
 
  public Customer(String id){
    this.id = id;
   
    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here

    this.id = id;
    this.resourceid = resourceid;
    this.price = price;
    this.type = type;
   
    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here

 
  public Node(String id, Integer value) {
    this.id = id;
    this.value = value;

    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here

    private String id;
   
  public LoanAccount(String id) {
    this.id = id;
   
    AbstractContext context = ContextDelegator.getInstance();
    if(context.getContextId()==null)
      new GlobalObject(this, ((AbstractDistinguishable)this).getId())// publish it now 
    else
      context.newObject(this)// add it to context publish-set
  }
View Full Code Here

        LockTable.setRemote(object);
      else
        Logger.debug("Refuse.. " + object);
      result.put(hashcode, new Object[]{object, senderClock});
     
      AbstractContext context = pendingContexts.remove(hashcode);
      if(context!=null)
        synchronized(context){
          Logger.debug("signal.");
          context.notifyAll()
        }
      else
        System.err.println("How? " + Arrays.toString(pendingContexts.values().toArray()));
    }
View Full Code Here

        LockTable.setRemote(object);
      else
        Logger.debug("Refuse.. " + object);
      result.put(hashcode, new Object[]{object, senderClock, ResSec, ResnSec, EarlierTxPresent});
     
      AbstractContext context = pendingContexts.remove(hashcode);
      if(context!=null) {
        synchronized(context){
          Logger.debug("signal.");
          context.notifyAll();
        }
      }
      else
        System.err.println("How? " + Arrays.toString(pendingContexts.values().toArray()));
    }
View Full Code Here

      Logger.debug("Refuse.. " + object);
    TrackerDirectory.repliesQueue.put(contextHashcode, new Object[]{
        object,
        senderClock
    });
    AbstractContext context = TrackerDirectory.pendingContexts.remove(contextHashcode);
    if(context!=null)
      synchronized(context){
        Logger.debug("signal.");
        context.notifyAll()
      }
    else
      System.err.println("How? " + Arrays.toString(TrackerDirectory.pendingContexts.values().toArray()));
  }
View Full Code Here

TOP

Related Classes of org.deuce.transaction.AbstractContext

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.