How can I perform deploys through my java program?

@OnlinePage, we do have an API for this. There is more information about this here:

This community topic might also be helpful: