Package org.jolokia.client.request

Examples of org.jolokia.client.request.J4pExecRequest


     */
    @Override
    public String getGitUrl() {
      String gitUrl = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "gitUrl()");
            J4pExecResponse response = getJolokiaClient().execute(request);
            gitUrl = response.getValue();
      } catch (Exception ex) {
        if (ex instanceof J4pRemoteException && ((J4pRemoteException)ex).getErrorType().equalsIgnoreCase("javax.management.InstanceNotFoundException")) {
          Fabric8CorePlugin.getLogger().error("The Fabric8 runtime is not compatible with this tooling version.", ex);
View Full Code Here


     */
    @Override
    public String getMavenProxyDownloadUrl() {
      String url = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "mavenProxyDownloadUrl()");
            J4pExecResponse response = getJolokiaClient().execute(request);
            url = response.getValue();
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to fetch maven proxy download url from fabric8.", e);
        }
View Full Code Here

     */
    @Override
    public String getMavenProxyUploadUrl() {
      String url = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "mavenProxyUploadUrl()");
            J4pExecResponse response = getJolokiaClient().execute(request);
            url = response.getValue();
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to fetch maven proxy upload url from fabric8.", e);
        }
View Full Code Here

     */
    @Override
    public String getWebUrl() {
      String url = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "webConsoleUrl()");
            J4pExecResponse response = getJolokiaClient().execute(request);
            url = response.getValue();
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to fetch web console url from fabric8.", e);
        }
View Full Code Here

     */
    @Override
    public List<ProfileDTO> getProfiles(String versionId) {
      List<ProfileDTO> profiles = new ArrayList<ProfileDTO>();
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "getProfiles(java.lang.String)", versionId);
            J4pExecResponse response = getJolokiaClient().execute(request);
            List<Map<String, Object>> values = response.getValue();
            for (Map<String, Object> value : values) {
              ProfileDTO p = new ProfileDTO(fabricFacade, value);
              if (p.isHidden()) {
View Full Code Here

   */
  @Override
  public ProfileDTO getProfile(String versionId, String profileId) {
    ProfileDTO profile = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "getProfile(java.lang.String, java.lang.String)", versionId, profileId);
            J4pExecResponse response = getJolokiaClient().execute(request);
            Map<String, Object> values = response.getValue();
            profile = new ProfileDTO(this.fabricFacade, values);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to fetch profile with id '" + profileId + "' and version id '" + versionId + "'.", e);
View Full Code Here

   */
  @Override
  public ProfileDTO createProfile(String versionId, String profileId) {
    ProfileDTO profile = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "createProfile(java.lang.String, java.lang.String)", versionId, profileId);
            J4pExecResponse response = getJolokiaClient().execute(request);
            Map<String, Object> values = response.getValue();
            profile = new ProfileDTO(this.fabricFacade, values);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to create profile with id '" + profileId + "' and version id '" + versionId + "'.", e);
View Full Code Here

   * @see org.fusesource.ide.fabric8.core.connector.Fabric8ConnectorType#deleteProfile(java.lang.String, java.lang.String)
   */
  @Override
  public void deleteProfile(String versionId, String profileId) {
    try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "deleteProfile(java.lang.String, java.lang.String)", versionId, profileId);
            getJolokiaClient().execute(request);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to delete profile with id '" + profileId + "' and version id '" + versionId + "'.", e);
        }
  }
View Full Code Here

   */
  @Override
  public VersionDTO createVersion(String parentVersionId, String versionId) {
    VersionDTO version = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "createVersion(java.lang.String, java.lang.String)", parentVersionId, versionId);
            J4pExecResponse response = getJolokiaClient().execute(request);
            Map<String, Object> values = response.getValue();
            version = new VersionDTO(this.fabricFacade, values);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to create subversion with id '" + versionId + "' under version '" + parentVersionId + "'.", e);
View Full Code Here

   */
  @Override
  public VersionDTO getDefaultVersion() {
    VersionDTO version = null;
      try {
            J4pExecRequest request = JolokiaHelpers.createExecRequest(FABRIC_MBEAN_URL, "defaultVersion()");
            J4pExecResponse response = getJolokiaClient().execute(request);
            Map<String, Object> values = response.getValue();
            version = new VersionDTO(this.fabricFacade, values);
        } catch (Exception e) {
          Fabric8CorePlugin.getLogger().error("Failed to fetch current container from fabric8.", 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.