Summary: Removes all Entries and templates from the space.
Syntax
Description Removes all Entries and templates from the space. The space clean command is relevant only for spaces in a started state.
 |
When using a persistent space, the clean operation might take some time because it needs to erase data and close database connections. It should not be called when other clients are using the space. When cleaning a clustered space, you may need to clean other cluster spaces as well. |
Specifying a container URL prints a numbered list of all the spaces in the container. You can then choose which space to clean, or all (cleans all spaces). Specifying a URL of a clustered space prints a list of all spaces in the cluster, and you can choose a space to clean by its number, or all (lists all spaces).
 |
Using -c (or -cluster) with a URL of a clustered space cleans all cluster members. |
Options
Option |
Description |
Value Format |
url |
The URL of the space you want to clean, or of the container – cleans the spaces under that container. |
Container URL: jini://localhost/my_container rmi://localhost:10098/my_container Space URL: jini://localhost/my_container/mySpace rmi://localhost:10098/my_container |
cluster / c |
Cleans all spaces in the cluster. |
|
template |
The template for the class of objects you want to remove from the space. |
com.j_spaces.examples.benchmark.messages.MessageSerializable |
help / h |
Prints help – the command's usage and options. |
|
user |
User name for login to secured space – optional parameter |
|
password |
Password for login to secured space – optional parameter |
|
Example Tbe following prints a numbered list of spaces, and you can choose a space to clean by its number, or all (cleans all spaces).
The following cleans all objects in the MessageSerializable class, from a space named mySpace.
|