Package com.arjuna.ats.arjuna.gandiva

Examples of com.arjuna.ats.arjuna.gandiva.ObjectName


        }
    }

    private ObjectName getObjectName(ObjectStore os)
    {
        ObjectName name = new ObjectName("PNS:");

        try
        {
            name.setClassNameAttribute(Environment.OBJECTSTORE_TYPE, os.className());
            name.setStringAttribute(ArjunaNames.StateManager_objectStoreRoot(), os.storeRoot());
        }
        catch (java.io.IOException e)
        {
            // Ignore
        }
View Full Code Here


        return "/Transaction/";
    }

    private ObjectName getObjectName(ObjectStore os) //XXX
    {
        ObjectName name = new ObjectName("PNS:");

        try
        {
            name.setClassNameAttribute(Environment.OBJECTSTORE_TYPE, os.className());
            name.setStringAttribute(ArjunaNames.StateManager_objectStoreRoot(), os.storeRoot());
        }
        catch (java.io.IOException e)
        {
            // Ignore
        }
View Full Code Here

  if (objName != null)
  {
      try
      {
    ClassName semaphoreType = objName.getClassNameAttribute("SemaphoreType");
    ObjectName semaphoreName = objName.getObjectNameAttribute("SemaphoreName");
   
    Object ptr = Inventory.inventory().createObjectName(semaphoreType, semaphoreName);

    if (ptr instanceof SemaphoreImple)
        _imple = (SemaphoreImple) ptr;
View Full Code Here

  ClassName imple = ArjunaNames.Implementation_ObjectStore_defaultStore();
  String localOSRoot = "foo";
  String objectStoreDir = "/bar";
  String shareStatus = "OS_SHARED";

  ObjectName objName = new ObjectName("JNS:myname");

  try
  {
      objName.setClassNameAttribute(Environment.OBJECTSTORE_TYPE, imple);
      objName.setStringAttribute(Environment.LOCALOSROOT, localOSRoot);
      objName.setStringAttribute(Environment.OBJECTSTORE_DIR, objectStoreDir);
      objName.setStringAttribute(Environment.OBJECTSTORE_SHARE, shareStatus);
  }
  catch (Exception e)
  {
      e.printStackTrace(System.err);
      assertFailure();
View Full Code Here

  {
      if (attr.charAt(0) == JNS.OBJECTNAME)
      {
    try
    {
        return new ObjectName(new String(attr.substring(1)));
    }
    catch (StringIndexOutOfBoundsException e)
    {
        throw new IOException("No ObjectName.");
    }
View Full Code Here

    }
   
public ObjectName uniqueObjectName () throws IOException
    {
  Uid uid = new Uid();
  ObjectName uniqueName = new ObjectName(JNS.jnsName+uid.stringForm());

  return uniqueName;
    }
View Full Code Here

  {
      if (attr.charAt(0) == PNS.OBJECTNAME)
      {
    try
    {
        return new ObjectName(new String(attr.substring(1)));
    }
    catch (StringIndexOutOfBoundsException e)
    {
        throw new IOException("No ObjectName.");
    }
View Full Code Here

    }
   
public ObjectName uniqueObjectName () throws IOException
    {
  Uid uid = new Uid();
  ObjectName uniqueName = new ObjectName(PNS.pnsName+uid.stringForm());

  return uniqueName;
    }
View Full Code Here

/*     */     }
/*     */
/* 190 */     if (typeName == null) {
/* 191 */       typeName = getDefault();
/*     */     }
/* 193 */     ObjectName osObjName = null;
/*     */     try
/*     */     {
/* 197 */       osObjName = objName.getObjectNameAttribute(ArjunaNames.ObjectStore_implementationObjectName());
/*     */     }
/*     */     catch (Exception ex)
View Full Code Here

/* 1259 */     this.storeRoot = new String(rootName);
/*      */
/* 1261 */     if ((this.myType == 1) || (this.myType == 2))
/*      */     {
/* 1268 */       int sharedStatus = this.smAttributes.objectModel == 0 ? 14 : 13;
/* 1269 */       ObjectName osObjName = null;
/*      */
/* 1271 */       if (this.objectName != null)
/*      */       {
/*      */         try
/*      */         {
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.gandiva.ObjectName

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.