Package java.rmi

Examples of java.rmi.RemoteException


        if(jgdi != null) {
            try {
                jgdi.unsuspendJobs(jobs, force);
            } catch( JGDIException e ) {
                logger.throwing(getClass().getName(), "unsuspendJobs", e);
                throw new RemoteException("Error while executing unsuspendJobs", e );
            }
        }
    }
View Full Code Here


        if(jgdi != null) {
            try {
                jgdi.clearJobs(jobs, force);
            } catch( JGDIException e ) {
                logger.throwing(getClass().getName(), "clearJobs", e);
                throw new RemoteException("Error while executing clearJobs", e );
            }
        }
    }
View Full Code Here

        if(jgdi != null) {
            try {
                jgdi.rescheduleJobs(jobs, force);
            } catch( JGDIException e ) {
                logger.throwing(getClass().getName(), "rescheduleJobs", e);
                throw new RemoteException("Error while executing rescheduleJobs", e );
            }
        }
    }
View Full Code Here

    public JGDIRemote newInstance() throws java.rmi.RemoteException {
        try {
            return new JGDIRemoteImpl(url);
        } catch( JGDIException jgdie ) {
            logger.throwing("JGDIRemoteFactoryImpl", "newInstance", jgdie );
            throw new RemoteException("Can not create jgdi remote instance", jgdie);
        }
    }
View Full Code Here

      resultChannel = (ResultChannel)r.lookup (ResultChannel.LOOKUP_NAME);
    }
    catch (NotBoundException e) {
      log.throwing ("com.sun.grid.jgrid.server.JCEPHandler", "connectToResultChannel", e);
     
      throw new RemoteException ("Unable to bind to result channel", e);
    }
   
    log.exiting ("com.sun.grid.jgrid.server.JCEPHandler", "connectToResultChannel");
  }
View Full Code Here

                                    RemoteEventListener
                                    queueListener)
    throws RemoteException
  {
    if(true)
      throw new RemoteException("Method not implemented");
    return null;
  }
View Full Code Here

    this.observer = observer;
    try {
      jpSnapshot = space.snapshot(new JobParams(jobInfo));
      jceSnapshot = space.snapshot(new JobControlEntry(jobInfo));
    } catch(Exception e) {
      throw new RemoteException(e.toString());  
    }
  }
View Full Code Here

      txn = createTransaction(10 * 1000);
      JobParams old = (JobParams)
        space.takeIfExists(jpSnapshot, txn, JavaSpace.NO_WAIT);
      if(old == null) {
        txn.abort();
        throw new RemoteException("No JobParams in JavaSpace");
      }
      space.write(jp, txn, Lease.FOREVER);
    } catch(Exception ex) {
      throw new RemoteException(ex.toString());
    }
    requestJobAction(JobAction.SUBMIT, txn);
  }
View Full Code Here

  {
    try {
      return space.notify(jceSnapshot, null, listener,
                          Lease.ANY, null);
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

        JobControlEntry jce =
          (JobControlEntry)space.takeIfExists(jceSnapshot, txn,
                                              JavaSpace.NO_WAIT);
        if(jce == null) {
          txn.abort();
          throw new RemoteException("No JobControlEntry in JavaSpace");
        }
        jce.jobAction = action;
        space.write(jce, txn, Lease.FOREVER);
      } catch(Exception ex) {
        txn.abort();
        throw new RemoteException(ex.toString());
      }
      txn.commit();
    } catch(Exception e) {
      throw new RemoteException(e.toString());
    }
  }
View Full Code Here

TOP

Related Classes of java.rmi.RemoteException

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.