YARN-6770. A small mistake in the example of TimelineClient. Contributed by Jinjiang Ling.

This commit is contained in:
Naganarasimha 2017-07-09 21:28:24 +05:30
parent 626d730bfc
commit ba5b056e8a
1 changed files with 2 additions and 2 deletions

View File

@ -274,7 +274,7 @@ Here is an example:
try { try {
TimelineDomain myDomain = new TimelineDomain(); TimelineDomain myDomain = new TimelineDomain();
myDomain.setID("MyDomain"); myDomain.setId("MyDomain");
// Compose other Domain info .... // Compose other Domain info ....
client.putDomain(myDomain); client.putDomain(myDomain);
@ -282,7 +282,7 @@ Here is an example:
TimelineEntity myEntity = new TimelineEntity(); TimelineEntity myEntity = new TimelineEntity();
myEntity.setDomainId(myDomain.getId()); myEntity.setDomainId(myDomain.getId());
myEntity.setEntityType("APPLICATION"); myEntity.setEntityType("APPLICATION");
myEntity.setEntityID("MyApp1") myEntity.setEntityId("MyApp1");
// Compose other entity info // Compose other entity info
TimelinePutResponse response = client.putEntities(entity); TimelinePutResponse response = client.putEntities(entity);