Package ch.ethz.prose.tools

Examples of ch.ethz.prose.tools.RemoteAspectManager


     * @throws UnreachableException
     */
    public void withdraw() throws UnreachableException {
        AspectManagerNode manager = getAspectManager();
        try {
            RemoteAspectManager remote = getAspectManager().getAspectManager();
            Object id = manager.getTransactionId();
            if (id == null)
                remote.withdraw(getAspect());
            else
                remote.withdraw(getAspect(), id);
            ProsePlugin.getDefault().fireAspectWithdrawn(this);
        } catch (ClassNotFoundException e) {
            throw new Error(e);
        } catch (RemoteException e) {
            manager.getRun().setUnreachable();
View Full Code Here


        try {
            Socket s = new Socket(host, port);
            s.setSoTimeout(5000);
            ObjectInputStream stream = new ObjectInputStream(s.getInputStream());
            RemoteAspectManager manager0 = (RemoteAspectManager) stream.readObject();
            RemoteAspectManager manager1 = (RemoteAspectManager) stream.readObject();
            aspectManagers = new RemoteAspectManager[] { manager0, manager1 };
        } catch (ClassNotFoundException e) {
            throw new Error(e);
        } catch (IOException e) {
            setUnreachable();
View Full Code Here

            ProsePlugin.log(new IllegalStateException("No active transaction"));
            return;
        }

        try {
            RemoteAspectManager manager = getAspectManager();
            manager.commit(transactionId);
        } catch (RemoteException e) {
            getRun().setUnreachable();
            throw new UnreachableException(e);
        } finally {
            transactionId = null;
View Full Code Here

TOP

Related Classes of ch.ethz.prose.tools.RemoteAspectManager

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.