APISonar


com.alibaba.jstorm.yarn.constants.JOYConstants.HTTP

> com > alibaba > jstorm > yarn > constants > JOYConstants > HTTP
com APIs alibaba APIs jstorm APIs yarn APIs constants APIs JOYConstants APIs HTTP APIs

Example 1
private ServiceRecord setupServiceRecord() {
        ServiceRecord application = new ServiceRecord();
        application.set(YarnRegistryAttributes.YARN_ID, jstormMasterContext.appAttemptID.getApplicationId().toString());
        application.description = JOYConstants.AM;
        application.set(YarnRegistryAttributes.YARN_PERSISTENCE,
                PersistencePolicies.PERMANENT);
        Map<String, String> addresses = new HashMap<String, String>();
        addresses.put(JOYConstants.HOST, jstormMasterContext.appMasterHostname);
        addresses.put(JOYConstants.PORT, String.valueOf(jstormMasterContext.appMasterThriftPort));
        Endpoint endpoint = new Endpoint(JOYConstants.HTTP, JOYConstants.HOST_PORT, JOYConstants.RPC, addresses);
        application.addExternalEndpoint(endpoint);
        return application;
    }