CLDC GCF – все что нужно!

Силовая установка в одну программистскую силу c сердцем из Raspberry Pi и мозгом на Java Embedded Александр Мироненко SoKware engineer Oracle, Product Development, Java ME Александр Белокрылов Product manager Oracle, Product Development, Java ME Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Safe Harbor Statement The following is intended to outline our general product direc[on. It is intended for informa[on purposes only, and may not be incorporated into any contract. It is not a commitment to deliver any material, code, or func[onality, and should not be relied upon in making purchasing decisions. The development, release, and [ming of any features or func[onality described for Oracle’s products remains at the sole discre[on of Oracle. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 3 25% электроэнергии в Дании производятся ветрогенераторами Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 4 392 Мега Ватта – мощность установки Ivanpath Solar Power в Калифорнии Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 5 240 Мега Ватт – мощность приливного генератора La Rance во Франции Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 6 1000 Кило Ватт волновой генератор в Шотландии Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 7 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 8 8000 Биогазовых реакторов в Германии Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 9 Требования для систем управления Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 10 Управление ПО •  Удаленное управление •  Поддержка беспроводных технологий •  Безопасность •  Простое обновление Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 11 Очень большой жизненный цикл •  20 лет и более •  Портируемость на еще не созданные системы Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 12 Подключение к backend •  REST •  OAUTH •  JSON •  Security Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 13 Один бинарник работает на Raspberry Pi & K64 •  Write once run anywhere с небольшими оговорками •  Перенос между устройствами не требует изменений кода Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 14 Подключение к back-­‐end Что нам нужно? •  REST API обычно используется для общения с back-­‐end; •  Безопасный транспорт; •  Аутентификация; •  Передача данных в стандартных форматах. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 15 Подключение к back-­‐end Just do it! •  REST API обычно используется для общения с back-­‐end; •  Безопасный транспорт; •  Аутентификация; CLDC GCF API c поддержкой HTTP из коробки •  Передача данных в стандартных форматах. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 16 Подключение к back-­‐end Just do it! •  REST API обычно используется для общения с back-­‐end; •  Безопасный транспорт; •  Аутентификация; Поддержка SSL •  Передача данных в стандартных форматах. . Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 17 Подключение к back-­‐end Just do it! •  REST API обычно используется для общения с back-­‐end; •  Безопасный транспорт; •  Аутентификация; •  Поддержка Передача данных вO
стандартных AUTH2 дформатах. ля HTTP запросов Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 18 Подключение к back-­‐end Just do it! •  REST API обычно используется для общения с back-­‐end; •  Безопасный транспорт; •  Аутентификация; Поддержка JSON API и XML JSR •  Передача данных в стандартных форматах. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 19 Java ME сетевые возможности CLDC GCF – все что нужно! HttpConnection conn = (HttpConnection)Connector.open(HTTP_URL_HOST); DataOutputStream dataOutStream = conn. openDataOutputStream(); dataOutStream. writeUTF(“…”); Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 20 Java ME сетевые возможности CLDC GCF – все что нужно! HttpsConnection conn = (HttpsConnection)Connector.open(HTTPS_URL_HOST); DataOutputStream dataOutStream = conn. openDataOutputStream(); dataOutStream. writeUTF(“…”); Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 21 Java ME сетевые возможности CLDC GCF – все что нужно! SocketConnection conn = (SocketConnection)Connector.open(SOCKET_URL_HOST); DataOutputStream dataOutStream = conn. openDataOutputStream(); dataOutStream. writeUTF(“…”); Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 22 Java ME сетевые возможности CLDC GCF – все что нужно! SecureConnection conn = (SecureConnection)Connector.open(SSL_URL_HOST); DataOutputStream dataOutStream = conn. openDataOutputStream(); dataOutStream. writeUTF(“…”); Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 23 AMS Applica_on management system • Usually no SSH or other shells are in embedded devices; • Devices are located in an extreme environment which is far from development or maintenance team. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 24 CLI demo Oracle command line interface for system provisioning Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 25 MEEP SWM API Soeware management API SuiteManager sManager = ManagerFactory.getSuiteManager(); SuiteInstaller sInstaller = sManager.getSuiteInstaller( URL_OF_MY_APPLICATION, false); sInstaller.addInstallationListener(myInstallationListener); sInstaller.start(); Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 26 ProSyst анонсировал Scalable Device Management System для Java ME Devices Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 27 Изобретаем велосипед Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 28 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 29 Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 30 Нам нужен сильный программист! Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 31 IoT Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Q/A Copyright © 2014, Oracle and/or its affiliates. All rights reserved. Copyright © 2014, Oracle and/or its affiliates. All rights reserved. 34