package streams
Utilities for dealing with LoRaWAN data in the context of Akka streams.
- Alphabetic
- By Inheritance
- streams
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
The base package of the Streambed library.
The base package of the Streambed library. Of note is the com.cisco.streambed.Application suite of types. These types conveniently establish a streambed environment for an application.
Sample usage from Java:
/** * Bootstraps our application and handles signals */ public class MyServerEntryPoints { private static ApplicationProcess applicationProcess = null; public static void main(String[] args) { applicationProcess = new ApplicationProcess(new MyServer()); applicationProcess.main(args); } public static void trap(int signal) { if (applicationProcess != null) { applicationProcess.trap(signal); } } }
...with MyServer being declared as:
public class MyServer extends Application { @Override public void main(String[] args, ApplicationContext context) { .. } }
The equivalent in Scala:
object MyServerEntryPoints { private lazy val applicationProcess = ApplicationProcess(MyServer) def main(args: Array[String]): Unit = applicationProcess.main(args) def trap(signal: Int): Unit = applicationProcess.trap(signal) }
...with MyServer being declared as:
object MyServer extends Application { override def main(args: Array[String], applicationContext: ApplicationContext): Unit = { .. } }
The essential idea is that a regular JVM entry point (MyServerEntryPoints), establishes a com.cisco.streambed.ApplicationProcess of a class named MyServer. The trap method is used by Landlord for whenever an operating systemm signal is sent to the process. My extending com.cisco.streambed.Application, a com.cisco.streambed.ApplicationContext is provided by Streambed, containing almost all of what an application will require in order to startup (an actor system, metrics, logging...). The resources provided within the context are also automatically released on exit.
LoRaWAN device meta data event declarations so that devices can be made known to the system as a whole.
LoRaWAN device meta data event declarations so that devices can be made known to the system as a whole.
LoRaWAN packet codec and its associated domain model.
LoRaWAN packet codec and its associated domain model. The main functions here are the com.cisco.streambed.lora.packet.PHYPayloadCodec encode/decode ones. For reference on the LoRaWAN types in general, please consult the LoRaWAN specifications.
Utilities for dealing with LoRaWAN data in the context of Akka streams.
Utilities for dealing with LoRaWAN data in the context of Akka streams.
Utilities for dealing with LoRaWAN data in the context of Akka streams.