GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - antlen/mongo-utils: mongodb utilities

BranchesTags
Open more actions menu

Latest commit

 

History

10 Commits
10 Commits

Folders and files

NameName
Last commit message
Last commit date
src/main/java/org/estonlabs/mongodb/oplog
src/main/java/org/estonlabs/mongodb/oplog
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pom.xml
pom.xml
 
 

Repository files navigation

mongo-utils

A utility for subscribing to a mongo collction for updates whenever there is an insert, update or delete.

	<dependency>
	   <groupId>org.estonlabs</groupId>
	  <artifactId>mongo-utils</artifactId>
	  <version>1.0.0</version>
    </dependency>
	 final MongoClient mongoClient = new MongoClient("localhost" , 3001 );	
     final OplogMonitor mongo = new OplogMonitor(mongoClient);
     mongo.start();
	
	 final Namespace namespace = new Namespace( "meteor", "markets" );		

	//only listen to the insert and delete events.  
	mongo.listenToNameSpace(namespace, this, OplogEventType.INSERT, OplogEventType.DELETE);
 
 
 	  //sometime later when finished monitoring call
      mongo.stop();

About

mongodb utilities

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.