How to get the graphhopper instance running under dropwizard programmatically

I have a java maven project which running a GraphHopperApplication, when I start the java application, its working, i can make api call against localhost:8989. Now i want to access the running Graphhopper instance, because i need to update traffic information with data from third party. Can you help me get the Graphhopper instance programmatically? This is my code:

public class MyGraphHopperMainApplication {

	public static void main(String[] args) throws Exception {
		new GraphHopperApplication().run("server", "gh-config.yml");
	}
}