
es.tid.topologyModuleBase.plugins.writer.gson.GsonTest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of topology Show documentation
Show all versions of topology Show documentation
Traffic Engineering Database, BGP-LS peer, Topology Module
The newest version!
package es.tid.topologyModuleBase.plugins.writer.gson;
import java.lang.reflect.Type;
import java.util.Collection;
import java.util.logging.Logger;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import es.tid.provisioningManager.objects.RouterInfoPM;
import es.tid.tedb.IntraDomainEdge;
import es.tid.tedb.SimpleTEDB;
import es.tid.tedb.controllers.TEDUpdaterFloodlight;
import es.tid.topologyModuleBase.TopologyModuleParams;
public class GsonTest
{
static Logger log=Logger.getLogger("TMController");
public static void main(String [] args)
{
TopologyModuleParams params;
params=new TopologyModuleParams("/home/jaume/Desktop/TopologyModuleNoONE.xml");
params.initialize();
log.warning("Initializing TED from WLAN Controller");
SimpleTEDB ted = new SimpleTEDB();
//Thread thread = new TEDUpdaterFloodlight(params.getControllerIP(), params.getControllerPORT(), params.getTopologyPath(), params.getTopologyNodesPath(), ted, log);
//thread.start();
Gson gson = new Gson();
//String json = gson.toJson(ted);
Collection links = ted.getIntraDomainLinks();
Collection
© 2015 - 2025 Weber Informatics LLC | Privacy Policy