Sunday, January 8, 2017

File Structure

Miranda has the following directory structure:

Name Default Description
com.ltsllc.miranda.ClusterFile data/cluster.json Where the system keeps information about the cluster
com.ltsllc.miranda.UserFile data/users.json Where the system keeps information about the users
com.ltsllc.miranda.TopicsFile data/topics.json Where the system keeps information about the system topics
com.ltsllc.miranda.SubscriptionsFile data/subscriptions.json Where the system keeps information about the subscriptions
com.ltsllc.miranda.MessagesDirectory data/messages The directory where the system keeps the messages files
com.ltsllc.miranda.DeliveriesDirectory data/deliveries The directory where the system keeps the deliveries files

Miranda keeps several messages files. Each one holds 100 messages.  The files are named with the index of the first message in the file, so the first one is named "1.json" the next "101.json" and so on.

Deliveries are kept in a directory with the name of the subscription, with the files named for the index of the first message in the file.  The deliveries are kept in groups of 100 so the first file is named "1.json" the second "101.json" and so on.

All files are JSON, cluster.json contains a list of hosts, users.json contains a list of users, topics.json contains a list of topics and suscriptions.json contains a list of subscriptions.

The messages file contains messages in the system.  Each of the files in the deliveries directory   contains a list of delivery objects.

No comments:

Post a Comment