Class ResolveHostnameJobFactory

java.lang.Object
edu.ucsb.cs156.diningcachingproxy.services.ResolveHostnameJobFactory

@Service public class ResolveHostnameJobFactory extends Object
Builds and launches a ResolveHostnameJob for one IP address. Used both to auto-trigger resolution the first time an address is seen, and to manually retry it on demand - a single call site for both so there's exactly one place that knows how to build this job.
  • Constructor Details

    • ResolveHostnameJobFactory

      public ResolveHostnameJobFactory()
  • Method Details

    • launch

      public edu.ucsb.cs156.jobs.entities.Job launch(String ipAddress)