private static Config topologyConfigs ( String topologyBinaryFile , String topologyDefnFile , TopologyAPI . Topology topology ) { PackageType packageType = PackageType . getPackageType ( topologyBinaryFile ) ; return Config . newBuilder ( ) . put ( Key . TOPOLOGY_ID , topology . getId ( ) ) . put ( Key . TOPOLOGY_NAME , topology . getName ( ) ) . put ( Key . TOPOLOGY_DEFINITION_FILE , topologyDefnFile ) . put ( Key . TOPOLOGY_BINARY_FILE , topologyBinaryFile ) . put ( Key . TOPOLOGY_PACKAGE_TYPE , packageType ) . build ( ) ; }
Load the topology config