|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 idMethod Detail |
---|
public ClassLoader getClassLoader()
null
getClassLoader
in interface Module
null
public Set<Module> getDependOnThis()
getDependOnThis
in interface Module
public Set<Module> getDependsOn()
getDependsOn
in interface Module
public URL getOriginalLocation()
null
getOriginalLocation
in interface Module
null
public URL getWorkingLocation()
null
getWorkingLocation
in interface Module
null
public ModuleId getModuleId()
getModuleId
in interface Module
public void create()
Module
Note: Not to be called directly. Use DeploymentManager.create(Module)
method instead.
create
in interface Module
RuntimeException
public void start()
Module
Note: Not to be called directly. Use DeploymentManager.start(Module)
method instead.
start
in interface Module
RuntimeException
public void stop()
Module
Note: Not to be called directly. Use DeploymentManager.stop(Module)
method instead.
stop
in interface Module
RuntimeException
public void destroy()
destroy
in interface Module
public void setState(int state)
Module
Note: Not to be called directly!
setState
in interface Module
state
- module's statepublic int getState()
Module.UNDEFINED
getState
in interface Module
Module.UNDEFINED
public 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 Object
o
- 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 |