Package com.arjuna.ats.arjuna.gandiva.nameservice

Examples of com.arjuna.ats.arjuna.gandiva.nameservice.NameService


public class JNSTest
{
   
public static void main (String[] args)
    {
  NameService nameService = new NameService(ArjunaNames.Implementation_NameService_JNS());

  try
  {
      String longAttr = new String("LONG");
      long lvalue = nameService.getLongAttribute(null, longAttr);

      System.out.println("Long value: "+lvalue);

      String stringAttr = new String("STRING");
      String svalue = nameService.getStringAttribute(null, stringAttr);

      System.out.println("String value: "+svalue);
  }
  catch (IOException e)
  {
View Full Code Here


  if (objectName._mech != null)
  {
      _mech = new String(objectName._mech);

      if (objectName._nameService != null)
    _nameService = new NameService(objectName._nameService);
  }

  if (objectName._name != null)
      _name = new String(objectName._name);
View Full Code Here

     * specified.
     */

public static ObjectName uniqueObjectName (String mech) throws NullPointerException, IOException
    {
  NameService nameService = null;
  ObjectName objectName = ObjectName.invalid();

  if ((mech != null) && (mech.compareTo(_invalidString) != 0))
  {
      String nameServiceMech = mech + nameServiceString;
      ClassName nameServiceMechClassName = new ClassName(nameServiceMech);
      nameService = NameService.create(nameServiceMechClassName);

      if (nameService != null)
    objectName = nameService.uniqueObjectName();
     
      nameService = null;
  }

  return objectName;
View Full Code Here

/*     */   }
/*     */
/*     */   public static ObjectName uniqueObjectName(String mech)
/*     */     throws NullPointerException, IOException
/*     */   {
/* 377 */     NameService nameService = null;
/* 378 */     ObjectName objectName = invalid();
/*     */
/* 380 */     if ((mech != null) && (mech.compareTo("invalid") != 0))
/*     */     {
/* 382 */       String nameServiceMech = mech + "NameServiceImple";
/* 383 */       ClassName nameServiceMechClassName = new ClassName(nameServiceMech);
/* 384 */       nameService = NameService.create(nameServiceMechClassName);
/*     */
/* 386 */       if (nameService != null) {
/* 387 */         objectName = nameService.uniqueObjectName();
/*     */       }
/* 389 */       nameService = null;
/*     */     }
/*     */
/* 392 */     return objectName;
View Full Code Here

/* 408 */     if (objectName._mech != null)
/*     */     {
/* 410 */       this._mech = new String(objectName._mech);
/*     */
/* 412 */       if (objectName._nameService != null) {
/* 413 */         this._nameService = new NameService(objectName._nameService);
/*     */       }
/*     */     }
/* 416 */     if (objectName._name != null) {
/* 417 */       this._name = new String(objectName._name);
/*     */     }
View Full Code Here

     * specified.
     */

public static ObjectName uniqueObjectName (String mech) throws NullPointerException, IOException
    {
  NameService nameService = null;
  ObjectName objectName = ObjectName.invalid();

  if ((mech != null) && (mech.compareTo(_invalidString) != 0))
  {
      String nameServiceMech = mech + nameServiceString;
      ClassName nameServiceMechClassName = new ClassName(nameServiceMech);
      nameService = NameService.create(nameServiceMechClassName);

      if (nameService != null)
    objectName = nameService.uniqueObjectName();
     
      nameService = null;
  }

  return objectName;
View Full Code Here

  if (objectName._mech != null)
  {
      _mech = new String(objectName._mech);

      if (objectName._nameService != null)
    _nameService = new NameService(objectName._nameService);
  }

  if (objectName._name != null)
      _name = new String(objectName._name);
View Full Code Here

TOP

Related Classes of com.arjuna.ats.arjuna.gandiva.nameservice.NameService

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.