Examples of Container


Examples of org.apache.commons.jxpath.Container

        return getExpressionValue(context, expression);
    }

    private JXPathContext createContextForXml(final Document document)
    {
        Container container = new Container()
        {

            public Object getValue()
            {
                return document;
View Full Code Here

Examples of org.apache.hadoop.yarn.api.records.Container

    return applicationId;
  }

  public static Container getMockContainer(ContainerId containerId, NodeId nodeId, Resource resource,
      Priority priority) {
    Container container = mock(Container.class);
    when(container.getId()).thenReturn(containerId);
    when(container.getNodeId()).thenReturn(nodeId);
    when(container.getResource()).thenReturn(resource);
    when(container.getPriority()).thenReturn(priority);
    return container;
  }
View Full Code Here

Examples of org.apache.hadoop.yarn.server.nodemanager.containermanager.container.Container

      SingleArcTransition<ApplicationImpl, ApplicationEvent> {
    @Override
    public void transition(ApplicationImpl app, ApplicationEvent event) {
      ApplicationContainerInitEvent initEvent =
        (ApplicationContainerInitEvent) event;
      Container container = initEvent.getContainer();
      app.containers.put(container.getContainerId(), container);
      LOG.info("Adding " + container.getContainerId()
          + " to application " + app.toString());
     
      switch (app.getApplicationState()) {
      case RUNNING:
        app.dispatcher.getEventHandler().handle(new ContainerInitEvent(
            container.getContainerId()));
        break;
      case INITING:
      case NEW:
        // these get queued up and sent out in AppInitDoneTransition
        break;
View Full Code Here

Examples of org.apache.openejb.Container

        }

        for (CoreDeploymentInfo deployment : deployments) {
            String deploymentID = deployment.getDeploymentID() + "";
            try {
                Container container = deployment.getContainer();
                container.undeploy(deployment);
                deployment.setContainer(null);
            } catch (Throwable t) {
                undeployException.getCauses().add(new Exception("bean: " + deploymentID + ": " + t.getMessage(), t));
            } finally {
                deployment.setDestroyed(true);
View Full Code Here

Examples of org.apache.openejb.config.sys.Container

        assertNotNull(defaultStatelessContainer.className);
        assertNotNull(defaultStatelessContainer.constructorArgs);
        assertNotNull(defaultStatelessContainer.properties);

        // We should be able to create one of these with a different name
        Container container = new Container("My Stateless Container");
        StatelessSessionContainerInfo myStatelessContainer = factory.configureService(container, StatelessSessionContainerInfo.class);

        assertNotNull(myStatelessContainer);
        assertEquals("My Stateless Container", myStatelessContainer.id);
        assertEquals(defaultStatelessContainer.className, myStatelessContainer.className);
View Full Code Here

Examples of org.apache.pivot.wtk.Container

    @Override
    public void install(Component component) {
        super.install(component);

        Container container = (Container)component;

        // Add this as a container listener
        container.getContainerListeners().add(this);
        container.getContainerMouseListeners().add(this);

        // Set the focus traversal policy
        container.setFocusTraversalPolicy(DEFAULT_FOCUS_TRAVERSAL_POLICY);
    }
View Full Code Here

Examples of org.apache.qpid.amqp_1_0.transport.Container

    protected abstract void run();


    public Connection newConnection() throws ConnectionException
    {
        Container container = getContainerName() == null ? new Container() : new Container(getContainerName());
        return getUsername() == null ? new Connection(getHost(), getPort(), null, null, _frameSize, container,
                                                      _remoteHost == null ? getHost() : _remoteHost, _useSSL,
                                                      0)
                                     : new Connection(getHost(), getPort(), getUsername(), getPassword(), _frameSize,
                                                      container, _remoteHost == null ? getHost() : _remoteHost, _useSSL,
View Full Code Here

Examples of org.apache.struts2.jquery.components.Container

  @Override
    protected void populateParams() {
       
    super.populateParams();

        Container container = (Container) component;
        container.setReloadTopics(reloadTopics);
        container.setOnAlwaysTopics(onAlwaysTopics);
        container.setOnBeforeTopics(onBeforeTopics);
        container.setOnCompleteTopics(onCompleteTopics);
        container.setOnErrorTopics(onErrorTopics);
        container.setOnSuccessTopics(onSuccessTopics);
        container.setSrc(src);
        container.setLoadingText(loadingText);
        container.setErrorText(errorText);
        container.setIndicatorId(indicatorId);
        container.setElementIds(elementIds);
        container.setFormIds(formIds);
        container.setPollMillis(pollMillis);
    }
View Full Code Here

Examples of org.apache.tomcat.Container

     *
     * @param container The newly associated Container
     */
    public void setContainer(Container container) {

  Container oldContainer = this.container;
  this.container = container;
  support.firePropertyChange("container", oldContainer, this.container);

    }
View Full Code Here

Examples of org.apache.tomcat.core.Container

      if( cm==null )
    throw new JspException( "Can't find context manager" );

      Context ctx=(Context)pageContext.getAttribute("ctx");

      Container ct=(ctx==null)? cm.getContainer():ctx.getContainer();
      BaseInterceptor bi[]=ct.getInterceptors();
      BaseInterceptor found=null;
      for( int i=0; i<bi.length; i++ ) {
    String cn=bi[i].getClass().getName();
    if( cn.equals( moduleName )) {
        found=bi[i];
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.