public abstract class BaseServiceImpl extends AbstractServiceImpl implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Object |
mLastUploadId
last uploaded object reference
|
CANNED_RESPONSE, I18NBUNDLE, isRemoteConnection, remoteConnection| Constructor and Description |
|---|
BaseServiceImpl()
Constructor - Constructs a new instance of AbstractServiceImpl
|
BaseServiceImpl(MBeanServerConnection serverConnection)
Constructor - Constructs a new instance of AbstractServiceImpl
|
BaseServiceImpl(MBeanServerConnection serverConnection,
boolean isRemoteConnection)
Constructor - Constructs a new instance of AbstractServiceImpl
|
| Modifier and Type | Method and Description |
|---|---|
String |
downloadFile(String dir,
String serverFilePath)
this method downloads a file from the server
|
protected void |
removeUploadedFile()
this method tries to remove the last uploaded file on the server.
|
protected String |
uploadFile(String localFilePath)
this method uploads the local file to the server using
FileTransferManager and returns the path to the file on the server's file
schemaorg_apache_xmlbeans.system which can be used to do any operations on the file/file data on
the server side.
|
getAdministrationServiceMBeanObjectName, getConfigurationServiceMBeanObjectName, getDeploymentServiceMBeanObjectName, getI18NBundle, getInstallationServiceMBeanObjectName, getMBeanServerConnection, getNotificationServiceMBeanObjectName, getPerformanceMeasurementServiceMBeanObjectName, getRuntimeManagementServiceMBeanObjectName, invokeMBeanOperation, invokeMBeanOperation, isRegistered, isRemoteConnection, listTargetNames, queryNamesprotected Object mLastUploadId
public BaseServiceImpl()
public BaseServiceImpl(MBeanServerConnection serverConnection)
serverConnection - public BaseServiceImpl(MBeanServerConnection serverConnection, boolean isRemoteConnection)
serverConnection - isRemoteConnection - protected String uploadFile(String localFilePath) throws ManagementRemoteException
localFilePath - file path on the local file schemaorg_apache_xmlbeans.system.ManagementRemoteException - if error or exception occurs.protected void removeUploadedFile()
public String downloadFile(String dir, String serverFilePath) throws ManagementRemoteException
dir - dir to download the file intoserverFilePath - the file path in the serverManagementRemoteException - if error or exception occurs.Copyright © 2011-2016 OpenESB Community. All Rights Reserved.