public interface DeploymentModuleIO
| Modifier and Type | Method and Description |
|---|---|
void |
commit()
Updates the archive, creating it if required.
|
java.io.InputStream |
getInputStream(ArchiveEntry entry)
Return an input stream that can be used to read the contents of an ArchiveEntry.
|
java.io.OutputStream |
getOutputStream(ArchiveEntry entry)
Return an output stream that can be used to update an ArchiveEntry.
|
java.net.URL |
getURL()
Returns the URL this IO is managing.
|
void |
load()
Load a DeploymentModule with information found at moduleIO.getURL()
|
void |
load(java.net.URL url)
Load an Archive from URL.
|
void |
release() |
void |
rollback() |
void |
setArchive(DeploymentModule archive)
Sets the archive this Module I/O class should operate on.
|
void |
setURL(java.net.URL url)
Only possible on a committed module.
|
void setArchive(DeploymentModule archive) throws java.io.IOException
archive - the Archive to set. Can be null.java.io.IOException - if the rollback did not succeed.java.net.URL getURL()
void setURL(java.net.URL url)
void load() throws java.io.IOException
module - the DeploymentModule that should be refreshed. Any uncommitted
changes will be rolled back, and the state set to COMMITTED.java.io.IOExceptionvoid load(java.net.URL url) throws java.io.IOException
module - url - java.io.IOExceptionjava.io.OutputStream getOutputStream(ArchiveEntry entry) throws java.io.IOException
module.commit() is issued.module - entry - java.io.IOException - if the DeploymentModule is read-only.java.io.InputStream getInputStream(ArchiveEntry entry) throws java.io.IOException
module - entry - java.io.IOException - if an InputStream could not be returned.void commit()
throws java.io.IOException
module - DeployExceptionjava.io.IOExceptionvoid rollback()
throws java.io.IOException
java.io.IOExceptionvoid release()
throws java.io.IOException
java.io.IOException