org.tranche.tasks
Class TaskUtil
java.lang.Object
org.tranche.tasks.TaskUtil
public class TaskUtil
- extends java.lang.Object
Utility methods to accomplish specific tasks on network.
- Author:
- Bryan Smith - bryanesmith@gmail.com, James "Augie" Hill - augman85@gmail.com
|
Method Summary |
static void |
deleteMetaData(BigHash hash,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
java.lang.Long uploadTimestamp,
java.lang.String relativePathInDataSet)
|
static void |
deleteMetaData(BigHash hash,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
java.lang.Long uploadTimestamp,
java.lang.String relativePathInDataSet,
java.io.PrintStream out)
|
static Configuration |
getConfiguration(java.lang.String host)
Returns Configuration for a server with specified host. |
static void |
publishPassphrase(BigHash hash,
java.lang.String passphrase,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
long uploadTimestamp,
java.lang.String relativePathInDataSet)
|
static void |
publishPassphrase(BigHash hash,
java.lang.String passphrase,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
long uploadTimestamp,
java.lang.String relativePathInDataSet,
java.io.PrintStream out)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaskUtil
public TaskUtil()
getConfiguration
public static final Configuration getConfiguration(java.lang.String host)
throws java.lang.Exception
Returns Configuration for a server with specified host.
Note that this will temporarily connect to a server if not already connected; however, if already connected to server, will simply use that connection.
- Parameters:
host -
- Returns:
-
- Throws:
java.lang.Exception
deleteMetaData
public static void deleteMetaData(BigHash hash,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
java.lang.Long uploadTimestamp,
java.lang.String relativePathInDataSet)
throws java.lang.Exception
- Parameters:
hash - uploaderName - cert - key - uploadTimestamp - relativePathInDataSet -
- Throws:
java.lang.Exception
deleteMetaData
public static void deleteMetaData(BigHash hash,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
java.lang.Long uploadTimestamp,
java.lang.String relativePathInDataSet,
java.io.PrintStream out)
throws java.lang.Exception
- Throws:
java.lang.Exception
publishPassphrase
public static void publishPassphrase(BigHash hash,
java.lang.String passphrase,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
long uploadTimestamp,
java.lang.String relativePathInDataSet)
throws java.lang.Exception
- Parameters:
hash - passphrase - uploaderName - cert - key - uploadTimestamp - relativePathInDataSet -
- Throws:
java.lang.Exception
publishPassphrase
public static void publishPassphrase(BigHash hash,
java.lang.String passphrase,
java.lang.String uploaderName,
java.security.cert.X509Certificate cert,
java.security.PrivateKey key,
long uploadTimestamp,
java.lang.String relativePathInDataSet,
java.io.PrintStream out)
throws java.lang.Exception
- Parameters:
hash - passphrase - uploaderName - cert - key - uploadTimestamp - relativePathInDataSet - out -
- Throws:
java.lang.Exception
This code is free for use both commercially and non-commercially as stated in the project's license