Class P2Session

java.lang.Object
dev.equo.solstice.p2.P2Session

public class P2Session extends Object
In-memory store of all p2 metadata, especially provides/requires dependency information.
  • Constructor Details

    • P2Session

      public P2Session()
  • Method Details

    • populateFrom

      public void populateFrom(P2Client client, String url) throws Exception
      Adds every P2Unit from the given url into this session.
      Throws:
      Exception
    • getUnitById

      public P2Unit getUnitById(String id)
      Returns the unit with the given id. If there are multiple units with the same id, returns the one with the greatest version number. If there are none, throws an exception.
    • query

      public P2Query query()
      Creates a new P2Query against this session.