Package org.jolokia.client.request

Examples of org.jolokia.client.request.J4pExecRequest


   * @see org.fusesource.ide.fabric8.core.connector.Fabric8ConnectorType#setVersionForContainer(java.lang.String, java.lang.String)
   */
  @Override
  public void setVersionForContainer(String containerId, String versionId) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "applyVersionToContainers(java.lang.String, java.util.List)", versionId, JolokiaHelpers.toList(containerId));
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set version of container '" + containerId + "' to '" + versionId + "'", e);
        }
  }
View Full Code Here


   * @see org.fusesource.ide.fabric8.core.connector.Fabric8ConnectorType#addProfilesToContainer(java.lang.String, java.lang.String[])
   */
  @Override
  public void addProfilesToContainer(String containerId, String... profileIds) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "addProfilesToContainer(java.lang.String, java.util.List)", containerId, profileIds);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to add profiles to container '" + containerId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void removeProfilesFromContainer(String containerId,
      String... profileIds) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "removeProfilesFromContainer(java.lang.String, java.util.List)", containerId, profileIds);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to remove profiles from container '" + containerId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfilesForContainer(String containerId, String versionId,
      List<String> profileIds) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "applyProfilesToContainers(java.lang.String, java.util.List, java.util.List)", versionId, profileIds, JolokiaHelpers.toList(containerId));
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set profiles for container '" + containerId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfileBundles(String versionId, String profileId,
      List<String> bundles) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "setProfileBundles(java.lang.String, java.lang.String, java.util.List)", versionId, profileId, bundles);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set bundles for profile '" + profileId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfileFabs(String versionId, String profileId,
      List<String> fabs) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "setProfileFabs(java.lang.String, java.lang.String, java.util.List)", versionId, profileId, fabs);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set fabs for profile '" + profileId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfileFeatures(String versionId, String profileId,
      List<String> features) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "setProfileFeatures(java.lang.String, java.lang.String, java.util.List)", versionId, profileId, features);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set features for profile '" + profileId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfileOptionals(String versionId, String profileId,
      List<String> optionals) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "setProfileOptionals(java.lang.String, java.lang.String, java.util.List)", versionId, profileId, optionals);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set optionals for profile '" + profileId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfileOverrides(String versionId, String profileId,
      List<String> overrides) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "setProfileOverrides(java.lang.String, java.lang.String, java.util.List)", versionId, profileId, overrides);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to set overrides for profile '" + profileId + "'", e);
        }
  }
View Full Code Here

   */
  @Override
  public void setProfileParentIds(String versionId, String profileId,
      List<String> parentIds) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "changeProfileParents(java.lang.String, java.lang.String, java.util.List)", versionId, profileId, parentIds);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to change parent ids for profile '" + profileId + "'", e);
        }
  }
View Full Code Here

TOP

Related Classes of org.jolokia.client.request.J4pExecRequest

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.