Package jpvm

Examples of jpvm.jpvmTaskId


  public synchronized void pvm_mcast(jpvmBuffer buf, jpvmTaskId tids[],
      int ntids, int tag) throws jpvmException {
    int exceptions = 0;
    jpvmMessage message = new jpvmMessage(buf, null, myTid, tag);
    for(int i=0;i<ntids; i++) {
      jpvmTaskId tid = tids[i];
      message.destTid = tid;
      jpvmDebug.note("pvm_mcast, sending message to "+
        tid.toString());
      try {
          jpvmSendConnection conn = getConnection(tid);
          message.send(conn);
      }
      catch (jpvmException jpe) {
View Full Code Here


      throws jpvmException {
    myMessageQueue  = new jpvmMessageQueue();
    myConnectionSet = new jpvmConnectionSet();
    connectionServer= new jpvmConnectionServer(myConnectionSet,
      myMessageQueue);
    myTid = new jpvmTaskId(connectionServer.getConnectionPort());
    connectionServer.setDaemon(true);
    connectionServer.start();
    if(!isDaemon) {
      findDaemon();
      findParent();
View Full Code Here

      throws jpvmException {
    myMessageQueue  = new jpvmMessageQueue();
    myConnectionSet = new jpvmConnectionSet();
    connectionServer= new jpvmConnectionServer(myConnectionSet,
      myMessageQueue, port);
    myTid = new jpvmTaskId(connectionServer.getConnectionPort());
    connectionServer.setDaemon(true);
    connectionServer.start();
    if(!isDaemon) {
      findDaemon();
      findParent();
View Full Code Here

      findParent();
      registerDaemon(taskName);
    }
  }
  private jpvmTaskId initTaskId() {
    jpvmTaskId ret = null;
    return ret;
  }
View Full Code Here

    }
    if(daemonPort==-1) {
      jpvmDebug.error("couldn't bind to daemon, " + "jpvm.daemon not defined");
      throw new jpvmException();
    }
    daemonTid = new jpvmTaskId(daemonPort);
  }
View Full Code Here

    }
    catch (NumberFormatException nfe) {
      jpvmDebug.error("couldn't bind to parent, " +
        "jpvm.parport not an integer");
    }
    parentTid = new jpvmTaskId(parentHost,parentPort);

    // Since we have a parent, register with the daemon
    String regStr = System.getProperty("jpvm.regnum");
    if(regStr==null) {
      jpvmDebug.error("no task registration number");
View Full Code Here

    if(sock==null) return;
    try {
      instrm = sock.getInputStream();
      instrm = new BufferedInputStream(instrm);
      strm = new DataInputStream(instrm);
      tid = new jpvmTaskId();
      try {
        tid.recv(strm);
      }
      catch (jpvmException jpe) {
        strm  = null;
View Full Code Here

  public void recv(jpvmRecvConnection conn) throws jpvmException {
    DataInputStream strm = conn.strm;
    try {
      messageTag = strm.readInt();
      sourceTid = new jpvmTaskId();
      sourceTid.recv(strm);
      destTid = new jpvmTaskId();
      destTid.recv(strm);
      buffer = new jpvmBuffer();
      buffer.recv(conn);
    }
    catch (IOException ioe) {
View Full Code Here

    contents = new jpvmBufferElementContents(d,n,stride,inPlace);
  }

  public jpvmBufferElement(jpvmTaskId d) {
    init();
    jpvmTaskId a[] = new jpvmTaskId[1];
    a[0] = d;
    contents = new jpvmBufferElementContents(a,1,1,true);
  }
View Full Code Here

    {
      final JpvmInfo  jpvmInfo = new JpvmInfo ( );
     
      jpvmInfo.numTasks = 1;
     
      jpvmInfo.parentJpvmTaskId = new jpvmTaskId ( );
     
      return jpvmInfo;     
    }
View Full Code Here

TOP

Related Classes of jpvm.jpvmTaskId

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.