Examples of ProfileListener


Examples of com.insightfullogic.honest_profiler.core.ProfileListener

    }

    public void poll() {
        Set<VirtualMachineDescriptor> current = new HashSet<>(com.sun.tools.attach.VirtualMachine.list());
        difference(current, previous, machine -> {
            ProfileListener profileListener = listener.onNewMachine(machine);
            if (machine.isAgentLoaded() && profileListener != null) {
                try {
                    conductor.pipeFile(machine.getLogFile(), machine, profileListener);
                } catch (IOException e) {
                    logger.error(e.getMessage(), e);
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.ProfileListener

    private void newMachine(WebSocketConnection connection, byte[] message) {
        try {
            Messages.NewMachine newMachine = Messages.NewMachine.parseFrom(message);
            VirtualMachine machine = new VirtualMachine(newMachine.getId(), newMachine.getDisplayName(), true, "");
            ProfileListener profileListener = listener.onNewMachine(machine);
            if (profileListener != null) {
                DataConsumer consumer = conductor.pipeData(machine, profileListener);
                machines.put(connection, consumer);
            }
        } catch (InvalidProtocolBufferException e) {
View Full Code Here

Examples of com.insightfullogic.honest_profiler.core.ProfileListener

            if (!logLocation.exists() || !logLocation.canRead()) {
                error.stream().println("Unable to find log file at: " + logLocation);
                return;
            }

            ProfileListener listener = ui;

            if (filterDescription != null) {
                ProfileFilter filter = new ProfileFilter();
                filter.updateFilters(filterDescription);
                listener = profile -> {
View Full Code Here

Examples of nz.govt.natlib.meta.config.ProfileListener

    configSelect.setModel(configModel);
    configSelect.setSelectedIndex(0);
    userModel = new DefaultComboBoxModel(Config.getInstance().getUsers());
    userSelect.setModel(userModel);
    getCurrentProfile();
    Config.getInstance().addProfileListener(new ProfileListener() {
      public void profileAdded(Profile profile) {
        getCurrentProfile();
      }

      public void profileRemoved(Profile profile) {
View Full Code Here

Examples of org.gradle.profile.ProfileListener

        }
        listenerManager.addListener(tracker);
        listenerManager.addListener(new BuildCleanupListener(serviceRegistry));

        if (startParameter.isProfile()) {
            listenerManager.addListener(new ProfileListener(requestMetaData.getBuildTimeClock().getStartTime()));
        }

        DefaultGradle gradle = new DefaultGradle(
                tracker.getCurrentBuild(),
                startParameter, serviceRegistry);
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.