Example usage for java.rmi RemoteException getMessage

List of usage examples for java.rmi RemoteException getMessage

Introduction

In this page you can find the example usage for java.rmi RemoteException getMessage.

Prototype

public String getMessage() 

Source Link

Document

Returns the detail message, including the message from the cause, if any, of this exception.

Usage

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#restrictBandwidth(java.lang.String, int)
 *//*from   w w  w  . j  a v  a 2 s.  c o  m*/
public void restrictBandwidth(String aJob, int aBandwidthLimit) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "restrictBandwidth");
        Object[] data = { aJob, aBandwidthLimit };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke restrictBandwidth on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException(
                "Failed to invoke restrictBandwidth on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call restrictBandwidth : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call restrictBandwidth : " + e.getMessage(),
                e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#pause(java.lang.String)
 *//*from   www.j a  va 2 s  .c o m*/
public void pause(String aJob) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "pause");
        Object[] data = { aJob };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke pause on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke pause on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call pause : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call pause : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#resume(java.lang.String)
 *//*from   w w w  . j a  v  a2  s  .c  o  m*/
public void resume(String aJob) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "resume");
        Object[] data = { aJob };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke resume on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke resume on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call resume : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call resume : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#abort(java.lang.String)
 *///from ww w  . j a  va 2s .  com
public void abort(String aJob) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "abort");
        Object[] data = { aJob };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke abort on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke abort on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call abort : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call abort : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#stop(java.lang.String)
 *///from w  ww.java 2  s .  co  m
public void stop(String aJob) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "stop");
        Object[] data = { aJob };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke stop on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke stop on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call stop : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call stop : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#loadSettings(java.lang.String)
 */// w  w w.  j  a v  a 2 s .  c o  m
public void loadSettings(String aJob) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "loadSettings");
        Object[] data = { aJob };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke loadSettings on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke loadSettings on the SOAP service : " + e.getMessage(),
                e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call loadSettings : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call loadSettings : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#pauseAll()
 *//*  w  ww.j  a  va 2  s  .  co  m*/
public void pauseAll() {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "pauseAll");
        call.invoke();
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke pauseAll on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke pauseAll on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call pauseAll : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call pauseAll : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#resumeAll()
 *///  w  w  w. j  av  a 2 s  . co m
public void resumeAll() {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "resumeAll");
        call.invoke();
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke resumeAll on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke resumeAll on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call resumeAll : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call resumeAll : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
 * @see org.webcurator.core.harvester.agent.HarvestAgent#getStatus()
 *///w  w w.j a v  a2s  .co m
public HarvestAgentStatusDTO getStatus() {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "getStatus");
        return (HarvestAgentStatusDTO) call.invoke();
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke getStatus on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to invoke getStatus on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call getStatus : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException("Failed to create the SOAP call getStatus : " + e.getMessage(), e);
    }
}

From source file:org.webcurator.core.harvester.agent.HarvestAgentSOAPClient.java

/**
  * @see org.webcurator.core.harvester.agent.HarvestAgent#updateProfileOverrides(String, String)
  *//*from  w w w  .  j a  v a 2s.c om*/
public void updateProfileOverrides(String aJob, String aProfile) {
    try {
        WCTSoapCall call = new WCTSoapCall(host, port, service, "updateProfileOverrides");
        Object[] data = { aJob, aProfile };
        call.invoke(data);
    } catch (RemoteException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to invoke updateProfileOverrides on the SOAP service : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException(
                "Failed to invoke updateProfileOverrides on the SOAP service : " + e.getMessage(), e);
    } catch (ServiceException e) {
        if (log.isErrorEnabled()) {
            log.error("Failed to create the SOAP call updateProfileOverrides : " + e.getMessage(), e);
        }
        throw new WCTRuntimeException(
                "Failed to create the SOAP call updateProfileOverrides : " + e.getMessage(), e);
    }
}