List of usage examples for org.apache.hadoop.registry.client.types ProtocolTypes PROTOCOL_REST
String PROTOCOL_REST
To view the source code for org.apache.hadoop.registry.client.types ProtocolTypes PROTOCOL_REST.
Click Source Link
From source file:org.apache.slider.providers.agent.AgentProviderService.java
License:Apache License
@Override public void applyInitialRegistryDefinitions(URL amWebURI, URL agentOpsURI, URL agentStatusURI, ServiceRecord serviceRecord) throws IOException { super.applyInitialRegistryDefinitions(amWebURI, agentOpsURI, agentStatusURI, serviceRecord); try {/*from w ww .j a va2s . co m*/ URL restURL = new URL(agentOpsURI, SLIDER_PATH_AGENTS); URL agentStatusURL = new URL(agentStatusURI, SLIDER_PATH_AGENTS); serviceRecord.addInternalEndpoint(new Endpoint(CustomRegistryConstants.AGENT_SECURE_REST_API, ProtocolTypes.PROTOCOL_REST, restURL.toURI())); serviceRecord.addInternalEndpoint(new Endpoint(CustomRegistryConstants.AGENT_ONEWAY_REST_API, ProtocolTypes.PROTOCOL_REST, agentStatusURL.toURI())); } catch (URISyntaxException e) { throw new IOException(e); } }