Examples of BindingKey


Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

    public GetBindingResults getBinding(long nodeId, String name) {
  NodeInfo nodeInfo = nodeCallStarted(nodeId);
  try {
      checkNull("name", name);
      GetBindingResults results = null;
      BindingKey nextNameKey = null;
      /*
       * Since the implementation doesn't have range locking, find the
       * next key, lock it, and confirm that it is indeed the next key
       * after locking it, repeating as necessary.
       */
 
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

    {
  NodeInfo nodeInfo = nodeCallStarted(nodeId);
  try {
      checkNull("name", name);
      GetBindingForUpdateResults results = null;
      BindingKey key = null;
      for (int i = 0; true; i++) {
    if (i > MAX_RANGE_LOCK_RETRIES) {
        throw new ResourceUnavailableException("Too many retries");
    }
    DbTransaction txn = env.beginTransaction(txnTimeout);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

    {
  NodeInfo nodeInfo = nodeCallStarted(nodeId);
  try {
      checkNull("name", name);
      GetBindingForRemoveResults results = null;
      BindingKey nameKey = BindingKey.get(name);
      BindingKey nextNameKey = null;
      for (int i = 0; true; i++) {
    if (i > MAX_RANGE_LOCK_RETRIES) {
        throw new ResourceUnavailableException("Too many retries");
    }
    DbTransaction txn = env.beginTransaction(txnTimeout);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

    @Override
    public NextBoundNameResults nextBoundName(long nodeId, String name) {
  NodeInfo nodeInfo = nodeCallStarted(nodeId);
  try {
      NextBoundNameResults results = null;
      BindingKey nextNameKey = null;
      for (int i = 0; true; i++) {
    if (i > MAX_RANGE_LOCK_RETRIES) {
        throw new ResourceUnavailableException("Too many retries");
    }
    DbTransaction txn = env.beginTransaction(txnTimeout);
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

      throw new IllegalArgumentException(
          "The name values must not be less than -1");
        }
        String nextName = cursor.findNext(encodeString(name))
      ? decodeString(cursor.getKey()) : null;
        BindingKey nextKey = BindingKey.getAllowLast(nextName);
        if (value != -1) {
      /* Set -- next name must be write locked */
      checkLocked(nodeInfo, nextKey, true);
      if (!name.equals(nextName)) {
          lock(nodeInfo, BindingKey.get(name), true,
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

    new CacheConsistencyException(e.getMessage(), e);
      logger.logThrow(WARNING, exception, "Cache consistency failure");
      throw exception;
  }
  try {
      BindingKey nameKey = BindingKey.getAllowLast(name);
      checkLocked(nodeInfo, nameKey, false);
      releaseLock(nodeInfo, nameKey, "evict");
  } finally {
      nodeCallFinished(nodeInfo);
  }
View Full Code Here

Examples of com.sun.sgs.impl.service.data.store.cache.BindingKey

    new CacheConsistencyException(e.getMessage(), e);
      logger.logThrow(WARNING, exception, "Cache consistency failure");
      throw exception;
  }
  try {
      BindingKey nameKey = BindingKey.getAllowLast(name);
      checkLocked(nodeInfo, nameKey, true);
      downgradeLock(nodeInfo, nameKey, "downgrade");
  } finally {
      nodeCallFinished(nodeInfo);
  }
View Full Code Here

Examples of org.apache.juddi.datatype.BindingKey

    Vector keyVector = request.getBindingKeyVector();
    if ((keyVector!=null) && (keyVector.size() > 0))
    {
      handler = maker.lookup(BindingKeyHandler.TAG_NAME);
      for (int i=0; i<keyVector.size(); i++)
        handler.marshal(new BindingKey((String)keyVector.elementAt(i)),element);
    }

    parent.appendChild(element);
  }
View Full Code Here

Examples of org.apache.juddi.datatype.BindingKey

    authInfo.setValue("6f157513-844e-4a95-a856-d257e6ba9726");

    DeleteBinding service = new DeleteBinding();
    service.setAuthInfo(authInfo);
    service.addBindingKey("1bd50f65-9671-41ae-8d13-b3b5a5afcda0");
    service.addBindingKey(new BindingKey("1fbe67e6-f8b5-4743-a23f-9c13e4273d9f"));

    System.out.println();

    RegistryObject regObject = service;
    handler.marshal(regObject,parent);
View Full Code Here

Examples of org.apache.juddi.datatype.BindingKey

    Vector keyVector = request.getBindingKeyVector();
    if ((keyVector!=null) && (keyVector.size() > 0))
    {
      handler = maker.lookup(BindingKeyHandler.TAG_NAME);
      for (int i=0; i<keyVector.size(); i++)
        handler.marshal(new BindingKey((String)keyVector.elementAt(i)),element);
    }

    parent.appendChild(element);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.