PageRenderTime 36ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/src/Main.java

https://bitbucket.org/karthik00/isslive-stream-client
Java | 35 lines | 19 code | 3 blank | 13 comment | 0 complexity | b3adc757e106d9d94973e7687cd0ffa1 MD5 | raw file
  1. import java.io.File;
  2. import java.io.FileNotFoundException;
  3. import java.net.UnknownHostException;
  4. import com.alphadevs.isslive.ISSClientHandler;
  5. import com.alphadevs.isslive.LSHandlerConfig;
  6. import com.alphadevs.isslive.LightStreamerClient;
  7. import com.google.gson.JsonIOException;
  8. import com.google.gson.JsonSyntaxException;
  9. import com.lightstreamer.ls_client.PushConnException;
  10. import com.lightstreamer.ls_client.PushServerException;
  11. import com.lightstreamer.ls_client.PushUserException;
  12. import com.lightstreamer.ls_client.SubscrException;
  13. import com.mongodb.MongoException;
  14. public class Main {
  15. /**
  16. * @param args
  17. * @throws FileNotFoundException
  18. * @throws JsonSyntaxException
  19. * @throws JsonIOException
  20. * @throws PushConnException
  21. * @throws PushUserException
  22. * @throws PushServerException
  23. * @throws SubscrException
  24. * @throws MongoException
  25. * @throws UnknownHostException
  26. */
  27. public static void main(String[] args) throws JsonIOException,JsonSyntaxException, FileNotFoundException, SubscrException,PushServerException, PushUserException, PushConnException, UnknownHostException, MongoException {
  28. LightStreamerClient client = new LightStreamerClient();
  29. //URL url = ClassLoader.getSystemClassLoader().getResource("org/jboss/netty/example/echo/sensors_config.json");
  30. client.start(new ISSClientHandler(LSHandlerConfig.readSensorConfig(new File("/Users/karthik/dev/workspace/isslive-stream-client/src/com/alphadevs/isslive/sensors_config.json"))));
  31. }
  32. }