Examples of attach()

  • org.jboss.netty.channel.ChannelPipeline.attach()
    Attaches this pipeline to the specified {@link Channel} and{@link ChannelSink}. Once a pipeline is attached, it can't be detached nor attached again. @throws IllegalStateException if this pipeline is attached already
  • org.jooq.Attachable.attach()
    Attach this object to a new {@link Configuration}
  • org.ode4j.ode.DBallJoint.attach()
  • org.ode4j.ode.DJoint.attach()
  • org.osgi.service.device.Driver.attach()
    Attaches this Driver service to the Device service represented by the given {@code ServiceReference} object.

    A return value of {@code null} indicates that this Driver service hassuccessfully attached to the given Device service. If this Driver service is unable to attach to the given Device service, but knows of a more suitable Driver service, it must return the {@code DRIVER_ID} of thatDriver service. This allows for the implementation of referring drivers whose only purpose is to refer to other drivers capable of handling a given Device service.

    After having attached to the Device service, this driver may register the underlying device as a new service exposing driver-specific functionality.

    This method is called by the device manager. @param reference the {@code ServiceReference} object of the device toattach to @return {@code null} if this Driver service has successfully attached tothe given Device service, or the {@code DRIVER_ID} of a moresuitable driver @throws java.lang.Exception if the driver cannot attach to the givendevice and does not know of a more suitable driver

  • org.restlet.Router.attach()
  • org.restlet.routing.Router.attach()
    Attaches a target Restlet to this router with an empty URI pattern. A new route using the matching mode returned by {@link #getMatchingMode(Restlet)} will be added routing to the targetwhen any call is received. @param target The target Restlet to attach. @return The created route.
  • org.restlet.routing.VirtualHost.attach()
    Attaches a target Restlet to this router with an empty URI pattern. A new route will be added routing to the target when any call is received. In addition to super class behavior, this method will set the context of the target if it is empty by creating a protected context via the {@link Context#createChildContext()} method. @param target The target Restlet to attach. @return The created route.
  • org.serviceconnector.api.cln.SCClient.attach()
    Attach client to SC with default operation timeout.
    Attach starts the communication to the SC. Once an attach is called a detach must be done at the end of communication. @throws SCMPValidatorException port is not within limits 0 to 0xFFFF
    host is missing
    @throws SCServiceException instance already attached before
    attach to host failed
    error message received from SC
  • org.serviceconnector.api.cln.SCMgmtClient.attach()
  • org.waveprotocol.wave.client.wavepanel.view.AnchorView.attach()
    Attaches a thread at this anchor.
  • plotter.xy.SlopeLine.attach()
    Attaches this slope line to a plot. @param plot plot to attach to
  • plotter.xy.XYLocationDisplay.attach()
    Attaches the display to a plot. @param plot plot to display the coordinates of
  • sun.misc.Perf.attach()
    Attach to the instrumentation buffer for the specified Java virtual machine.

    This method will attach to the instrumentation buffer for the specified virtual machine. It returns a ByteBuffer object that is initialized to access the instrumentation buffer for the indicated Java virtual machine. The lvmid parameter is a integer value that uniquely identifies the target local Java virtual machine. It is typically, but not necessarily, the process id of the target Java virtual machine.

    If the lvmid identifies a Java virtual machine different from the one running this method, then the coherency characteristics of the buffer are implementation dependent. Implementations that do not support named, coherent, shared memory may return a ByteBuffer object that contains only a snap shot of the data in the instrumentation buffer. Implementations that support named, coherent, shared memory, may return a ByteBuffer object that will be changing dynamically over time as the target Java virtual machine updates its mapping of this buffer.

    If the lvmid is 0 or equal to the actual lvmid for the Java virtual machine running this method, then the returned ByteBuffer object will always be coherent and dynamically changing.

    The attach mode specifies the access permissions requested for the instrumentation buffer of the target virtual machine. The permitted access permissions are:

  • "r" - Read only access. This Java virtual machine has only read access to the instrumentation buffer for the target Java virtual machine.
  • "rw" - Read/Write access. This Java virtual machine has read and write access to the instrumentation buffer for the target Java virtual machine. This mode is currently not supported and is reserved for future enhancements. @param lvmid an integer that uniquely identifies thetarget local Java virtual machine. @param mode a string indicating the attach mode. @return ByteBuffer a direct allocated byte buffer @throws IllegalArgumentException The lvmid or mode was invalid. @throws IOException An I/O error occurred while trying to acquirethe instrumentation buffer. @throws OutOfMemoryError The instrumentation buffer could not be mappedinto the virtual machine's address space. @see java.nio.ByteBuffer
  • syn3d.nodes.java3d.SceneNodeJava3D.attach()
    Allow the scene to be displayed by attaching the main branchgroup

  • Examples of org.jboss.cache.aop.collection.AbstractCollectionInterceptor.attach()

                   }
                } else
                {
                   // Re-attach the interceptor to this fqn.
                   boolean copyToCache = true;
                   interceptor.attach(fqn, copyToCache);
                   internal_.putAopClazz(fqn, type.getType());
                   internal_.setPojo(fqn, obj);
                   return true; // we are done
                }
             }
    View Full Code Here

    Examples of org.jboss.cache.pojo.PojoCache.attach()

       public void bind(String id) throws Exception
       {
          MBeanServer server = (MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
          PojoCache cache = (PojoCache)server.getAttribute(new ObjectName("jboss.cache:service=testTreeCacheAop"),
                  "PojoCache");
          cache.attach(new Fqn(new Object[] {"sessions", id}).toString(), new CacheObject(id));
       }

       public void ejbCreate() throws CreateException
       {
       }
    View Full Code Here

    Examples of org.jboss.netty.channel.ChannelPipeline.attach()

            EasyMock.expect(channel.getRemoteAddress()).andReturn(remoteAddress).anyTimes();
            EasyMock.expect(channel.getPipeline()).andReturn(pipeline).anyTimes();
            EasyMock.expect(channel.getConfig()).andReturn(new DefaultChannelConfig()).anyTimes();
            EasyMock.replay(channel);

            pipeline.attach(channel, new AbstractChannelSink()
            {
                @Override
                public void eventSunk(ChannelPipeline pipeline, ChannelEvent e) { return; }
            });
        }
    View Full Code Here

    Examples of org.jooq.Attachable.attach()

            if (attachable instanceof Attachable && record instanceof AttachableInternal) {
                Attachable a = (Attachable) attachable;
                AttachableInternal r = (AttachableInternal) record;

                if (Utils.attachRecords(r.configuration())) {
                    a.attach(r.configuration());
                }
            }

            return attachable;
        }
    View Full Code Here

    Examples of org.ode4j.ode.DBallJoint.attach()

    //    attach vertical constraints
        for (int x = 0; x < width; x++) {
          for (int y = 0; y < height - 1; y++) {
            DBallJoint joint = joints[jointCounter];
            joint = OdeHelper.createBallJoint(env.getWorld());
            joint.attach(bodyMatrix[x][y],bodyMatrix[x][y + 1]);
            joint.setParam(DJoint.PARAM_N.dParamCFM1, cfmAng1);
            joint.setParam(DJoint.PARAM_N.dParamERP1, erpAng1);
            joint.setParam(DJoint.PARAM_N.dParamFMax1, fmaxAng1);
            jointCounter++;
          }
    View Full Code Here

    Examples of org.ode4j.ode.DJoint.attach()

            continue;
          }
          BodyPart bp = n.getContent();
          BodyPart bpPre = pre.getContent();
          DJoint j = OdeHelper.createBallJoint(env.getWorld());
          j.attach(bpPre.getBody(), bp.getBody());
        }
      }

      /* (non-Javadoc)
       * @see eas.simulation.spatial.sim3D.physicalSimulation.standardAgents.AbstractAgentLWJGLdrawable#isDrawableInLWJGL()
    View Full Code Here

    Examples of org.osgi.service.device.Driver.attach()

            Device device = tstCreateDevice( new String[]{ "org.apache.felix" } );
           

            Mockito.when( matched.match( m_osgi.getReference( device ) ) ).thenReturn( 10 );

            Mockito.when( matched.attach( Mockito.isA( ServiceReference.class ) ) )
              .thenAnswer( driver10_attach );

    //        for ( String driverId : driverIds )
    //        {
    //            Driver driver = drivers.get( driverId );
    View Full Code Here

    Examples of org.restlet.Router.attach()

      @Override
      public Restlet createRoot()
      {
        Router router = new Router(getContext());
        router.setDefaultMatchingMode(Template.MODE_EQUALS);
        router.attach("/clusters", ClustersResource.class);
        router.attach("/clusters/{clusterName}", ClusterResource.class);
        router.attach("/clusters/{clusterName}/resourceGroups", ResourceGroupsResource.class);
        router.attach("/clusters/{clusterName}/resourceGroups/{resourceName}", ResourceGroupResource.class);
        router.attach("/clusters/{clusterName}/instances", InstancesResource.class);
        router.attach("/clusters/{clusterName}/instances/{instanceName}", InstanceResource.class);
    View Full Code Here

    Examples of org.restlet.routing.Router.attach()

      }

      protected Restlet createRootRouter(Context c) {
        Router router = new Router(c);
        router.setDefaultMatchingMode(Template.MODE_STARTS_WITH);
        router.attach("/" + PROTOCOL, ProtocolResource.class);
        router.attach("/" + SCHEMAS, SchemaResource.class);
        router.attach("/" + CONFIGURATIONS, createConfigurationsRouter(c));
        router.attach("/" + TEMPLATES, createTemplatesRouter(c));
        router.attach("/" + REPOSITORIES, createRepositoriesRouter(c));
        router.attach("/" + SESSION, createSessionPath(c));
    View Full Code Here

    Examples of org.restlet.routing.VirtualHost.attach()

             }
             UserGuard adminGuard = new UserGuard(childContext,ChallengeScheme.HTTP_BASIC,"Atom Administrator",service);
             adminGuard.getRequiredGroups().add(AuthService.ADMIN_GROUP);
             adminGuard.setNext(admin);
            
             vhost.attach("/admin",adminGuard);
            
          }
         
          admins = new HashMap<String,Restlet>();
          Restlet lastAdmin = null;
    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.