Examples of Instance


Examples of org.netbeans.lib.profiler.heap.Instance

    private void updateKnownMap(Cluster cluster) {
        RefSet marked = cluster.objects;
        for(Long id: marked.ones()) {
            if (knownRefs.getAndSet(id, true)) {
                Instance i = heap.getInstanceByID(id);
                sharedErrorMargin += i.getSize();
                if (!sharedRefs.getAndSet(id, true)) {
                    sharedErrorMargin += i.getSize();
                    sharedSummary.accumulate(i);
                }
            }
        }
    }
View Full Code Here

Examples of org.openoffice.xforms.Instance

        m_formLayer = new FormLayer( m_document );

        // create a simple structure in the DOM tree: an element with two attributes
        String[] modelNames = m_document.getXFormModelNames();
        m_defaultModel = m_document.getXFormModel( modelNames[0] );
        Instance defaultInstance = m_defaultModel.getDefaultInstance();
        XNode stringElement = defaultInstance.createElement( "stringElement" );
        XNode booleanAttrib = defaultInstance.createAttribute( stringElement, "booleanAttribute", "true" );
        XNode dateAttrib = defaultInstance.createAttribute( stringElement, "dateAttribute" );

        assure( "booleanAttrib's parent is wrong",
            UnoRuntime.areSame( stringElement, booleanAttrib.getParentNode() ) );
        assure( "dateAttrib's parent is wrong",
            UnoRuntime.areSame( stringElement, dateAttrib.getParentNode() ) );
View Full Code Here

Examples of org.openquark.cal.internal.javamodel.JavaExpression.JavaField.Instance

     * @see org.openquark.cal.internal.runtime.lecc.JavaModelVisitor#visitInstanceFieldExpression(org.openquark.cal.internal.runtime.lecc.JavaExpression.JavaField.Instance, java.lang.Object)
     */
    public JavaExpression visitInstanceFieldExpression(Instance instanceField,
            T arg) {
        if (instanceField.getInstance() != null) {
            return new Instance (
                    (JavaExpression)instanceField.getInstance().accept(this, arg),
                    instanceField.getFieldName(),
                    instanceField.getFieldType());
        } else {
            return new Instance (
                    null,
                    instanceField.getFieldName(),
                    instanceField.getFieldType());
           
        }
View Full Code Here

Examples of org.perl6.metamodel.Instance

        imeths.put("baz", m1);
        inst.put("methods", imeths);
               
        options.put("instance", inst);
        Class Foo = new Class("Foo", options);
        foo = new Instance(Foo);
    }
View Full Code Here

Examples of org.wso2.carbon.ec2client.data.Instance

        }
    }

    public void testRebootInstance() throws EC2Exception {
        List<Instance> ec2Instances = client.runInstances(amiID, 1, null, null, null, null, null, null);
        Instance instance = ec2Instances.get(0);

        // Wait till the instance is running
        while (!instance.getCurrentState().equals(InstanceState.RUNNING)) {
            try {
                Thread.sleep(5000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            instance = client.describeInstance(instance.getInstanceId());
        }

        // Now reboot it
        boolean result = client.rebootInstances(new String[]{instance.getInstanceId()});
        assertTrue(result);

        instance = client.describeInstance(instance.getInstanceId());
        System.out.println("STATE=" + instance.getCurrentState());

        // Finally shut it down
        List<Instance> instances =
                client.terminateInstances(new String[]{instance.getInstanceId()});
        assertEquals(instances.size(), 1);
        assertEquals(instances.get(0).getCurrentState(), InstanceState.SHUTTING_DOWN);
    }
View Full Code Here

Examples of shared.Instance

    for (PerformanceTuple perfTuple : trainingData) {

      Set<String> setAttribs = new HashSet<>();

      Instance instance = new Instance(instances.get_schema());

      MLJUtils.setAttributeValues(instance, attrMap,
          perfTuple.getConfiguration());
      setAttribs.addAll(perfTuple.getConfiguration().keySet());
View Full Code Here

Examples of ssv.interaction.model.Instance

  private Instance target;
  private Instance result;
  private static Map<String, Instance> idInstanceMap = new HashMap<String, Instance>();

  private Instance setupInstance(SymbolicInstance<?> spoonSymbolicInstance) {
    Instance instance = null;
    if (spoonSymbolicInstance != null) {
      String callerId = spoonSymbolicInstance.getId();
      instance = idInstanceMap.get(callerId);
      if (instance == null) {
        instance = new SpoonInstanceAdapter(spoonSymbolicInstance);
        idInstanceMap.put(callerId, instance);
      }
    } else {
      instance = idInstanceMap.get(UnknownInstance.UNKNOWN_INSTANCE_ID_STRING);
      if (instance == null) {
        instance = new UnknownInstance(null);
        idInstanceMap.put(instance.getId(), instance);
      }
    }
    return instance;
  }
View Full Code Here

Examples of sun.jvm.hotspot.oops.Instance

            return (genSig != null)? genSig.asString() : null;
        }
    }

    public ClassLoaderReference classLoader() {
      Instance xx = (Instance)(((InstanceKlass)saKlass).getClassLoader());
      return (ClassLoaderReferenceImpl)vm.classLoaderMirror(xx);
    }
View Full Code Here

Examples of sun.security.jca.GetInstance.Instance

     *
     * @since 1.2
     */
    public static SecureRandom getInstance(String algorithm)
      throws NoSuchAlgorithmException {
  Instance instance = GetInstance.getInstance("SecureRandom",
      SecureRandomSpi.class, algorithm);
  return new SecureRandom((SecureRandomSpi)instance.impl,
      instance.provider, algorithm);
    }
View Full Code Here

Examples of sun.security.jca.GetInstance.Instance

     *
     * @since 1.2
     */
    public static SecureRandom getInstance(String algorithm, String provider)
      throws NoSuchAlgorithmException, NoSuchProviderException {
  Instance instance = GetInstance.getInstance("SecureRandom",
      SecureRandomSpi.class, algorithm, provider);
  return new SecureRandom((SecureRandomSpi)instance.impl,
      instance.provider, algorithm);
    }
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.