Java Code Examples for mesosphere.marathon.client.utils.MarathonException#toString()
The following examples show how to use
mesosphere.marathon.client.utils.MarathonException#toString() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: MarathonContainer.java From minimesos with Apache License 2.0 | 5 votes |
/** * Deploys a Marathon app by JSON string * * @param marathonJson JSON string */ @Override public void deployApp(String marathonJson) { mesosphere.marathon.client.Marathon marathon = MarathonClient.getInstance(getMarathonEndpoint()); try { marathon.createApp(constructApp(marathonJson)); } catch (MarathonException e) { throw new MinimesosException("Marathon did not accept the app, error: " + e.toString()); } LOGGER.debug(format("Installed app at '%s'", getMarathonEndpoint())); }
Example 2
Source File: MarathonContainer.java From minimesos with Apache License 2.0 | 5 votes |
/** * Updates a Marathon app by JSON string * * @param marathonJson JSON string */ @Override public void updateApp(String marathonJson) { mesosphere.marathon.client.Marathon marathon = MarathonClient.getInstance(getMarathonEndpoint()); try { App app = constructApp(marathonJson); marathon.updateApp(app.getId(), app, true); } catch (MarathonException e) { throw new MinimesosException("Marathon could not update the app, error: " + e.toString()); } LOGGER.debug(format("Installing an app on marathon %s", getMarathonEndpoint())); }