|
SmartFrog 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RootLocator
Interface which root locators must implement. A root locator implementation maintains the resource which defines a process as being the root or owner process of a host. All other processcompounds in other processes on the same host must be slaves to the root process compound. A root locator should not allow multiple process compounds to identify themself as a root in a single process.
| Method Summary | |
|---|---|
ProcessCompound |
getRootProcessCompound(java.net.InetAddress host)
Gets the root process compound for a given host. |
ProcessCompound |
getRootProcessCompound(java.net.InetAddress hostAddress,
int portNum)
Gets the root process compound for a given host on a specified port. |
void |
setRootProcessCompound(ProcessCompound c)
Set given process compound as the root process compound for this host. |
void |
unbindRootProcessCompound()
Unbinds root process compound from local registry. |
| Method Detail |
|---|
void setRootProcessCompound(ProcessCompound c)
throws SmartFrogException,
java.rmi.RemoteException
c - process compound to set as root
java.rmi.RemoteException - if there is any network/rmi error
SmartFrogException - if failed to set rootgetRootProcessCompound(java.net.InetAddress)
void unbindRootProcessCompound()
throws SmartFrogException,
java.rmi.RemoteException
java.rmi.RemoteException - if there is any network/rmi error
SmartFrogException - if failed to unbind
ProcessCompound getRootProcessCompound(java.net.InetAddress host)
throws java.lang.Exception
host - host to get root compound for
java.lang.Exception - if failed to get process compoundsetRootProcessCompound(org.smartfrog.sfcore.processcompound.ProcessCompound)
ProcessCompound getRootProcessCompound(java.net.InetAddress hostAddress,
int portNum)
throws java.lang.Exception
hostAddress - host to look up root process compoundportNum - port to locate registry for root process conmpound if not
default
java.lang.Exception - if error locating root process compound on hostsetRootProcessCompound(org.smartfrog.sfcore.processcompound.ProcessCompound)
|
SmartFrog CORE 3.10.000 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||