Package org.jboss.arquillian.extension.byteman.impl.common

Examples of org.jboss.arquillian.extension.byteman.impl.common.ExecContext


    protected List<ExecContext> getExecContexts(Event event) {
        BytemanConfiguration config = BytemanConfiguration.from(descriptorInst.get());
        List<ExecContext> list = new ArrayList<>();
        if (config.clientAgentPort() == config.containerAgentPort()) {
            ExecContext context = new ExecContext(config.clientAgentPort(), EnumSet.complementOf(EnumSet.of(ExecType.CONTAINER)), config);
            list.add(context);
        } else {
            list.add(new ExecContext(config.clientAgentPort(), EnumSet.complementOf(EnumSet.of(ExecType.CONTAINER, ExecType.CLIENT_CONTAINER)), config));
            String address = readAddress(event);
            ExecContext remote;
            if (address != null) {
                remote = new ExecContext(address, config.containerAgentPort(), EnumSet.of(ExecType.CLIENT_CONTAINER), config);
            } else {
                remote = new ExecContext(config.containerAgentPort(), EnumSet.of(ExecType.CLIENT_CONTAINER), config);
            }
            list.add(remote);
        }
        return list;
    }
View Full Code Here


        );
    }

    protected List<ExecContext> getExecContexts(Event event) {
        BytemanConfiguration configuration = getConfiguration();
        return Collections.singletonList(new ExecContext(configuration.containerAgentPort(), EnumSet.of(ExecType.ALL, ExecType.CONTAINER), configuration));
    }
View Full Code Here

TOP

Related Classes of org.jboss.arquillian.extension.byteman.impl.common.ExecContext

Copyright © 2018 www.massapicom. 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.