Skip to content

Socket based utility librarie for Java. Control that there is only one instance of a program running.

Notifications You must be signed in to change notification settings

otros-systems/Single-Instance

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project: Single Instance Developer: Borja Lopez Urkidi, Krzysztof Otrebski Organization: NEGU Soft Web: http://www.negusoft.com

This is a utility to control the creation of instances across the local system. This means we can check if there is already an instance of certain program running at the moment. It is also possible to implement actions to be performed when attempting to create a new instance if there was already one active.

A socket based mechanism is used to establish the instances. The port number is saved in file in temp directory. If new instance can to connect on this port, meaning that there is another one running. Application starts searching port with 10000 as defaults and goes up to 20000. If you want to change starting port pass system variable singleInstance.startPort, for example -DsingleInstance.startPort=32131.

Current build status: Build status

About

Socket based utility librarie for Java. Control that there is only one instance of a program running.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%