
org.opentcs.access.rmi.services.RemotePeripheralJobServiceProxy Maven / Gradle / Ivy
// SPDX-FileCopyrightText: The openTCS Authors
// SPDX-License-Identifier: MIT
package org.opentcs.access.rmi.services;
import java.rmi.RemoteException;
import org.opentcs.access.KernelRuntimeException;
import org.opentcs.access.to.peripherals.PeripheralJobCreationTO;
import org.opentcs.components.kernel.services.PeripheralJobService;
import org.opentcs.data.ObjectExistsException;
import org.opentcs.data.ObjectUnknownException;
import org.opentcs.data.peripherals.PeripheralJob;
/**
* The default implementation of the peripheral job service.
* Delegates method invocations to the corresponding remote service.
*/
class RemotePeripheralJobServiceProxy
extends
RemoteTCSObjectServiceProxy
implements
PeripheralJobService {
/**
* Creates a new instance.
*/
RemotePeripheralJobServiceProxy() {
}
@Override
public PeripheralJob createPeripheralJob(PeripheralJobCreationTO to)
throws ObjectUnknownException,
ObjectExistsException,
KernelRuntimeException {
checkServiceAvailability();
try {
return getRemoteService().createPeripheralJob(getClientId(), to);
}
catch (RemoteException ex) {
throw findSuitableExceptionFor(ex);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy