Examples of stringify()


Examples of com.sun.appserv.management.util.stringifier.ArrayStringifier.stringify()

        }
        else if ( attrs.size() != readableInfos.length )
        {
          // mismatch between claimed number of attributes and actual
          final ArrayStringifier  as  = new ArrayStringifier( ", ", true );
          final String claimedString  = as.stringify( attrNames );
         
          final Set<String>  actualSet  = JMXUtil.attributeListToValueMap( attrs ).keySet();
          final Set<String>  missingSet  = ArrayConversion.arrayToSet( attrNames );
          missingSet.removeAll( actualSet );
         
View Full Code Here

Examples of com.sun.cli.jmx.support.InvokeResultIteratorStringifier.stringify()

      println( "No objects match the targets " + SmartStringifier.toString( targets ) );
    }
    else
    {
      final InvokeResultIteratorStringifier  s  = new InvokeResultIteratorStringifier( "\n" );
      println( s.stringify( Arrays.asList( results ).iterator() ) );
    }
  }
}
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IOR.stringify()

        checkShutdownState();

        // Handle the null objref case
        if (obj == null) {
            IOR nullIOR = IORFactories.makeIOR( this ) ;
            return nullIOR.stringify();
        }

        IOR ior = null ;

        try {
View Full Code Here

Examples of com.sun.corba.se.spi.ior.IOR.stringify()

                // Do not wrap and log this, since it was already logged at its
                // point of origin.
                throw bp ;
        }

        return ior.stringify() ;
    }

    /**
     * Convert a stringified object reference to the object it represents.
     * @param str The stringified object reference.
View Full Code Here

Examples of org.apache.helix.api.id.ClusterId.stringify()

    boolean connected = _zkclient.waitUntilConnected(30000, TimeUnit.MILLISECONDS);
    if (!connected) {
      LOG.warn("Connection not established");
      return;
    }
    HelixDataAccessor helixAccessor = new ZKHelixDataAccessor(clusterId.stringify(), _baseAccessor);
    ClusterAccessor accessor = new ClusterAccessor(clusterId, helixAccessor);

    // create a cluster
    boolean created = createCluster(clusterId, accessor, MODIFIER, 1);
    Assert.assertTrue(created);
View Full Code Here

Examples of org.apache.helix.api.id.ClusterId.stringify()

    if (!connected) {
      LOG.warn("Connection not established");
      return;
    }
    BaseDataAccessor<ZNRecord> baseAccessor = new ZkBaseDataAccessor<ZNRecord>(_zkclient);
    HelixDataAccessor helixAccessor = new ZKHelixDataAccessor(clusterId.stringify(), baseAccessor);
    ClusterAccessor accessor = new ClusterAccessor(clusterId, helixAccessor);

    // create the cluster
    boolean clusterCreated = createCluster(clusterId, accessor, MODIFIER, 0);
    Assert.assertTrue(clusterCreated);
View Full Code Here

Examples of org.apache.helix.api.id.ClusterId.stringify()

  @Test
  public void testClusterUpdates() {
    final ClusterId clusterId = ClusterId.from("TestAtomicAccessors!testCluster");
    final HelixDataAccessor helixAccessor =
        new ZKHelixDataAccessor(clusterId.stringify(), _baseAccessor);
    final LockProvider lockProvider = new LockProvider();
    final String key1 = "key1";
    final String key2 = "key2";

    // set up the cluster (non-atomically since this concurrency comes later)
View Full Code Here

Examples of org.apache.helix.api.id.ControllerId.stringify()

    // check leader znode exists
    HelixDataAccessor accessor = connection.createDataAccessor(clusterId);
    PropertyKey.Builder keyBuilder = accessor.keyBuilder();
    LiveInstance leader = accessor.getProperty(keyBuilder.controllerLeader());
    Assert.assertNotNull(leader);
    Assert.assertEquals(leader.getInstanceName(), controllerId.stringify());

    // stop participant
    controller.stop();

    // check leader znode is gone
View Full Code Here

Examples of org.apache.helix.api.id.ControllerId.stringify()

    final HelixDataAccessor accessor =
        new ZKHelixDataAccessor(clusterName, _baseAccessor);
    final PropertyKey.Builder keyBuilder = accessor.keyBuilder();
    LiveInstance leader = accessor.getProperty(keyBuilder.controllerLeader());
    Assert.assertNotNull(leader);
    Assert.assertEquals(leader.getInstanceName(), controllerId.stringify());

    // remove leader znode externally
    accessor.removeProperty(keyBuilder.controllerLeader());

    // verify leader is re-elected
View Full Code Here

Examples of org.apache.helix.api.id.ControllerId.stringify()

        LiveInstance leader = accessor.getProperty(keyBuilder.controllerLeader());
        if (leader == null) {
          return false;
        }

        return leader.getInstanceName().equals(controllerId.stringify());
      }
    }, 3 * 1000);

    Assert.assertTrue(result, "Fail to re-elect a new leader");

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.