|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.execution.local.file.FileManagerFactory
The file manager factory is the recommended access point for obtaining an instance of the file manager to use. The file manager will begin the starting timeout at a low value and increment it by a constant amount as the new and legacy file server protocol is attempted, if the communication succeeds then the appropriate concrete file manager is created; if the communication fails it will continue alternating between the legacy and new file server protocols until a communication can be made. Each set of attempts will increment the timeout value by a constant value until the maximum amount of query server availability tries is exceeded.
| Method Summary | |
|---|---|
IFileManagerExtended |
create(org.eclipse.hyades.internal.execution.local.control.Connection connection)
Create file manager factory method, uses the entry in the cache if the connection already has a file manager cached -- if a file manager cannot be established due to providers not being able to connect to the file transfer service, null will be returned. |
IFileManagerExtended |
create(java.net.InetSocketAddress fileServerAddress)
Create a new extended file manager instance given the file server address to use (this specifies the IP address and the port) -- this is typically used for testing where the agent controller is not necessary up and running, although it can be used instead of the factory method that takes an agent controller connection. |
IFileManagerExtended |
createTimed(org.eclipse.hyades.internal.execution.local.control.Connection connection,
int iterations)
Creates a file manager used for performance timing measurements |
IFileManagerExtended |
createTimed(java.net.InetSocketAddress fileServerAddress,
int iterations)
Create a new timed file manager for the client to use in timed mode |
static IFileManagerFactory |
getInstance()
Singleton accessor method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static IFileManagerFactory getInstance()
public IFileManagerExtended create(org.eclipse.hyades.internal.execution.local.control.Connection connection)
throws org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
create in interface IFileManagerFactoryconnection - connection to use for this file manager instance
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableExceptionpublic IFileManagerExtended create(java.net.InetSocketAddress fileServerAddress)
create in interface IFileManagerFactoryfileServerAddress - address and port information for server
create(Connection)
public IFileManagerExtended createTimed(org.eclipse.hyades.internal.execution.local.control.Connection connection,
int iterations)
throws org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
createTimed in interface IFileManagerFactoryconnection - the connection to the agent controlleriterations - the number of times each method will be exercised per
invocation in
org.eclipse.hyades.internal.execution.core.file.ServerNotAvailableException
public IFileManagerExtended createTimed(java.net.InetSocketAddress fileServerAddress,
int iterations)
IFileManagerFactory
createTimed in interface IFileManagerFactoryfileServerAddress - address and port information for serveriterations - the number of times each method invocation will be called
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||