|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.ecf.provider.generic.SOContainer org.eclipse.ecf.provider.generic.ClientSOContainer org.eclipse.ecf.provider.generic.TCPClientSOContainer org.eclipse.ecf.provider.fileshare.FileShareContainer
public class FileShareContainer
Field Summary | |
---|---|
protected static int |
DEFAULT_CONTAINER_KEEP_ALIVE
|
protected static int |
DEFAULT_TRANSACTION_WAIT
|
Fields inherited from class org.eclipse.ecf.provider.generic.TCPClientSOContainer |
---|
DEFAULT_COMM_NAME, DEFAULT_TCP_CONNECT_TIMEOUT |
Fields inherited from class org.eclipse.ecf.provider.generic.ClientSOContainer |
---|
CONNECTED, CONNECTING, connection, connectionState, connectLock, DISCONNECTED, remoteServerID |
Fields inherited from class org.eclipse.ecf.provider.generic.SOContainer |
---|
config, DEFAULT_OBJECT_ARG_KEY, DEFAULT_OBJECT_ARGTYPES_KEY, groupManager, isClosing, loadingThreadGroup, policy, receiver, sharedObjectManager, sharedObjectThreadGroup |
Constructor Summary | |
---|---|
FileShareContainer(ISharedObjectContainerConfig config)
|
Method Summary | |
---|---|
IFileShare |
createRetriever(ID fileShareID,
ID remoteSrc,
java.io.File targetFile,
IFileShareListener listener,
java.util.Map properties)
Create IFileShare instance for receiving a file |
IFileShare |
createRetriever(IFileShareRetrieveConfig config)
Create IFileShare instance for receiving a file |
protected ISharedObject |
createRetrieverSharedObject(SharedObjectTypeDescription typeDescription,
ID targetFileID,
java.io.File localTarget,
IFileShareListener listener)
|
IFileShare |
createSender(ID fileShareID,
java.io.InputStream inputToSend,
ID remoteTarget,
IFileShareListener listener,
java.util.Map properties)
Create IFileShare instance for sending a file |
IFileShare |
createSender(IFileShareSenderConfig config)
Create IFileShare instance for sending a file |
protected ISharedObject |
createSenderSharedObject(SharedObjectTypeDescription typeDescription,
ISharedObjectTransactionConfig transactionConfig,
IFileShareListener listener,
java.io.InputStream ins,
ID remoteTarget,
java.lang.Long l)
|
java.lang.Object |
getAdapter(java.lang.Class clazz)
|
Namespace |
getFileNamespace()
Get Namespace for identifying remote files. |
IFileShare |
getFileShare(ID fileShareID)
Get IFileShare instance from container |
Namespace |
getFileShareNamespace()
Get Namespace for creating new IFileShare IDs. |
protected SharedObjectDescription |
getFileShareRetrieverDescription()
|
protected SharedObjectDescription |
getFileShareSenderDescription()
|
protected ISharedObjectTransactionConfig |
getFileShareSenderTransactionConfig()
|
boolean |
removeFileShare(ID fileShareID)
Remove IFileShare instance from container |
Methods inherited from class org.eclipse.ecf.provider.generic.TCPClientSOContainer |
---|
createConnection, getConnectTimeout, main |
Methods inherited from class org.eclipse.ecf.provider.generic.ClientSOContainer |
---|
connect, createAuthorizationCallbacks, createConnectData, disconnect, dispose, forwardExcluding, forwardExcluding, forwardToRemote, getConnectedID, getConnection, getConnectLock, getIDForConnection, getLeaveData, handleConnectResponse, handleLeaveGroupMessage, handleViewChangeMessage, isConnected, isConnecting, isGroupManager, memberLeave, processAsynch, processDisconnect, processSynch, queueContainerMessage, sendCreateMsg, sendMessage |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final int DEFAULT_CONTAINER_KEEP_ALIVE
protected static final int DEFAULT_TRANSACTION_WAIT
Constructor Detail |
---|
public FileShareContainer(ISharedObjectContainerConfig config)
Method Detail |
---|
protected SharedObjectDescription getFileShareSenderDescription() throws IDCreateException
IDCreateException
protected SharedObjectDescription getFileShareRetrieverDescription() throws IDCreateException
IDCreateException
protected ISharedObject createSenderSharedObject(SharedObjectTypeDescription typeDescription, ISharedObjectTransactionConfig transactionConfig, IFileShareListener listener, java.io.InputStream ins, ID remoteTarget, java.lang.Long l) throws SharedObjectCreateException
SharedObjectCreateException
protected ISharedObject createRetrieverSharedObject(SharedObjectTypeDescription typeDescription, ID targetFileID, java.io.File localTarget, IFileShareListener listener) throws SharedObjectCreateException
SharedObjectCreateException
public IFileShare createSender(ID fileShareID, java.io.InputStream inputToSend, ID remoteTarget, IFileShareListener listener, java.util.Map properties) throws ECFException
IFileShareContainerAdapter
createSender
in interface IFileShareContainerAdapter
fileShareID
- the ID for the new IFileShare instance. This ID must be created with the namespace
returned from IFileShareContainerAdapter.getFileShareNamespace()
. Must not be null.inputToSend
- the InputStream representing access to the local file being sent. Must not be null.remoteTarget
- the ID specifying the file name on the remote system. This ID must be created
with the namespace returned from IFileShareContainerAdapter.getFileNamespace()
.listener
- the IFileShareListener to receive asynchronous notifications as the file sharing
is performedproperties
- a Map of properties associated with the IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parametersprotected ISharedObjectTransactionConfig getFileShareSenderTransactionConfig()
public IFileShare createSender(IFileShareSenderConfig config) throws ECFException
IFileShareContainerAdapter
createSender
in interface IFileShareContainerAdapter
config
- IFileShareSenderConfig defining the configuration for the new IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parameterspublic IFileShare getFileShare(ID fileShareID)
IFileShareContainerAdapter
getFileShare
in interface IFileShareContainerAdapter
fileShareID
- the ID of the IFileShare instance to retrieve
public boolean removeFileShare(ID fileShareID)
IFileShareContainerAdapter
removeFileShare
in interface IFileShareContainerAdapter
fileShareID
- the ID of the IFileShare instance to remove
public java.lang.Object getAdapter(java.lang.Class clazz)
getAdapter
in interface org.eclipse.core.runtime.IAdaptable
getAdapter
in interface org.eclipse.ecf.core.IContainer
getAdapter
in class SOContainer
public Namespace getFileShareNamespace()
IFileShareContainerAdapter
getFileShareNamespace
in interface IFileShareContainerAdapter
public IFileShare createRetriever(IFileShareRetrieveConfig config) throws ECFException
IFileShareContainerAdapter
createRetriever
in interface IFileShareContainerAdapter
config
- IFileShareSenderConfig defining the configuration for the new IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parameterspublic IFileShare createRetriever(ID fileShareID, ID remoteSrc, java.io.File targetFile, IFileShareListener listener, java.util.Map properties) throws ECFException
IFileShareContainerAdapter
createRetriever
in interface IFileShareContainerAdapter
fileShareID
- the ID for the new IFileShare instance. This ID must be created with the namespace
returned from IFileShareContainerAdapter.getFileShareNamespace()
. Must not be null.remoteSrc
- the ID specifying the file name on the remote system to retrieve. This ID must be created
with the namespace returned from IFileShareContainerAdapter.getFileNamespace()
.targetFile
- a target file/directory on local file system for storage of the retrieved filelistener
- the IFileShareListener to receive asynchronous notifications as the file sharing
is performedproperties
- a Map of properties associated with the IFileShare instance
ECFException
- if some problem with creating the IFileShare instance given input parameterspublic Namespace getFileNamespace()
IFileShareContainerAdapter
getFileNamespace
in interface IFileShareContainerAdapter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |