|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.dpml.transit.Transit
The Transit class manages the establishment of a singleton transit instance together with a service supporting the deployment of a application plugin and access to transit monitor routers.
Field Summary | |
static String |
DATA_KEY
DPML home key. |
static File |
DPML_DATA
The Transit personal data directory. |
static File |
DPML_HOME
The DPML home directory established via assesment of the the ${dpml.home} system property and the DPML_HOME environment variable. |
static File |
DPML_PREFS
The Transit personal preferences directory. |
static File |
DPML_SYSTEM
If a system property named "dpml.system" is defined then the value is assigned otherwise the implementation will look for an environment variable named "DPML_SYSTEM". |
static String |
HOME_KEY
DPML home key. |
static String |
HOME_SYMBOL
DPML environment variable string. |
static String |
PREFS_KEY
DPML home key. |
static String |
SHARE_KEY
Transit share key (alias to dpml.system). |
static String |
SYSTEM_KEY
Transit system key. |
static String |
SYSTEM_SYMBOL
DPML environment variable string. |
static String |
VERSION
The Transit system version. |
Method Summary | |
File |
getCacheDirectory()
Return the current cache directory. |
Layout |
getCacheLayout()
Return the cache layout. |
CacheMonitorRouter |
getCacheMonitorRouter()
Returns a reference to the cache monitor router. |
static Transit |
getInstance()
Returns the singleton instance of the transit system. |
static Transit |
getInstance(TransitModel model)
Returns the singleton instance of the transit system. |
Layout |
getLayout(String id)
Return a layout object matching the supplied identifier. |
LinkManager |
getLinkManager()
Return the link manager. |
PrintWriter |
getLogWriter()
Returns the LogWriter for the Transit system. |
NetworkMonitorRouter |
getNetworkMonitorRouter()
Returns a reference to the netowork monitor router. |
RepositoryMonitorRouter |
getRepositoryMonitorRouter()
Returns a reference to the repository monitor router. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String HOME_KEY
public static final String DATA_KEY
public static final String PREFS_KEY
public static final String SYSTEM_KEY
public static final String SHARE_KEY
public static final String HOME_SYMBOL
public static final String SYSTEM_SYMBOL
public static final File DPML_HOME
public static final File DPML_SYSTEM
public static final File DPML_DATA
public static final File DPML_PREFS
public static final String VERSION
Method Detail |
public static Transit getInstance() throws TransitError
TransitError
- if an error occurs during establishmentDefaultTransitModel.getDefaultModel()
public static Transit getInstance(TransitModel model) throws IOException, TransitAlreadyInitializedException
model
- the activate transit model
IOException
- if an error occurs during establishment
TransitAlreadyInitializedException
- if Transit is already initializedpublic File getCacheDirectory()
public LinkManager getLinkManager()
public Layout getCacheLayout()
public Layout getLayout(String id) throws UnknownKeyException, IOException
id
- the layout identifier
UnknownKeyException
- if the supplied layout id is unknown
IOException
- if an IO error occurspublic RepositoryMonitorRouter getRepositoryMonitorRouter()
public CacheMonitorRouter getCacheMonitorRouter()
public NetworkMonitorRouter getNetworkMonitorRouter()
public PrintWriter getLogWriter()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |