logger = _logger;
resource_id_next = new Random().nextInt(Integer.MAX_VALUE / 2);
InetAddress bind_address = InetAddress.getByName(my_ip);
TrackerWebContext context = _plugin_interface.getTracker().createWebContext(
"Director:localResource", 0, Tracker.PR_HTTP, bind_address);
my_port = context.getURLs()[0].getPort();
if (logger != null) {
logger.log("Local resource publisher running on " + my_ip + ":" + my_port);
}
context.addPageGenerator(this);