|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.rmi.server.RemoteObject | +--java.rmi.server.RemoteServer | +--java.rmi.server.UnicastRemoteObject | +--cad.simcad.mdt_server.mdt_serverI
Unicast remote object implementing remote interface.
Field Summary | |
static java.lang.String |
MDT_REMOTE_NAME
|
static java.lang.String |
MDT_REMOTE_PORT
|
static int |
PERIOD
|
static int |
REGISTRY_PORT
|
Fields inherited from class java.rmi.server.RemoteObject |
ref |
Constructor Summary | |
mdt_serverI()
Constructs mdt_serverI object and exports it on default port and connection on localhost. |
Method Summary | |
void |
directSetToBeep(Id VehId)
JMi va etre fache pasque on a change une interface... |
Status[] |
getAllStatus()
Returns a snapshot of the Status of all emergency vehicules |
Status |
getStatus(Id id)
Returns the Status of object with Id id |
static void |
registerToRegistry(java.lang.String name,
java.rmi.Remote obj,
boolean create)
Register mdt_serverI object with the RMI registry. |
void |
sendIncidentToRemote(Incident i)
Send Incident info. |
void |
setStatus(Status newStatus)
Set the Status |
Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static java.lang.String MDT_REMOTE_NAME
public static int PERIOD
public static int REGISTRY_PORT
public static java.lang.String MDT_REMOTE_PORT
Constructor Detail |
public mdt_serverI() throws java.rmi.RemoteException
Method Detail |
public static void registerToRegistry(java.lang.String name, java.rmi.Remote obj, boolean create) throws java.rmi.RemoteException, java.net.MalformedURLException
name
- - name identifying the service in the RMI registrycreate
- - create local registry if necessary
java.rmi.RemoteException
- if cannot be exported or bound to RMI registry
java.net.MalformedURLException
- if name cannot be used to construct a valid URL
java.lang.IllegalArgumentException
- if null passed as namepublic Status[] getAllStatus()
MDTCentralizer
getAllStatus
in interface MDTCentralizer
public Status getStatus(Id id)
MDTCentralizer
getStatus
in interface MDTCentralizer
public void sendIncidentToRemote(Incident i) throws ConnectionToObjectException, VehiculeAssociationException, java.rmi.RemoteException
MDTCentralizer
sendIncidentToRemote
in interface MDTCentralizer
i
- the Incident
VehiculeAssociationException
- if the Vehicule associated with Incident i is no more a valid vehicule
Exception will tell the reason. Probably because current Status is not "free"
ConnectionToObjectException
- if there was physical problem during the
connection to the remote Vehicule (via MDT)
java.rmi.RemoteException
public void setStatus(Status newStatus) throws java.rmi.RemoteException
MDTConnector
setStatus
in interface MDTConnector
java.rmi.RemoteException
public void directSetToBeep(Id VehId)
MDTCentralizer
directSetToBeep
in interface MDTCentralizer
|
![]() |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |