Exemplo n.º 1
0
 /**
  * Creates an embedded {@link ControlServer}. Note, it is not usually necessary for application
  * code to call this directly. This method is here primarily as a helper for the case where a
  * {@link ControlServer} is deployed by Spring. Most often a {@link ControlServer} is pre
  * provisioned for you.
  *
  * @param keeper The MeshKeeper for the agent.
  * @param dataDir the directoy for storing {@link LaunchAgent} data.
  * @return An embedded launch agent.
  * @throws Exception If there is an error creating the agent.
  */
 public static ControlServer createControlServer(String registry) throws Exception {
   return createControlServer(registry, MeshKeeperFactory.getDefaultServerDirectory());
 }
Exemplo n.º 2
0
 /**
  * Equivalent to calling {@link #createAgent(MeshKeeper, File)} with a null dataDir parameter.
  *
  * @param keeper The MeshKeeper for the agent.
  * @return An embedded launch agent.
  * @throws Exception If there is an error creating the agent.
  */
 public static LaunchAgent createAgent(MeshKeeper keeper) throws Exception {
   return createAgent(keeper, MeshKeeperFactory.getDefaultAgentDirectory());
 }