Package ibis.ipl.impl.multi
Class MultiIbis
- java.lang.Object
-
- ibis.ipl.impl.multi.MultiIbis
-
- All Implemented Interfaces:
ibis.ipl.Ibis,ibis.ipl.Manageable
public class MultiIbis extends java.lang.Object implements ibis.ipl.Ibis
-
-
Field Summary
Fields Modifier and Type Field Description static ibis.ipl.PortTyperesolvePortType
-
Constructor Summary
Constructors Constructor Description MultiIbis(ibis.ipl.IbisFactory factory, ibis.ipl.RegistryEventHandler registryEventHandler, java.util.Properties userProperties, ibis.ipl.IbisCapabilities capabilities, ibis.ipl.Credentials credentials, byte[] applicationTag, ibis.ipl.PortType[] portTypes, java.lang.String specifiedSubImplementation, MultiIbisStarter multiIbisStarter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcloseReceivePort(MultiReceivePort port)voidcloseSendPort(MultiSendPort port)ibis.ipl.ReceivePortcreateReceivePort(ibis.ipl.PortType portType, java.lang.String name)ibis.ipl.ReceivePortcreateReceivePort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.MessageUpcall u)ibis.ipl.ReceivePortcreateReceivePort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.MessageUpcall u, ibis.ipl.ReceivePortConnectUpcall cU, java.util.Properties props)ibis.ipl.ReceivePortcreateReceivePort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.ReceivePortConnectUpcall cU)ibis.ipl.SendPortcreateSendPort(ibis.ipl.PortType portType)ibis.ipl.SendPortcreateSendPort(ibis.ipl.PortType portType, java.lang.String name)ibis.ipl.SendPortcreateSendPort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.SendPortDisconnectUpcall cU, java.util.Properties props)voidend()java.lang.StringgetManagementProperty(java.lang.String key)java.lang.StringgetVersion()ibis.ipl.IbisIdentifieridentifier()booleanisResolved(ibis.ipl.IbisIdentifier toResolve)java.util.Map<java.lang.String,java.lang.String>managementProperties()MultiIbisIdentifiermapIdentifier(ibis.ipl.IbisIdentifier ibisId, java.lang.String ibisName)ibis.ipl.ReceivePortIdentifiermapReceivePortIdentifier(ibis.ipl.ReceivePortIdentifier johnDoe, java.lang.String ibisName)ibis.ipl.SendPortIdentifiermapSendPortIdentifier(ibis.ipl.SendPortIdentifier johnDoe, java.lang.String ibisName)voidpoll()voidprintManagementProperties(java.io.PrintStream stream)java.util.Propertiesproperties()ibis.ipl.Registryregistry()voidresolved(MultiIbisIdentifier id)voidsetManagementProperties(java.util.Map<java.lang.String,java.lang.String> properties)voidsetManagementProperty(java.lang.String key, java.lang.String value)
-
-
-
Constructor Detail
-
MultiIbis
public MultiIbis(ibis.ipl.IbisFactory factory, ibis.ipl.RegistryEventHandler registryEventHandler, java.util.Properties userProperties, ibis.ipl.IbisCapabilities capabilities, ibis.ipl.Credentials credentials, byte[] applicationTag, ibis.ipl.PortType[] portTypes, java.lang.String specifiedSubImplementation, MultiIbisStarter multiIbisStarter)
-
-
Method Detail
-
end
public void end() throws java.io.IOException- Specified by:
endin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
registry
public ibis.ipl.Registry registry()
- Specified by:
registryin interfaceibis.ipl.Ibis
-
poll
public void poll() throws java.io.IOException- Specified by:
pollin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
identifier
public ibis.ipl.IbisIdentifier identifier()
- Specified by:
identifierin interfaceibis.ipl.Ibis
-
getVersion
public java.lang.String getVersion()
- Specified by:
getVersionin interfaceibis.ipl.Ibis
-
properties
public java.util.Properties properties()
- Specified by:
propertiesin interfaceibis.ipl.Ibis
-
createSendPort
public ibis.ipl.SendPort createSendPort(ibis.ipl.PortType portType) throws java.io.IOException- Specified by:
createSendPortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
createSendPort
public ibis.ipl.SendPort createSendPort(ibis.ipl.PortType portType, java.lang.String name) throws java.io.IOException- Specified by:
createSendPortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
createSendPort
public ibis.ipl.SendPort createSendPort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.SendPortDisconnectUpcall cU, java.util.Properties props) throws java.io.IOException- Specified by:
createSendPortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
closeSendPort
public void closeSendPort(MultiSendPort port)
-
closeReceivePort
public void closeReceivePort(MultiReceivePort port)
-
createReceivePort
public ibis.ipl.ReceivePort createReceivePort(ibis.ipl.PortType portType, java.lang.String name) throws java.io.IOException- Specified by:
createReceivePortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
createReceivePort
public ibis.ipl.ReceivePort createReceivePort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.MessageUpcall u) throws java.io.IOException- Specified by:
createReceivePortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
createReceivePort
public ibis.ipl.ReceivePort createReceivePort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.ReceivePortConnectUpcall cU) throws java.io.IOException- Specified by:
createReceivePortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
createReceivePort
public ibis.ipl.ReceivePort createReceivePort(ibis.ipl.PortType portType, java.lang.String name, ibis.ipl.MessageUpcall u, ibis.ipl.ReceivePortConnectUpcall cU, java.util.Properties props) throws java.io.IOException- Specified by:
createReceivePortin interfaceibis.ipl.Ibis- Throws:
java.io.IOException
-
mapIdentifier
public MultiIbisIdentifier mapIdentifier(ibis.ipl.IbisIdentifier ibisId, java.lang.String ibisName) throws java.io.IOException
- 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
-
mapSendPortIdentifier
public ibis.ipl.SendPortIdentifier mapSendPortIdentifier(ibis.ipl.SendPortIdentifier johnDoe, java.lang.String ibisName) throws java.io.IOException- Throws:
java.io.IOException
-
mapReceivePortIdentifier
public ibis.ipl.ReceivePortIdentifier mapReceivePortIdentifier(ibis.ipl.ReceivePortIdentifier johnDoe, java.lang.String ibisName) throws java.io.IOException- Throws:
java.io.IOException
-
resolved
public void resolved(MultiIbisIdentifier id)
-
isResolved
public boolean isResolved(ibis.ipl.IbisIdentifier toResolve)
-
-