Java Code Examples for com.sun.xml.internal.ws.api.config.management.policy.ManagedServiceAssertion#monitoringAttribute()
The following examples show how to use
com.sun.xml.internal.ws.api.config.management.policy.ManagedServiceAssertion#monitoringAttribute() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MonitorBase.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 2
Source File: MonitorBase.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 3
Source File: MonitorBase.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 4
Source File: MonitorBase.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 5
Source File: MonitorBase.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 6
Source File: MonitorBase.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 7
Source File: MonitorBase.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }
Example 8
Source File: MonitorBase.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
/** * Endpoint monitoring is ON by default. * * prop | no assert | assert/no mon | assert/mon off | assert/mon on * ------------------------------------------------------------------- * not set | on | on | off | on * false | off | off | off | off * true | on | on | off | on */ @NotNull public ManagedObjectManager createManagedObjectManager(final WSEndpoint endpoint) { // serviceName + portName identifies the managed objects under it. // There can be multiple services in the container. // The same serviceName+portName can live in different apps at // different endpoint addresses. // // In general, monitoring will add -N, where N is unique integer, // in case of collisions. // // The endpoint address would be unique, but we do not know // the endpoint address until the first request comes in, // which is after monitoring is setup. String rootName = endpoint.getServiceName().getLocalPart() + "-" + endpoint.getPortName().getLocalPart(); if (rootName.equals("-")) { rootName = "provider"; } // contextPath is not always available final String contextPath = getContextPath(endpoint); if (contextPath != null) { rootName = contextPath + "-" + rootName; } final ManagedServiceAssertion assertion = ManagedServiceAssertion.getAssertion(endpoint); if (assertion != null) { final String id = assertion.getId(); if (id != null) { rootName = id; } if (assertion.monitoringAttribute() == Setting.OFF) { return disabled("This endpoint", rootName); } } if (endpointMonitoring.equals(Setting.OFF)) { return disabled("Global endpoint", rootName); } return createMOMLoop(rootName, 0); }