Search in sources :

Example 6 with RemoteTransientException

use of com.cosylab.acs.maci.RemoteTransientException in project ACS by ACS-Community.

the class AdministratorProxy method containerLoggedIn.

/**
	 * @see com.cosylab.acs.maci.Administrator#containerLoggedIn(ContainerInfo, long, long)
	 */
public void containerLoggedIn(ContainerInfo info, long timeStamp, long executionId) throws RemoteException {
    try {
        si.ijs.maci.ContainerInfo containerInfo = null;
        if (info != null)
            containerInfo = new si.ijs.maci.ContainerInfo(info.getName(), info.getHandle(), (Container) ((ClientProxy) info.getContainer()).getClient(), info.getComponents().toArray());
        administrator.container_logged_in(containerInfo, UTCUtility.utcJavaToOmg(timeStamp), executionId);
    } catch (TIMEOUT te) {
        throw new RemoteTimeoutException("Failed to invoke 'container_logged_in()' method due to timeout.", te);
    } catch (TRANSIENT tre) {
        throw new RemoteTransientException("Failed to invoke 'container_logged_in()' method due to transient exception.", tre);
    } catch (Throwable ex) {
        throw new RemoteException("Failed to invoke 'container_logged_in()' method.", ex);
    }
}
Also used : RemoteTimeoutException(com.cosylab.acs.maci.RemoteTimeoutException) ContainerInfo(com.cosylab.acs.maci.ContainerInfo) TIMEOUT(org.omg.CORBA.TIMEOUT) RemoteException(com.cosylab.acs.maci.RemoteException) TRANSIENT(org.omg.CORBA.TRANSIENT) RemoteTransientException(com.cosylab.acs.maci.RemoteTransientException)

Aggregations

RemoteException (com.cosylab.acs.maci.RemoteException)6 RemoteTimeoutException (com.cosylab.acs.maci.RemoteTimeoutException)6 RemoteTransientException (com.cosylab.acs.maci.RemoteTransientException)6 TIMEOUT (org.omg.CORBA.TIMEOUT)6 TRANSIENT (org.omg.CORBA.TRANSIENT)6 ComponentInfo (com.cosylab.acs.maci.ComponentInfo)2 Object (org.omg.CORBA.Object)2 ClientInfo (com.cosylab.acs.maci.ClientInfo)1 ContainerInfo (com.cosylab.acs.maci.ContainerInfo)1