public class ArchiveUpload extends Object implements ArchiveUploadMBean
ARCHIVE_NAME| Constructor and Description |
|---|
ArchiveUpload(ManagementContext ctx) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArchiveFilePath(Object id)
Returns the absolute path to the location of the uploaded archive.
|
String |
getArchiveURL(Object id)
Returns the location of the uploaded archive.
|
Object |
initiateUpload(String archiveName)
Initiates an upload session.
|
boolean |
removeArchive(Object id)
Delete the uploaded archive.
|
void |
terminateAllUploads() |
void |
terminateUpload(Object id,
Long timestamp)
Used to indicate that the upload session with the specified id is
complete.
|
void |
uploadBytes(Object id,
byte[] bytes)
Uploads a chunk of bytes to an existing temporary archive file.
|
public ArchiveUpload(ManagementContext ctx)
public Object initiateUpload(String archiveName) throws IOException
uploadBytes() method.initiateUpload in interface ArchiveUploadMBeanIOExceptionpublic void uploadBytes(Object id, byte[] bytes) throws IOException
uploadBytes in interface ArchiveUploadMBeanid - the upload identifierbytes - the content to uploadIOExceptionpublic void terminateUpload(Object id, Long timestamp) throws IOException
terminateUpload in interface ArchiveUploadMBeanIOExceptionpublic void terminateAllUploads()
public String getArchiveURL(Object id)
getArchiveURL in interface ArchiveUploadMBeanid - the upload identifierpublic String getArchiveFilePath(Object id)
getArchiveFilePath in interface ArchiveUploadMBeanid - the upload identifierpublic boolean removeArchive(Object id)
removeArchive in interface ArchiveUploadMBeanCopyright © 2011-2016 OpenESB Community. All Rights Reserved.