|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.codehaus.mojo.mrm.plugin.FileSystemServer
public class FileSystemServer
A file system server.
| Constructor Summary | |
|---|---|
FileSystemServer(String name,
int port,
org.codehaus.mojo.mrm.api.FileSystem fileSystem)
Creates a new file system server that will serve a FileSystem over HTTP on the specified port. |
|
| Method Summary | |
|---|---|
void |
ensureStarted()
Ensures that the file system server is started (if already starting, will block until started, otherwise starts the file system server and blocks until started) |
void |
finish()
Signal the file system server to shut down. |
int |
getPort()
Gets the port that the file system server is/will server on. |
String |
getUrl()
Gets the root url that the file system server is/will server on. |
boolean |
isFinished()
Returns true if and only if the file system server is finished. |
boolean |
isStarted()
Returns true if and only if the file system server is started. |
void |
waitForFinished()
Blocks until the file system server has actually shut down. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public FileSystemServer(String name,
int port,
org.codehaus.mojo.mrm.api.FileSystem fileSystem)
FileSystem over HTTP on the specified port.
name - The name of the file system server thread.port - The port to server on or 0 to pick a random, but available, port.fileSystem - the file system to serve.| Method Detail |
|---|
public void ensureStarted()
throws org.apache.maven.plugin.MojoExecutionException
org.apache.maven.plugin.MojoExecutionException - if the file system server could not be started.public boolean isFinished()
true if and only if the file system server is finished.
true if and only if the file system server is finished.public boolean isStarted()
true if and only if the file system server is started.
true if and only if the file system server is started.public void finish()
public void waitForFinished()
throws InterruptedException
InterruptedException - if interrupted.
IllegalStateException - if called before a call to finish().public int getPort()
public String getUrl()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||