|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object service.DistributedServicesMiddleware
public class DistributedServicesMiddleware
Access point to the middleware and associated services.
Nested Class Summary | |
---|---|
protected class |
DistributedServicesMiddleware.MessageReader
Inner class that manage all received messages and dispatch them to the required services thanks to a message dispatcher |
Field Summary | |
---|---|
protected BasicBroadcastService |
basicBroadcastService
Basic broadcast access point. |
protected CommunicationElement |
commElt
The underlying communication element for communicating with other processes. |
protected ProxyCommunication |
commService
Communication service access point |
protected MessageDispatcher |
dispatcher
Message dispatcher for dispatching received message to the associated service |
protected IdentificationService |
idService
Identification service access point |
protected ReliableBroadcastService |
reliableBroadcastService
Reliable broadcast access point. |
Constructor Summary | |
---|---|
DistributedServicesMiddleware()
|
Method Summary | |
---|---|
void |
connect()
Connect the process to the system using default value, that is, without communication delays or errors. |
void |
connect(ReliabilitySetting setting)
Connect the process to the system using reliability settings. |
void |
connect(ReliabilitySetting setting,
int localPort)
Connect the process to the system using reliability settings and a specific TCP port. |
void |
disconnect()
Disconnect the process from the system |
IBroadcast |
getBasicBroadcastService()
|
ICommunication |
getCommunicationService()
|
IIdentification |
getIdentificationService()
|
IBroadcast |
getReliableBroadcastService()
|
protected void |
initServices()
Initialize the services. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected CommunicationElement commElt
protected ProxyCommunication commService
protected IdentificationService idService
protected BasicBroadcastService basicBroadcastService
protected ReliableBroadcastService reliableBroadcastService
protected MessageDispatcher dispatcher
Constructor Detail |
---|
public DistributedServicesMiddleware()
Method Detail |
---|
public void connect() throws CommunicationException
IDistributedServices
connect
in interface IDistributedServices
CommunicationException
- in case of problem during the connectionpublic void connect(ReliabilitySetting setting) throws CommunicationException
IDistributedServices
connect
in interface IDistributedServices
setting
- reliability settings to use for the current process
CommunicationException
- in case of problem during the connectionpublic void connect(ReliabilitySetting setting, int localPort) throws CommunicationException
IDistributedServices
connect
in interface IDistributedServices
setting
- reliability settings to use for the current processlocalPort
- TCP port to be used by the server socket of the communication layer
CommunicationException
- in case of problem during the connectionpublic void disconnect()
IDistributedServices
disconnect
in interface IDistributedServices
public ICommunication getCommunicationService()
getCommunicationService
in interface IDistributedServices
public IIdentification getIdentificationService()
getIdentificationService
in interface IDistributedServices
public IBroadcast getBasicBroadcastService()
getBasicBroadcastService
in interface IDistributedServices
public IBroadcast getReliableBroadcastService()
getReliableBroadcastService
in interface IDistributedServices
protected void initServices()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |