-
Start a new project
-
Add dependency to you pom.xml or whatever
<dependency> <groupId>waltz-controls.tango</groupId> <artifactId>virtual-tango-host</artifactId> <version>0.2</version> </dependency>
The above requires GitHub packages authorization in your settings.xml:
<servers> <server> <id>github-waltz</id> <username>YOUR_GITHUB_USER</username> <password>YOUR_GITHUB_TOKEN</password> </server> </servers> <repositories> <!-- this one is for JTango --> <repository> <snapshots> <enabled>false</enabled> </snapshots> <id>github-waltz</id> <url>https://maven.pkg.github.com/waltz-controls/*</url> </repository> </repositories>
-
[Optional] Implement DbBackend
public class MyDbBackend implements DbBackend{ //TODO }
To use simple in-memory backend just provide a .properties file with Tango devices (
-DentriesFile=<path-to-file>
):virtual/test/0=TestServer.class virtual/test/1=TestServer.class #etc
-
Register your DbBackend in the DbBackendFactory and start the virtual Tango db
public class Main { public static void main(String[] args){ DbBackendFactory.getInstance().setDbBackendImplementationClass(MyDbBackend.class); new DataBase.Launcher().run(); } }
-
Notifications
You must be signed in to change notification settings - Fork 0
License
waltz-controls/virtual-tango-host
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.