Package com.arjuna.ats.arjuna.gandiva

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


/*  92 */     if (objName != null)
/*     */     {
/*     */       try
/*     */       {
/*  96 */         ClassName semaphoreType = objName.getClassNameAttribute("SemaphoreType");
/*  97 */         ObjectName semaphoreName = objName.getObjectNameAttribute("SemaphoreName");
/*     */
/*  99 */         Object ptr = Inventory.inventory().createObjectName(semaphoreType, semaphoreName);
/*     */
/* 101 */         if ((ptr instanceof SemaphoreImple))
/* 102 */           this._imple = ((SemaphoreImple)ptr);
View Full Code Here


/*     */     {
/* 179 */       if (attr.charAt(0) == '%')
/*     */       {
/*     */         try
/*     */         {
/* 183 */           return new ObjectName(new String(attr.substring(1)));
/*     */         }
/*     */         catch (StringIndexOutOfBoundsException e)
/*     */         {
/* 187 */           throw new IOException("No ObjectName.");
/*     */         }
View Full Code Here

/*     */   }
/*     */
/*     */   public ObjectName uniqueObjectName() throws IOException
/*     */   {
/* 294 */     Uid uid = new Uid();
/* 295 */     ObjectName uniqueName = new ObjectName("JNS:" + uid.stringForm());
/*     */
/* 297 */     return uniqueName;
/*     */   }
View Full Code Here

/*     */     {
/* 244 */       if (attr.charAt(0) == '%')
/*     */       {
/*     */         try
/*     */         {
/* 248 */           return new ObjectName(new String(attr.substring(1)));
/*     */         }
/*     */         catch (StringIndexOutOfBoundsException e)
/*     */         {
/* 252 */           throw new IOException("No ObjectName.");
/*     */         }
View Full Code Here

/*     */   }
/*     */
/*     */   public ObjectName uniqueObjectName() throws IOException
/*     */   {
/* 454 */     Uid uid = new Uid();
/* 455 */     ObjectName uniqueName = new ObjectName("PNS:" + uid.stringForm());
/*     */
/* 457 */     return uniqueName;
/*     */   }
View Full Code Here

        }
    }

    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

  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 (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

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.