|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.abstracthorizon.extend.server.deployment.support.ProvisionalModule
public class ProvisionalModule
This class is used as a placeholder for a module that
is to be deployed in near future. It is needed for DeploymentManagerImpl.
| Field Summary | |
|---|---|
protected LinkedHashSet<Module> |
dependOnThis
List of modules that depend on this module |
protected ModuleId |
moduleId
Modules name |
protected URI |
uri
URI |
| Fields inherited from interface org.abstracthorizon.extend.server.deployment.Module |
|---|
CREATED, DEFINED, STARTED, UNDEFINED, WAITING_ON_CREATE, WAITING_ON_CREATE_TO_START, WAITING_ON_START |
| Constructor Summary | |
|---|---|
ProvisionalModule(URI uri,
ModuleId moduleId)
Constructor. |
|
| Method Summary | |
|---|---|
void |
create()
Creates the module. |
void |
destroy()
Empty implementation |
boolean |
equals(Object o)
Compares two modules and returns true if names are the same |
ClassLoader |
getClassLoader()
Returns null |
Set<Module> |
getDependOnThis()
Returns a list of modules that depend on this module |
Set<Module> |
getDependsOn()
Returns an empty set |
ModuleId |
getModuleId()
Returns module's id |
URL |
getOriginalLocation()
Returns null |
int |
getState()
Returns Module.UNDEFINED |
String |
getStateAsString()
Returns Module.UNDEFINED as string |
URI |
getURI()
Returns uri |
URL |
getWorkingLocation()
Returns null |
void |
setState(int state)
Sets the moduile's state. |
void |
start()
Starts the module. |
void |
stop()
Stops the module. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected URI uri
protected ModuleId moduleId
protected LinkedHashSet<Module> dependOnThis
| Constructor Detail |
|---|
public ProvisionalModule(URI uri,
ModuleId moduleId)
uri - URI it came from so it can be tried to be re-deployedmoduleId - module id| Method Detail |
|---|
public ClassLoader getClassLoader()
null
getClassLoader in interface Modulenullpublic Set<Module> getDependOnThis()
getDependOnThis in interface Modulepublic Set<Module> getDependsOn()
getDependsOn in interface Modulepublic URL getOriginalLocation()
null
getOriginalLocation in interface Modulenullpublic URL getWorkingLocation()
null
getWorkingLocation in interface Modulenullpublic ModuleId getModuleId()
getModuleId in interface Modulepublic void create()
ModuleNote: Not to be called directly. Use DeploymentManager.create(Module) method instead.
create in interface ModuleRuntimeExceptionpublic void start()
ModuleNote: Not to be called directly. Use DeploymentManager.start(Module) method instead.
start in interface ModuleRuntimeExceptionpublic void stop()
ModuleNote: Not to be called directly. Use DeploymentManager.stop(Module) method instead.
stop in interface ModuleRuntimeExceptionpublic void destroy()
destroy in interface Modulepublic void setState(int state)
ModuleNote: Not to be called directly!
setState in interface Modulestate - module's statepublic int getState()
Module.UNDEFINED
getState in interface ModuleModule.UNDEFINEDpublic String getStateAsString()
Module.UNDEFINED as string
Module.UNDEFINED as stringpublic URI getURI()
public boolean equals(Object o)
true if names are the same
equals in class Objecto - other object
true if names are the samepublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||