public final class ServerState extends Object
| Constructor and Description |
|---|
ServerState() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(int index)
Cancels a job.
|
void |
clean()
Removes completed and cancelled jobs from the stat list.
|
Registry |
getRegistry()
Gets the RMI
Registry to register the server with, creating
it if necessary. |
void |
start()
Starts the server.
|
void |
stat(int index)
Prints the status of the jobs running on the server.
|
void |
stop()
Stops the server.
|
public Registry getRegistry() throws RemoteException
Registry to register the server with, creating
it if necessary.Registry to register the server with.RemoteException - If an error occurs while attempting to create
the Registry.public void clean()
public void start()
public void cancel(int index)
index - The 1-based index of the job to cancel.public void stop()
public void stat(int index)
index - The 1-based index of the job to print the status of, or
zero to print the status of all jobs.Copyright © 2017. All rights reserved.