Package com.facebook.swift.service.ThriftClientManager

Examples of com.facebook.swift.service.ThriftClientManager.ThriftClientMetadata


    {
        try {
            // extract method handles into a map so they can be exported individually into jmx
            ImmutableMap.Builder<ObjectName, ThriftMethodHandler> builder = ImmutableMap.builder();
            for (ThriftClientBinder.ThriftClientProvider<?> clientProvider : clientProviders) {
                ThriftClientMetadata clientMetadata = clientProvider.getClientMetadata();
                for (ThriftMethodHandler methodHandler : clientMetadata.getMethodHandlers().values()) {
                    String name = format("com.facebook.swift.client:type=%s,clientName=%s,name=%s",
                            clientMetadata.getClientType(),
                            clientMetadata.getClientName(),
                            methodHandler.getName());
                    builder.put(ObjectName.getInstance(name), methodHandler);
                }
            }
            return builder.build();
View Full Code Here


    {
        try {
            // extract method handles into a map so they can be exported individually into jmx
            ImmutableMap.Builder<ObjectName, ThriftMethodHandler> builder = ImmutableMap.builder();
            for (ThriftClientBinder.ThriftClientProvider<?> clientProvider : clientProviders) {
                ThriftClientMetadata clientMetadata = clientProvider.getClientMetadata();
                for (ThriftMethodHandler methodHandler : clientMetadata.getMethodHandlers().values()) {
                    String name = format("com.facebook.swift.client:type=%s,clientName=%s,name=%s",
                            clientMetadata.getClientType(),
                            clientMetadata.getClientName(),
                            methodHandler.getName());
                    builder.put(ObjectName.getInstance(name), methodHandler);
                }
            }
            return builder.build();
View Full Code Here

TOP

Related Classes of com.facebook.swift.service.ThriftClientManager.ThriftClientMetadata

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.