|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.rmi.server.RemoteObject
java.rmi.server.RemoteServer
java.rmi.server.UnicastRemoteObject
net.dpml.util.UnicastEventSource
net.dpml.transit.DefaultModel
net.dpml.transit.DefaultTransitModel
The DefaultTransitModel class maintains an active configuration of the Transit system.
| Field Summary | |
static String |
DEFAULT_PROFILE_PATH
Default configuration url path. |
static URI |
DEFAULT_PROFILE_URI
Default configuration url path. |
static String |
PROFILE_KEY
System property key used to hold an overriding configuration url. |
| Fields inherited from class java.rmi.server.RemoteObject |
ref |
| Constructor Summary | |
DefaultTransitModel(EventQueue queue,
Logger logger,
TransitDirective directive)
Creation of a new TransitModel using a supplied configuration and logging channel. |
|
DefaultTransitModel(Logger logger,
TransitDirective directive)
Creation of a new TransitModel using a supplied configuration and logging channel. |
|
| Method Summary | |
void |
addDisposalListener(DisposalListener listener)
Add a disposal listener to the model. |
void |
dispose()
Trigger disposal of the transit model. |
CacheModel |
getCacheModel()
Return the cache model. |
static DefaultTransitModel |
getDefaultModel()
Resolve the transit configuration using the default resource path local:xml:dpml/transit/config. |
static DefaultTransitModel |
getDefaultModel(Logger logger)
Resolve the transit configuration using the default resource path local:xml:dpml/transit/config. |
static DefaultTransitModel |
getDefaultModel(String category)
Resolve the transit configuration using the default resource path local:xml:dpml/transit/config. |
ProxyModel |
getProxyModel()
Return the proxy configuration model. |
static DefaultTransitModel |
getSecureModel(Logger logger)
Return a model that is restricted to the secure local environment with no proxy setting or external hosts. |
void |
processEvent(EventObject eventObject)
Internal event handler. |
void |
removeDisposalListener(DisposalListener listener)
Remove a disposal listener from the model. |
| Methods inherited from class net.dpml.transit.DefaultModel |
enqueueEvent, getLogger |
| Methods inherited from class net.dpml.util.UnicastEventSource |
addListener, enqueueEvent, getEventListeners, getEventQueue, getLocalLogger, getLock, removeListener, terminate |
| Methods inherited from class java.rmi.server.UnicastRemoteObject |
clone, exportObject, exportObject, exportObject, unexportObject |
| Methods inherited from class java.rmi.server.RemoteServer |
getClientHost, getLog, setLog |
| Methods inherited from class java.rmi.server.RemoteObject |
equals, getRef, hashCode, toString, toStub |
| Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final String DEFAULT_PROFILE_PATH
public static final URI DEFAULT_PROFILE_URI
public static final String PROFILE_KEY
| Constructor Detail |
public DefaultTransitModel(Logger logger,
TransitDirective directive)
throws RemoteException,
NullPointerException
logger - the assigned loging channeldirective - the transit configuration
NullPointerException - if the logger or directive arguments are null
RemoteException - if a remote exception occurs
public DefaultTransitModel(EventQueue queue,
Logger logger,
TransitDirective directive)
throws RemoteException,
NullPointerException
queue - the event queuelogger - the assigned logging channeldirective - the transit configuration
NullPointerException - if the logger or directive arguments are null
RemoteException - if a remote exception occurs| Method Detail |
public static DefaultTransitModel getSecureModel(Logger logger)
logger - the logging channel to assign to the model
public static DefaultTransitModel getDefaultModel()
throws Exception
Exception - if an error occurs during model construction
public static DefaultTransitModel getDefaultModel(String category)
throws Exception
category - the logging channel category name
Exception - if an error occurs during model construction
public static DefaultTransitModel getDefaultModel(Logger logger)
throws Exception
logger - the logging channel
Exception - if an error occurs during model constructionpublic ProxyModel getProxyModel()
getProxyModel in interface TransitModelpublic CacheModel getCacheModel()
getCacheModel in interface TransitModelpublic void addDisposalListener(DisposalListener listener)
addDisposalListener in interface TransitModellistener - the listener to addpublic void removeDisposalListener(DisposalListener listener)
removeDisposalListener in interface TransitModellistener - the listener to removepublic void processEvent(EventObject eventObject)
processEvent in interface EventHandlerprocessEvent in class UnicastEventSourceeventObject - the event to handlepublic void dispose()
dispose in interface Disposabledispose in class DefaultModel
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||