I know that I can create framework and scheduler using Mesos API and submit tasks via Java program. 

I have a different requirement. I want to know the active/inactive frameworks, executors and container information via Java program. I have a single node apache mesos on which I am running Spark jobs. I am able to see the job details on the web UI of apache mesos. The dirty way is to scrap the web page and fetch the data, but I am looking for an elegant solution by using mesos Java API.