|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--net.larsan.urd.jndi.ContextBase
|
+--net.larsan.urd.jndi.ContextImpl
|
+--net.larsan.urd.impl.ContainerBase
|
+--net.larsan.urd.impl.DirectoryContainer
A directory container scans a directory looking for service archives.
| Field Summary |
| Fields inherited from class net.larsan.urd.impl.ContainerBase |
autoStart, errorHandler, name |
| Fields inherited from class net.larsan.urd.jndi.ContextBase |
ACCESS_PERMISSION, env, handler, localName, nameParser, parent, port, root, ROOT_ADDRESS, ROOT_PORT |
| Fields inherited from interface javax.naming.event.EventContext |
OBJECT_SCOPE, ONELEVEL_SCOPE, SUBTREE_SCOPE |
| Fields inherited from interface javax.naming.Context |
APPLET, AUTHORITATIVE, BATCHSIZE, DNS_URL, INITIAL_CONTEXT_FACTORY, LANGUAGE, OBJECT_FACTORIES, PROVIDER_URL, REFERRAL, SECURITY_AUTHENTICATION, SECURITY_CREDENTIALS, SECURITY_PRINCIPAL, SECURITY_PROTOCOL, STATE_FACTORIES, URL_PKG_PREFIXES |
| Constructor Summary | |
DirectoryContainer(java.io.File root,
ContextBase context,
java.lang.String localName)
Create directory. |
|
| Method Summary | |
void |
destroy()
Destroy container. |
void |
doAutoStarts()
Attempt to start all autostart services. |
protected void |
firstScan(ErrorHandler errorHandler)
Scan directory for services a register them with super class |
java.lang.String |
getContainerID()
Get container id. |
long |
getRescanInterval()
Get the interval in milliseconds between directory rescans. |
java.io.File |
getSourceFile()
Get file source. |
java.net.URL |
getSourceURL()
Get file source. |
void |
init(DefaultErrorHandler errorHandler)
Initiate directory. |
void |
setParameters(Parameters params)
Set parameter object for this container. |
void |
setRescanInterval(long millis)
Set the interval in milliseconds between directory rescans. |
void |
setSourceURL(java.lang.String source)
Set source URL for this container. |
| Methods inherited from class net.larsan.urd.impl.ContainerBase |
autoStart, findServiceID, getAutoStart, getByIdImpl, getByURLImpl, info, list, removeServiceImpl, setAutoStart, setServiceImpl, start, stop |
| Methods inherited from class net.larsan.urd.jndi.ContextImpl |
bind, clone, close, composeName, createSubcontext, destroySubcontext, getNameParser, hashCode, list, listBindings, lookup, lookupLink, rebind, rename, toString, unbind |
| Methods inherited from class net.larsan.urd.jndi.ContextBase |
addNamingListener, addNamingListener, addToEnvironment, bind, checkAccess, composeName, createSubcontext, destroySubcontext, findRootContext, getEnvironment, getEventHandler, getNameInNamespace, getNameParser, getParent, list, listBindings, lookup, lookupLink, objectAdded, objectRemoved, objectRenamed, rebind, removeFromEnvironment, removeNamingListener, rename, setHandler, targetMustExist, unbind |
| Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DirectoryContainer(java.io.File root,
ContextBase context,
java.lang.String localName)
throws java.io.IOException
root - Installation root directorycontext - Server context, must not be null
java.io.IOException - Ihe the root folder does not exist| Method Detail |
public void init(DefaultErrorHandler errorHandler)
throws ContainerException
init in class ContainerBaseerrorHandler - Error handler for exceptions
ContainerException - If an IO error occurspublic void doAutoStarts()
doAutoStarts in interface ContainerdoAutoStarts in class ContainerBasepublic java.net.URL getSourceURL()
public java.io.File getSourceFile()
public long getRescanInterval()
public void setRescanInterval(long millis)
public void setParameters(Parameters params)
params - Parameters object
public void setSourceURL(java.lang.String source)
throws ContainerException
source - Source URL, must not be null
ContainerException - If the source URL is not foundpublic java.lang.String getContainerID()
getContainerID in class ContainerBasepublic void destroy()
destroy in interface Destroyabledestroy in class ContainerBase
protected void firstScan(ErrorHandler errorHandler)
throws ContainerException
ContainerException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||