|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jso.engine.JSOEnvironment
Class that represents the storage environment of an application.
Constructor Summary | |
JSOEnvironment()
|
Method Summary | |
java.lang.String |
getApplicationName()
Return application's name. |
StorageController |
getController()
Returns applications's storage controller. |
StorageManager |
getManager()
Returns local node's storage manager. |
static void |
main(java.lang.String[] args)
Starts a distributed application. |
void |
startDistributed(java.lang.String appName)
Starts a storage controller in the current JVM and binds it to local node's object registry, so that it become available to other nodes. |
void |
startDistributed(java.lang.String host,
java.lang.String appName)
Starts a storage manager and points to a storage controller bound to a specific host's object registry. |
void |
startLocal()
Starts a storage manager and a storage controller in the current JVM. |
void |
startLocalShared(java.lang.String appName)
Starts a storage manager and a storage controller in the current JVM, but binds controller to local node's object registry, so that it become available to other nodes. |
void |
stop()
Stops either a storage controller or a storage manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JSOEnvironment()
Method Detail |
public void startLocal() throws StorageException
startLocal
in interface StorageEnvironment
StorageException
public void startLocalShared(java.lang.String appName) throws StorageException
startLocalShared
in interface StorageEnvironment
appName
- Application's name.
StorageException
public void startDistributed(java.lang.String host, java.lang.String appName) throws StorageException
startDistributed
in interface StorageEnvironment
host
- Node that hosts object registry to which controller is
bound.appName
- Application's name.
StorageException
public void startDistributed(java.lang.String appName) throws StorageException
startDistributed
in interface StorageEnvironment
appName
- Application's name.
StorageException
public void stop() throws StorageException
stop
in interface StorageEnvironment
StorageException
public static void main(java.lang.String[] args) throws java.lang.Exception
args[0]
must contain
application's name.
java.lang.Exception
startDistributed(String)
public StorageController getController()
getController
in interface StorageEnvironment
public StorageManager getManager()
getManager
in interface StorageEnvironment
public java.lang.String getApplicationName()
getApplicationName
in interface StorageEnvironment
null
if applications is local.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |