示例#1
0
  @Override
  public void start() {

    // Start registries
    if (clientRegistry instanceof Startable) {
      ((Startable) clientRegistry).start();
    }
    if (securityRegistry instanceof Startable) {
      ((Startable) securityRegistry).start();
    }
    if (observationRegistry instanceof Startable) {
      ((Startable) observationRegistry).start();
    }

    // Start server
    coapServer.start();

    LOG.info("LW-M2M server started");
  }