Examples of determineRuleName()


Examples of org.jboss.byteman.agent.submit.Submit.determineRuleName()

        Submit client = context.getParentResourceComponent().getBytemanClient();
        List<String> rules = context.getParentResourceComponent().getRules();
        if (rules != null && !rules.isEmpty()) {
            for (String rule : rules) {
                String ruleName = client.determineRuleName(rule);
                details.add(new DiscoveredResourceDetails(context.getResourceType(), ruleName, ruleName, "unversioned",
                    "A rule defined in a Byteman script", null, null));
            }
        }
View Full Code Here

Examples of org.jboss.byteman.agent.submit.Submit.determineRuleName()

                }
                Map<String, String> allScripts = client.getAllRules();
                for (String script : allScripts.values()) {
                    List<String> rules = client.splitAllRulesFromScript(script);
                    for (String rule : rules) {
                        if (ruleName.equals(client.determineRuleName(rule))) {
                            Configuration resultConfig = result.getComplexResults();
                            resultConfig.put(new PropertySimple("ruleDefinition", rule));
                            return result;
                        }
                    }
View Full Code Here

Examples of org.jboss.byteman.agent.submit.Submit.determineRuleName()

        try {
            String ourKey = this.resourceContext.getResourceKey();
            Submit client = this.resourceContext.getParentResourceComponent().getBytemanClient();
            List<String> rules = this.resourceContext.getParentResourceComponent().getRules();
            for (String rule : rules) {
                String ruleName = client.determineRuleName(rule);
                if (ourKey.equals(ruleName)) {
                    return AvailabilityType.UP;
                }
            }
            return AvailabilityType.DOWN;
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.