Version 11 (modified by 6 years ago) ( diff ) | ,
---|
Genius2 ProfilesServer
This is the home page of the genius2 profiles server. This server serves domain and profile files to interested parties, and can inform them of changes.
Installation You can download the profileserver war file from .... and install it in your apache-tomcat 8 installation https://tomcat.apache.org/download-80.cgi. After (re)starting tomcat your local profilesserver should be up and running.
After installing and starting, go to http://localhost:8080/profilesserver to see if it works.
To download a profile in your agent, check the examples in https://tracinsy.ewi.tudelft.nl/trac/Genius2ProfilesServer/browser/src/test/java/genius2/examples. Basically you just open a websocket and read the incoming profile like this
WebSocketFactory factory = new WebSocketFactory().setConnectionTimeout(5000); WebSocket ws = factory.createSocket("ws://localhost:8080/profilesserver/websocket/get/jobs/jobs1"); ws.addListener(this); ... @Override public void onTextMessage(WebSocket websocket, String json) throws Exception { System.out.println("received profile: " + new ObjectMapper().readValue(json, Profile.class)); }
You can also download this source repository (you don't need this if you just want to use the profilesserver)
svn checkout https://tracinsy.ewi.tudelft.nl/svn/Genius2ProfilesServer/
Since this is a tomcat web application, you need Eclipse Enterprise edition if you want to use this from Eclipse. Also, to checkout from Eclipse, you need to prepare Eclipse for this. Check https://tracinsy.ewi.tudelft.nl/trac/Genius2/wiki/WikiStart
Profile structure
Attachments (1)
- home.png (1.3 MB ) - added by 5 years ago.
Download all attachments as: .zip