public abstract class AbstractServer
extends java.lang.Object
Once a AbstractServer superclass object is created it will continue to exist.
AbstractServer configures RMI to not use port 0, basically a random port, when establishing secondary communication. Instead, RMI is configured to use port 2098. In this way the firewalls for the servers can be configured to only allow traffic on the two ports 2099 & 2098 for RMI. If there are multiple systems running on a single server then need to use a separate secondary port for each system (such as 2097, 2096, etc). Using a specific port for secondary communication is much safer than having to completely open up network traffic.
If another agency is already using the secondary RMI port on the server then will get an exception and e-mail notification is sent out.
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAgencyId() |
static java.lang.String |
getBindName(java.lang.String agencyId,
java.lang.String className)
The name that the server object is bound to needs both the classname
to identify the object but also the agencyId since multiple
projects can be running on a machine that uses a single RMI registry.
|
boolean |
isConstructed()
Specifies if this object was successfully constructed and
is ready for use.
|
public static java.lang.String getBindName(java.lang.String agencyId, java.lang.String className)
agencyId
- className
- public java.lang.String getAgencyId()
public boolean isConstructed()