Spring for Apache Hadoop

org.springframework.yarn.am
Interface AppmasterService

All Known Implementing Classes:
BatchAppmasterService, IntegrationAppmasterService, MindAppmasterService

public interface AppmasterService

Interface for service running on Application Master.

Usually this service provides a simple communication api for client containers to connect to.

Author:
Janne Valkealahti

Method Summary
 java.lang.String getHost()
          Get a hostname where service is running.
 int getPort()
          Get a port where service is running.
 boolean hasPort()
          This method should return true if a service will eventually bind to a port.
 

Method Detail

getPort

int getPort()
Get a port where service is running. This method should return port as zero or negative if port is unknown. For example if underlying communication library is using random ports or other methods so that user doesn't need to worry about it.

Returns:
Service port, -1 if port unknown.

hasPort

boolean hasPort()
This method should return true if a service will eventually bind to a port. User can then do a sleep while waiting getPort() to return the actual port number.

Returns:
True if this service will provide a port

getHost

java.lang.String getHost()
Get a hostname where service is running. This method should return null if service is unknown.

Returns:
Hostname of the server or null if unknown.

Spring for Apache Hadoop