AppToolKit
Keywords: uk.ac.ic.doc.automed.p2p.AppToolKit class

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## uk.ac.ic.doc.automed.p2p
Class AppToolKit

    java.lang.Object
      uk.ac.ic.doc.automed.p2p.AppToolKit

    public class AppToolKit

extends java.lang.Object

Nested Class Summary
`static class` | `AppToolKit.NodeConfig` Inner class to define a server configuration

Constructor Summary
`AppToolKit()` Creates a new instance of AppToolKit

Method Summary
`static AppToolKit.NodeConfig` | `getConfig()` Return the P2PDirectory config.
`static AppToolKit.NodeConfig` | `getConfig(java.lang.String cfgFile)` Return the P2PDirectory config

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AppToolKit

    public AppToolKit()

  Creates a new instance of AppToolKit

Method Detail

### getConfig

    public static AppToolKit.NodeConfig getConfig(java.lang.String cfgFile)
                                           throws AutoMedException

  Return the P2PDirectory config

  Parameters:
    `cfgFile` - location of the config file to read
  Throws:
    `AutoMedException`

### getConfig

    public static AppToolKit.NodeConfig getConfig()

  Return the P2PDirectory config. `P2PConstants`.
  This method exists only for backward compatible with existing method of loading configuration parameters.
  It should be deprecated soon. Use `getConfig(String cfgFile)` instead.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD