org.apache.hadoop.yarn.server.nodemanager.containermanager
Interface AuxServices.AuxiliaryService

All Superinterfaces:
org.apache.hadoop.yarn.service.Service
Enclosing class:
AuxServices

public static interface AuxServices.AuxiliaryService
extends org.apache.hadoop.yarn.service.Service


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.hadoop.yarn.service.Service
org.apache.hadoop.yarn.service.Service.STATE
 
Method Summary
 ByteBuffer getMeta()
          Retreive metadata for this service.
 void initApp(String user, org.apache.hadoop.yarn.api.records.ApplicationId appId, ByteBuffer data)
           
 void stopApp(org.apache.hadoop.yarn.api.records.ApplicationId appId)
           
 
Methods inherited from interface org.apache.hadoop.yarn.service.Service
getConfig, getName, getServiceState, getStartTime, init, register, start, stop, unregister
 

Method Detail

initApp

void initApp(String user,
             org.apache.hadoop.yarn.api.records.ApplicationId appId,
             ByteBuffer data)

stopApp

void stopApp(org.apache.hadoop.yarn.api.records.ApplicationId appId)

getMeta

ByteBuffer getMeta()
Retreive metadata for this service. This is likely going to be contact information so that applications can access the service remotely. Ideally each service should provide a method to parse out the information to a usable class. This will only be called after the services start method has finished. the result may be cached.

Returns:
metadata for this service that should be made avaiable to applications.


Copyright © 2012 Apache Software Foundation. All Rights Reserved.