org.isam.exehda.services
Interface Dispatcher


public interface Dispatcher


Nested Class Summary
static class Dispatcher.Message
           
static interface Dispatcher.MessageBuffer
           
static interface Dispatcher.MessageFlags
           
static class Dispatcher.Port
           
static class Dispatcher.PortAddress
           
static class Dispatcher.PortDescriptor
           
 
Field Summary
static java.lang.String SERVICE_NAME
           
 
Method Summary
 Dispatcher.MessageBuffer allocBuffer(Dispatcher.Port port, Dispatcher.PortAddress tgt, long size, int flags)
          Describe allocBuffer method here.
 Dispatcher.Port createPort(int id)
          Describe createPort method here.
 Dispatcher.PortAddress lookupPort(int id, ApplicationId app, HostId host)
          Describe lookupPort method here.
 Dispatcher.MessageBuffer receive(Dispatcher.Port p, long timeoutMillis)
          Describe receive method here.
 void redirectPort(Dispatcher.PortDescriptor local, Dispatcher.PortDescriptor remote)
          Describe redirectPort method here.
 void releaseBuffer(Dispatcher.MessageBuffer mb)
          Describe releaseBuffer method here.
 void releasePort(Dispatcher.Port p)
          Describe releasePort method here.
 void resumePort(Dispatcher.Port p)
          Describe resumePort method here.
 void send(Dispatcher.Port p, Dispatcher.MessageBuffer m)
          Describe send method here.
 void suspendPort(Dispatcher.Port p)
          Describe suspendPort method here.
 

Field Detail

SERVICE_NAME

public static final java.lang.String SERVICE_NAME
See Also:
Constant Field Values
Method Detail

createPort

public Dispatcher.Port createPort(int id)
Describe createPort method here.

Parameters:
id - an int value
Returns:
a Port value

lookupPort

public Dispatcher.PortAddress lookupPort(int id,
                                         ApplicationId app,
                                         HostId host)
Describe lookupPort method here.

Parameters:
id - an int value
app - an ApplicationId value
host - a HostId value
Returns:
a PortAddress value

releasePort

public void releasePort(Dispatcher.Port p)
Describe releasePort method here.

Parameters:
p - a Port value

suspendPort

public void suspendPort(Dispatcher.Port p)
Describe suspendPort method here.

Parameters:
p - a Port value

resumePort

public void resumePort(Dispatcher.Port p)
Describe resumePort method here.

Parameters:
p - a Port value

redirectPort

public void redirectPort(Dispatcher.PortDescriptor local,
                         Dispatcher.PortDescriptor remote)
Describe redirectPort method here.

Parameters:
local - a PortDescriptor value
remote - a PortDescriptor value

allocBuffer

public Dispatcher.MessageBuffer allocBuffer(Dispatcher.Port port,
                                            Dispatcher.PortAddress tgt,
                                            long size,
                                            int flags)
Describe allocBuffer method here.

Parameters:
port - a Port value
tgt - a PortAddress value
size - a long value
Returns:
a MessageBuffer value

releaseBuffer

public void releaseBuffer(Dispatcher.MessageBuffer mb)
Describe releaseBuffer method here.

Parameters:
mb - a MessageBuffer value

send

public void send(Dispatcher.Port p,
                 Dispatcher.MessageBuffer m)
Describe send method here.

Parameters:
p - a Port value
m - a MessageBuffer value

receive

public Dispatcher.MessageBuffer receive(Dispatcher.Port p,
                                        long timeoutMillis)
Describe receive method here.

Parameters:
p - a Port value
timeoutMillis - a long value
Returns:
a MessageBuffer value