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.infoset.xml.xerces.XMLSchemaValidationFilter.attach()

             }
             public void attach(ItemDestination output) {
                this.output = output;
             }
          };
          validate.attach(checkValidity);
          checkValidity.attach(end);
          return validate;
       }
      
       public static String getStringAttribute(Request request, String name, String defaultValue)
    View Full Code Here

    Examples of org.jboss.aesh.console.ConsoleCommand.attach()

                    }
                    else if(output.getBuffer().equals("clear"))
                        exampleConsole.clear();
                    else if(output.getBuffer().startsWith("man")) {
                        //exampleConsole.attachProcess(test);
                        test.attach(output);
                    }
                    else if(output.getBuffer().startsWith("login")) {
                        exampleConsole.setConsoleCallback(passwordCallback);
                        exampleConsole.setPrompt(new Prompt("Username: "));
                    }
    View Full Code Here

    Examples of org.jboss.aesh.extensions.choice.MultipleChoiceCommand.attach()

                        catch (IllegalArgumentException iae) {
                            exampleConsole.pushToStdOut(iae.getMessage());
                        }
                    }
                    if(line.startsWith("choice")) {
                        choice.attach(consoleOutput);
                    }
                    if(line.trim().startsWith("less")) {
                        //is it getting input from pipe
                        if(consoleOutput.getStdOut() != null &&
                                consoleOutput.getStdOut().length() > 0) {
    View Full Code Here

    Examples of org.jboss.aesh.extensions.harlem.Harlem.attach()

        @Override
        public Result execute(UIContext context) throws Exception {
            if(context instanceof ShellContext) {
                Console console = ((ShellContext) context).getProvider().getConsole();
                Harlem harlem = new Harlem(console);
                harlem.attach(((ShellContext) context).getConsoleOutput());
            }
            return Results.success();
        }
    }
    View Full Code Here

    Examples of org.jboss.aesh.extensions.less.Less.attach()

                    if(line.trim().startsWith("less")) {
                        //is it getting input from pipe
                        if(consoleOutput.getStdOut() != null &&
                                consoleOutput.getStdOut().length() > 0) {
                            less.setInput(consoleOutput.getStdOut());
                            less.attach(consoleOutput);

                        }
                        else if(line.length() > "less".length()) {
                            File f = new File(Parser.switchEscapedSpacesToSpacesInWord(line.substring("less ".length())).trim());
                            if(f.isFile()) {
    View Full Code Here

    Examples of org.jboss.aesh.extensions.manual.Man.attach()

                    if(line.startsWith("man")) {
                        //exampleConsole.attachProcess(test);
                        //man.setCurrentManPage("test");
                        try {
                        man.setFile("/tmp/test.txt.gz");
                        man.attach(consoleOutput);
                        }
                        catch (IllegalArgumentException iae) {
                            exampleConsole.pushToStdOut(iae.getMessage());
                        }
                    }
    View Full Code Here

    Examples of org.jboss.aesh.extensions.more.More.attach()

                    if(line.startsWith("more")) {
                        if(consoleOutput.getStdOut() != null &&
                                consoleOutput.getStdOut().length() > 0) {
                            more.setInput(consoleOutput.getStdOut());
                            more.attach(consoleOutput);

                        }
                        else {
                            File f = new File(Parser.switchEscapedSpacesToSpacesInWord(line.substring("more ".length())).trim());
                            if(f.isFile()) {
    View Full Code Here

    Examples of org.jboss.as.process.protocol.Connection.attach()

                try {
                    os.write(Protocol.AUTH);
                    os.write(1);
                    os.write(authCode);
                    final ProcessControllerClient processControllerClient = new ProcessControllerClient(connection);
                    connection.attach(processControllerClient);
                    CLIENT_LOGGER.trace("Sent initial greeting message");
                    os.close();
                    ok = true;
                    return processControllerClient;
                } finally {
    View Full Code Here

    Examples of org.jboss.as.protocol.Connection.attach()

                try {
                    os.write(Protocol.AUTH);
                    os.write(1);
                    os.write(authCode);
                    final ProcessControllerClient processControllerClient = new ProcessControllerClient(connection);
                    connection.attach(processControllerClient);
                    log.trace("Sent initial greeting message");
                    os.close();
                    ok = true;
                    return processControllerClient;
                } finally {
    View Full Code Here

    Examples of org.jboss.as.protocol.old.Connection.attach()

                try {
                    os.write(Protocol.AUTH);
                    os.write(1);
                    os.write(authCode);
                    final ProcessControllerClient processControllerClient = new ProcessControllerClient(connection);
                    connection.attach(processControllerClient);
                    log.trace("Sent initial greeting message");
                    os.close();
                    ok = true;
                    return processControllerClient;
                } finally {
    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.