Class MultiSendPort

  • All Implemented Interfaces:
    ibis.ipl.Manageable, ibis.ipl.SendPort

    public class MultiSendPort
    extends java.lang.Object
    implements ibis.ipl.SendPort
    • Constructor Summary

      Constructors 
      Constructor Description
      MultiSendPort​(ibis.ipl.PortType type, MultiIbis ibis, java.lang.String name, ibis.ipl.SendPortDisconnectUpcall connectUpcall, java.util.Properties props)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      ibis.ipl.ReceivePortIdentifier connect​(ibis.ipl.IbisIdentifier id, java.lang.String name)  
      ibis.ipl.ReceivePortIdentifier connect​(ibis.ipl.IbisIdentifier id, java.lang.String name, long timeoutMillis, boolean fillTimeout)  
      void connect​(ibis.ipl.ReceivePortIdentifier receiver)  
      void connect​(ibis.ipl.ReceivePortIdentifier[] ports)  
      void connect​(ibis.ipl.ReceivePortIdentifier[] ports, long timeoutMillis, boolean fillTimeout)  
      void connect​(ibis.ipl.ReceivePortIdentifier receiver, long timeoutMillis, boolean fillTimeout)  
      ibis.ipl.ReceivePortIdentifier[] connect​(java.util.Map<ibis.ipl.IbisIdentifier,​java.lang.String> ports)  
      ibis.ipl.ReceivePortIdentifier[] connect​(java.util.Map<ibis.ipl.IbisIdentifier,​java.lang.String> ports, long timeoutMillis, boolean fillTimeout)  
      ibis.ipl.ReceivePortIdentifier[] connectedTo()  
      void disconnect​(ibis.ipl.IbisIdentifier identifier, java.lang.String name)  
      void disconnect​(ibis.ipl.ReceivePortIdentifier receiver)  
      java.lang.String getManagementProperty​(java.lang.String key)  
      ibis.ipl.PortType getPortType()  
      ibis.ipl.SendPortIdentifier identifier()  
      ibis.ipl.ReceivePortIdentifier[] lostConnections()  
      java.util.Map<java.lang.String,​java.lang.String> managementProperties()  
      java.lang.String name()  
      ibis.ipl.WriteMessage newMessage()  
      void printManagementProperties​(java.io.PrintStream stream)  
      void quit​(MultiSendPort port)  
      void setManagementProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)  
      void setManagementProperty​(java.lang.String key, java.lang.String value)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • MultiSendPort

        public MultiSendPort​(ibis.ipl.PortType type,
                             MultiIbis ibis,
                             java.lang.String name,
                             ibis.ipl.SendPortDisconnectUpcall connectUpcall,
                             java.util.Properties props)
                      throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • close

        public void close()
                   throws java.io.IOException
        Specified by:
        close in interface ibis.ipl.SendPort
        Throws:
        java.io.IOException
      • connect

        public void connect​(ibis.ipl.ReceivePortIdentifier receiver)
                     throws ibis.ipl.ConnectionFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionFailedException
      • connect

        public void connect​(ibis.ipl.ReceivePortIdentifier receiver,
                            long timeoutMillis,
                            boolean fillTimeout)
                     throws ibis.ipl.ConnectionFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionFailedException
      • connect

        public ibis.ipl.ReceivePortIdentifier connect​(ibis.ipl.IbisIdentifier id,
                                                      java.lang.String name)
                                               throws ibis.ipl.ConnectionFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionFailedException
      • connect

        public ibis.ipl.ReceivePortIdentifier connect​(ibis.ipl.IbisIdentifier id,
                                                      java.lang.String name,
                                                      long timeoutMillis,
                                                      boolean fillTimeout)
                                               throws ibis.ipl.ConnectionFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionFailedException
      • connect

        public void connect​(ibis.ipl.ReceivePortIdentifier[] ports)
                     throws ibis.ipl.ConnectionsFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionsFailedException
      • connect

        public void connect​(ibis.ipl.ReceivePortIdentifier[] ports,
                            long timeoutMillis,
                            boolean fillTimeout)
                     throws ibis.ipl.ConnectionsFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionsFailedException
      • connect

        public ibis.ipl.ReceivePortIdentifier[] connect​(java.util.Map<ibis.ipl.IbisIdentifier,​java.lang.String> ports)
                                                 throws ibis.ipl.ConnectionsFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionsFailedException
      • connect

        public ibis.ipl.ReceivePortIdentifier[] connect​(java.util.Map<ibis.ipl.IbisIdentifier,​java.lang.String> ports,
                                                        long timeoutMillis,
                                                        boolean fillTimeout)
                                                 throws ibis.ipl.ConnectionsFailedException
        Specified by:
        connect in interface ibis.ipl.SendPort
        Throws:
        ibis.ipl.ConnectionsFailedException
      • connectedTo

        public ibis.ipl.ReceivePortIdentifier[] connectedTo()
        Specified by:
        connectedTo in interface ibis.ipl.SendPort
      • disconnect

        public void disconnect​(ibis.ipl.ReceivePortIdentifier receiver)
                        throws java.io.IOException
        Specified by:
        disconnect in interface ibis.ipl.SendPort
        Throws:
        java.io.IOException
      • disconnect

        public void disconnect​(ibis.ipl.IbisIdentifier identifier,
                               java.lang.String name)
                        throws java.io.IOException
        Specified by:
        disconnect in interface ibis.ipl.SendPort
        Throws:
        java.io.IOException
      • getPortType

        public ibis.ipl.PortType getPortType()
        Specified by:
        getPortType in interface ibis.ipl.SendPort
      • identifier

        public ibis.ipl.SendPortIdentifier identifier()
        Specified by:
        identifier in interface ibis.ipl.SendPort
      • lostConnections

        public ibis.ipl.ReceivePortIdentifier[] lostConnections()
        Specified by:
        lostConnections in interface ibis.ipl.SendPort
      • name

        public java.lang.String name()
        Specified by:
        name in interface ibis.ipl.SendPort
      • newMessage

        public ibis.ipl.WriteMessage newMessage()
                                         throws java.io.IOException
        Specified by:
        newMessage in interface ibis.ipl.SendPort
        Throws:
        java.io.IOException
      • getManagementProperty

        public java.lang.String getManagementProperty​(java.lang.String key)
                                               throws ibis.ipl.NoSuchPropertyException
        Specified by:
        getManagementProperty in interface ibis.ipl.Manageable
        Throws:
        ibis.ipl.NoSuchPropertyException
      • managementProperties

        public java.util.Map<java.lang.String,​java.lang.String> managementProperties()
        Specified by:
        managementProperties in interface ibis.ipl.Manageable
      • printManagementProperties

        public void printManagementProperties​(java.io.PrintStream stream)
        Specified by:
        printManagementProperties in interface ibis.ipl.Manageable
      • setManagementProperties

        public void setManagementProperties​(java.util.Map<java.lang.String,​java.lang.String> properties)
                                     throws ibis.ipl.NoSuchPropertyException
        Specified by:
        setManagementProperties in interface ibis.ipl.Manageable
        Throws:
        ibis.ipl.NoSuchPropertyException
      • setManagementProperty

        public void setManagementProperty​(java.lang.String key,
                                          java.lang.String value)
                                   throws ibis.ipl.NoSuchPropertyException
        Specified by:
        setManagementProperty in interface ibis.ipl.Manageable
        Throws:
        ibis.ipl.NoSuchPropertyException