|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
org.mbari.siam.operations.portal.Portal
public class Portal
Portal is the "gateway" between clients on the local network, and a remote node server located on the far side of a low-bandwidth/intermittent connection.
When a communications link to the node is available, the Portal attempts to retrieve data from the node's sensors. The retrieved packets are then distributed to shore clients, as well as saved in a file buffer. The Portal keeps track of which packets it has retrieved from each sensor; on subsequent retrievals it requests the "latest" data from the sensor.
| Field Summary |
|---|
| Fields inherited from class java.rmi.server.RemoteObject |
|---|
ref |
| Constructor Summary | |
|---|---|
Portal(java.lang.String[] primaryNodeNames,
long startRetrieveTime,
boolean publishPackets,
java.lang.String logDirectory,
boolean doProfile,
boolean doWDT,
java.util.Vector preferredNodes,
boolean resumeStreams)
Construct Portal for specified node. |
|
| Method Summary | |
|---|---|
protected void |
getProperties()
Look for System property "leaseTime", "readTimeout", "downloadInterval", and "systemCommand" |
static void |
main(java.lang.String[] args)
|
void |
nodeLinkNotify(java.net.InetAddress remoteAddr,
boolean connected)
Notify PortalConnections that network link has come up/down |
boolean |
primaryLinkConnected(java.net.InetAddress address)
Return true if portal has network connection to specified primary node. |
void |
run()
Wait for and accept new client connection; add new client to list of clients. |
| 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 |
| Constructor Detail |
|---|
public Portal(java.lang.String[] primaryNodeNames,
long startRetrieveTime,
boolean publishPackets,
java.lang.String logDirectory,
boolean doProfile,
boolean doWDT,
java.util.Vector preferredNodes,
boolean resumeStreams)
throws java.rmi.RemoteException,
java.net.UnknownHostException,
java.io.IOException,
java.lang.Exception
java.rmi.RemoteException
java.net.UnknownHostException
java.io.IOException
java.lang.Exception| Method Detail |
|---|
public void run()
protected void getProperties()
public void nodeLinkNotify(java.net.InetAddress remoteAddr,
boolean connected)
nodeLinkNotify in interface PortalInterface
public boolean primaryLinkConnected(java.net.InetAddress address)
throws java.rmi.RemoteException,
java.lang.Exception
primaryLinkConnected in interface PortalInterfacejava.rmi.RemoteException
java.lang.Exceptionpublic static void main(java.lang.String[] args)
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||