Package ibis.ipl.impl.multi
Class MultiReceivePort
- java.lang.Object
-
- ibis.ipl.impl.multi.MultiReceivePort
-
- All Implemented Interfaces:
ibis.ipl.Manageable,ibis.ipl.ReceivePort
public class MultiReceivePort extends java.lang.Object implements ibis.ipl.ReceivePort
-
-
Constructor Summary
Constructors Constructor Description MultiReceivePort(ibis.ipl.PortType type, MultiIbis ibis, java.lang.String name, ibis.ipl.MessageUpcall upcall, ibis.ipl.ReceivePortConnectUpcall connectUpcall, java.util.Properties properties)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidclose(long timeoutMillis)ibis.ipl.SendPortIdentifier[]connectedTo()voiddisableConnections()voiddisableMessageUpcalls()voidenableConnections()voidenableMessageUpcalls()java.lang.StringgetManagementProperty(java.lang.String key)ibis.ipl.PortTypegetPortType()ibis.ipl.ReceivePortIdentifieridentifier()ibis.ipl.SendPortIdentifier[]lostConnections()java.util.Map<java.lang.String,java.lang.String>managementProperties()java.lang.Stringname()ibis.ipl.SendPortIdentifier[]newConnections()ibis.ipl.ReadMessagepoll()voidprintManagementProperties(java.io.PrintStream stream)ibis.ipl.ReadMessagereceive()ibis.ipl.ReadMessagereceive(long timeoutMillis)voidsetManagementProperties(java.util.Map<java.lang.String,java.lang.String> properties)voidsetManagementProperty(java.lang.String key, java.lang.String value)
-
-
-
Constructor Detail
-
MultiReceivePort
public MultiReceivePort(ibis.ipl.PortType type, MultiIbis ibis, java.lang.String name, ibis.ipl.MessageUpcall upcall, ibis.ipl.ReceivePortConnectUpcall connectUpcall, java.util.Properties properties) throws java.io.IOException- Throws:
java.io.IOException
-
-
Method Detail
-
close
public void close() throws java.io.IOException- Specified by:
closein interfaceibis.ipl.ReceivePort- Throws:
java.io.IOException
-
close
public void close(long timeoutMillis) throws java.io.IOException- Specified by:
closein interfaceibis.ipl.ReceivePort- Throws:
java.io.IOException
-
connectedTo
public ibis.ipl.SendPortIdentifier[] connectedTo()
- Specified by:
connectedToin interfaceibis.ipl.ReceivePort
-
disableConnections
public void disableConnections()
- Specified by:
disableConnectionsin interfaceibis.ipl.ReceivePort
-
disableMessageUpcalls
public void disableMessageUpcalls()
- Specified by:
disableMessageUpcallsin interfaceibis.ipl.ReceivePort
-
enableConnections
public void enableConnections()
- Specified by:
enableConnectionsin interfaceibis.ipl.ReceivePort
-
enableMessageUpcalls
public void enableMessageUpcalls()
- Specified by:
enableMessageUpcallsin interfaceibis.ipl.ReceivePort
-
getPortType
public ibis.ipl.PortType getPortType()
- Specified by:
getPortTypein interfaceibis.ipl.ReceivePort
-
identifier
public ibis.ipl.ReceivePortIdentifier identifier()
- Specified by:
identifierin interfaceibis.ipl.ReceivePort
-
lostConnections
public ibis.ipl.SendPortIdentifier[] lostConnections()
- Specified by:
lostConnectionsin interfaceibis.ipl.ReceivePort
-
name
public java.lang.String name()
- Specified by:
namein interfaceibis.ipl.ReceivePort
-
newConnections
public ibis.ipl.SendPortIdentifier[] newConnections()
- Specified by:
newConnectionsin interfaceibis.ipl.ReceivePort
-
poll
public ibis.ipl.ReadMessage poll() throws java.io.IOException- Specified by:
pollin interfaceibis.ipl.ReceivePort- Throws:
java.io.IOException
-
receive
public ibis.ipl.ReadMessage receive() throws java.io.IOException- Specified by:
receivein interfaceibis.ipl.ReceivePort- Throws:
java.io.IOException
-
receive
public ibis.ipl.ReadMessage receive(long timeoutMillis) throws java.io.IOException- Specified by:
receivein interfaceibis.ipl.ReceivePort- Throws:
java.io.IOException
-
getManagementProperty
public java.lang.String getManagementProperty(java.lang.String key) throws ibis.ipl.NoSuchPropertyException- Specified by:
getManagementPropertyin interfaceibis.ipl.Manageable- Throws:
ibis.ipl.NoSuchPropertyException
-
managementProperties
public java.util.Map<java.lang.String,java.lang.String> managementProperties()
- Specified by:
managementPropertiesin interfaceibis.ipl.Manageable
-
printManagementProperties
public void printManagementProperties(java.io.PrintStream stream)
- Specified by:
printManagementPropertiesin interfaceibis.ipl.Manageable
-
setManagementProperties
public void setManagementProperties(java.util.Map<java.lang.String,java.lang.String> properties) throws ibis.ipl.NoSuchPropertyException- Specified by:
setManagementPropertiesin interfaceibis.ipl.Manageable- Throws:
ibis.ipl.NoSuchPropertyException
-
setManagementProperty
public void setManagementProperty(java.lang.String key, java.lang.String value) throws ibis.ipl.NoSuchPropertyException- Specified by:
setManagementPropertyin interfaceibis.ipl.Manageable- Throws:
ibis.ipl.NoSuchPropertyException
-
-