|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface MeshKeeper
MeshKeeper
MeshKeeper provides a collection of facilities that assist Java applications to
discover, launch, coordinate, and control remote processes across a grid of computers.
| Nested Class Summary | |
|---|---|
static interface |
MeshKeeper.DistributionRef<D>
DistributionRef |
static interface |
MeshKeeper.Eventing
Eventing |
static interface |
MeshKeeper.Launcher
Launcher |
static interface |
MeshKeeper.Registry
Registry |
static interface |
MeshKeeper.Remoting
Remoting |
static interface |
MeshKeeper.Repository
Repository |
| Method Summary | ||
|---|---|---|
void |
destroy()
Closes the distributor cleaning up all distributed references. |
|
|
distribute(String path,
boolean sequential,
S distributable,
Class<?>... serviceInterfaces)
This is a convenience method to export an Object and register it's proxy, allowing other components in the mesh to discover it. |
|
MeshKeeper.Eventing |
eventing()
Gets the Eventing support interface. |
|
ScheduledExecutorService |
getExecutorService()
Accesses the MeshKeeper's executor. |
|
String |
getRegistryConnectUri()
Gets a uri which can be used to connect to a meshkeeper server |
|
ClassLoader |
getUserClassLoader()
Gets the user class loader. |
|
String |
getUUID()
Gets this meshkeepers unique id, creating one if one has not been set. |
|
MeshKeeper.Launcher |
launcher()
Gets the launcher support interface. |
|
MeshKeeper.Registry |
registry()
Gets the Mesh Registy support interface. |
|
MeshKeeper.Remoting |
remoting()
Gets the Remoting support interface. |
|
MeshKeeper.Repository |
repository()
Gets the Repository support interface. |
|
void |
setUserClassLoader(ClassLoader classLoader)
Sets the user class loader. |
|
String |
setUUID(String prefix)
Sets a unique id for this meshkeeper instance, if not already set. |
|
void |
start()
Starts distributor services. |
|
void |
undistribute(Object distributable)
Called to undistribute a previously distributed object. |
|
| Method Detail |
|---|
String getRegistryConnectUri()
void start()
throws Exception
Exception
void destroy()
throws Exception
ExceptionString setUUID(String prefix)
MeshKeeper services such as
MeshKeeper.Eventing and MeshKeeper.Registry to create unique name spaces.
prefix - The prefix.
String getUUID()
<T,S extends T> MeshKeeper.DistributionRef<T> distribute(String path,
boolean sequential,
S distributable,
Class<?>... serviceInterfaces)
throws Exception
Object proxy = registry().export(distributable, serviceInterfaces);
remoting().addRegistryObject(path, true, proxy);
It is best practice to call #undistribute(Object)) once the
object is no longer needed.
path - The path at which to register the exported object.sequential - Whether the registry path should be registered as a unique
node at the given path.distributable - The object.
MeshKeeper.DistributionRef for distributed object.
Exception
void undistribute(Object distributable)
throws Exception
#unexport(Object);
#removeRegistryObject(String, boolean, Serializable);
distributable - The object that previously distributed.
ExceptionScheduledExecutorService getExecutorService()
void setUserClassLoader(ClassLoader classLoader)
classLoader - The user classloader.ClassLoader getUserClassLoader()
MeshKeeper.Registry registry()
MeshKeeper.Remoting remoting()
MeshKeeper.Eventing eventing()
MeshKeeper.Repository repository()
MeshKeeper.Launcher launcher()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||