|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.openwings.identity.ComponentDescriptor
This class contains all of the information that would be used to identify and execute a component. This information is used by several Openwings services:
ComponentDescriptors to run
processes.
ComponentDescriptor.
InstallableComponentDescriptor
(subclass) to install a component.
Container,
Component,
Installer,
Serialized Form| Constructor Summary | |
ComponentDescriptor()
Default constructor |
|
ComponentDescriptor(ComponentDescriptor componentDescriptor)
This is a shallow copy contructor. |
|
ComponentDescriptor(UniqueID uniqueID,
java.lang.String componentName,
java.lang.String version,
java.lang.String description,
boolean executable,
java.lang.String executableString,
java.lang.String platform,
boolean sharedContainerHint,
boolean restartHint,
boolean bootProcessHint,
boolean runImmediatelyHint,
boolean mobile,
java.net.URL[] classpath,
java.net.URL[] codebase,
java.util.Properties properties,
java.lang.String commandLineParameters)
This constructor is used to create an executable Java ComponentDescriptor. |
|
ComponentDescriptor(UniqueID uniqueID,
java.lang.String componentName,
java.lang.String version,
java.lang.String description,
boolean executable,
java.lang.String executableString,
java.lang.String platform,
boolean sharedContainerHint,
boolean restartHint,
boolean bootProcessHint,
java.lang.String commandLineParameters)
This constructor is used to create a non-Java executable component descriptor. |
|
ComponentDescriptor(UniqueID uniqueID,
java.lang.String componentName,
java.lang.String version,
java.lang.String description,
java.lang.String platform,
java.net.URL[] classpath,
java.net.URL[] codebase)
This constructor is used to create a non-executable Java component descriptor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object obj)
This method overrides the default equals() implementation. |
boolean |
equalsStrict(ComponentDescriptor descriptor)
This method provides a strict comparison with another ComponentDescriptor. |
boolean |
getBootProcessHint()
This method returns true if the component should be
started on platform boot. |
java.net.URL[] |
getClasspath()
This method returns the classpath of the component. |
java.net.URL[] |
getCodebase()
This method returns the codebase of the component. |
java.lang.String |
getCommandLineParameters()
This method returns the command line parameters that should be passed to the component on startup. |
java.lang.String |
getComponentName()
This method returns the name of this component. |
java.lang.String |
getDescription()
This method returns a description of the component. |
boolean |
getExecutable()
This method returns true if the component is executable. |
java.lang.String |
getExecutableString()
This method returns the command used to execute the component. |
boolean |
getMobile()
This method returns true if the component can move between
containers or platforms. |
java.lang.String |
getPlatform()
This method returns the platform on which this component can run. |
java.util.Properties |
getProperties()
This method returns the properties used by the component. |
boolean |
getRestartHint()
This method returns true if the component should be
restarted in case of failure. |
boolean |
getRunImmediatelyHint()
This method returns true if the component should be
started immediately. |
boolean |
getSharedContainerHint()
This method returns true if the component can share
a container with other components. |
UniqueID |
getUniqueID()
This method returns the unique identifer of this component. |
java.lang.String |
getVersion()
This method returns the version number of this component. |
int |
hashCode()
overrides default hashCode() method. |
void |
list(java.io.PrintStream out)
Convenience method for printing out the contents of the descriptor |
void |
setBootProcessHint(boolean bootProcessHint)
This method sets a flag indicating whether the component should be started on platform boot. |
void |
setClasspath(java.net.URL[] classpath)
This method sets the classpath of the component. |
void |
setCodebase(java.net.URL[] codebase)
This method sets the codebase of the component. |
void |
setCommandLineParameters(java.lang.String commandLineParameters)
This method sets the command line parameters that should be passed to the component on startup. |
void |
setComponentName(java.lang.String componentName)
This method sets the name of this component. |
void |
setDescription(java.lang.String description)
This method sets a description of the component. |
void |
setExecutable(boolean executable)
This method sets whether the component is executable. |
void |
setExecutableString(java.lang.String executableString)
This method sets the executableString used to execute the component. |
void |
setMobile(boolean mobile)
This method sets a flag indicating whether the component can move between containers or platforms. |
void |
setPlatform(java.lang.String platform)
This method sets the platform on which this component can run. |
void |
setProperties(java.util.Properties properties)
This method sets the properties used by the component. |
void |
setRestartHint(boolean restartHint)
This method sets a flag indicating whether the component should be restarted in case of failure. |
void |
setRunImmediatelyHint(boolean runImmediatelyHint)
This method sets a flag indicating whether the component should be started immediately. |
void |
setSharedContainerHint(boolean sharedContainerHint)
This method sets a flag indicating whether the component can share a container with other components. |
void |
setUniqueID(UniqueID uniqueID)
This method sets the unique identifer of this component. |
void |
setVersion(java.lang.String version)
This method sets the version number of this component. |
java.lang.String |
toString()
overrides default toString() method. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ComponentDescriptor()
public ComponentDescriptor(ComponentDescriptor componentDescriptor)
ComponentDescriptor are immutable except the
Properties object. For copying this field, the clone() method
is used. This creates a new mapping but the keys and values are shallow
copies. This is also permissible since keys and values are also
strings in a Properties object.
public ComponentDescriptor(UniqueID uniqueID,
java.lang.String componentName,
java.lang.String version,
java.lang.String description,
boolean executable,
java.lang.String executableString,
java.lang.String platform,
boolean sharedContainerHint,
boolean restartHint,
boolean bootProcessHint,
boolean runImmediatelyHint,
boolean mobile,
java.net.URL[] classpath,
java.net.URL[] codebase,
java.util.Properties properties,
java.lang.String commandLineParameters)
public ComponentDescriptor(UniqueID uniqueID,
java.lang.String componentName,
java.lang.String version,
java.lang.String description,
boolean executable,
java.lang.String executableString,
java.lang.String platform,
boolean sharedContainerHint,
boolean restartHint,
boolean bootProcessHint,
java.lang.String commandLineParameters)
public ComponentDescriptor(UniqueID uniqueID,
java.lang.String componentName,
java.lang.String version,
java.lang.String description,
java.lang.String platform,
java.net.URL[] classpath,
java.net.URL[] codebase)
| Method Detail |
public final UniqueID getUniqueID()
public final void setUniqueID(UniqueID uniqueID)
uniqueID - unique identifier for this componentpublic final java.lang.String getComponentName()
public final void setComponentName(java.lang.String componentName)
componentName - name of this componentpublic final java.lang.String getVersion()
public final void setVersion(java.lang.String version)
version - version numberpublic final java.lang.String getDescription()
public final void setDescription(java.lang.String description)
description - description of the componentpublic final boolean getExecutable()
true if the component is executable.
public final void setExecutable(boolean executable)
executable - booleanpublic final java.lang.String getExecutableString()
public final void setExecutableString(java.lang.String executableString)
public final java.lang.String getPlatform()
public final void setPlatform(java.lang.String platform)
platform - platform namepublic final boolean getSharedContainerHint()
true if the component can share
a container with other components.
public final void setSharedContainerHint(boolean sharedContainerHint)
sharedContainerHint - true if the component can share
a container with other componentspublic final boolean getRestartHint()
true if the component should be
restarted in case of failure.
public final void setRestartHint(boolean restartHint)
restartHint - true if the component should be restarted
if it failspublic final boolean getBootProcessHint()
true if the component should be
started on platform boot.
public final void setBootProcessHint(boolean bootProcessHint)
bootProcessHint - true if the component should be
started on platform bootpublic final boolean getRunImmediatelyHint()
true if the component should be
started immediately.
public final void setRunImmediatelyHint(boolean runImmediatelyHint)
runImmediatelyHint - true if the component should be
started immediatelypublic final boolean getMobile()
true if the component can move between
containers or platforms.
public final void setMobile(boolean mobile)
mobile - true if the component may be movedpublic final java.net.URL[] getClasspath()
public final void setClasspath(java.net.URL[] classpath)
classpath - array of addresses representing where code used by this
component can be foundpublic final java.net.URL[] getCodebase()
public final void setCodebase(java.net.URL[] codebase)
codebase - array of addresses representing where code exported by
this component can be foundpublic final java.util.Properties getProperties()
public final void setProperties(java.util.Properties properties)
properties - properties used by the componentpublic final java.lang.String getCommandLineParameters()
public final void setCommandLineParameters(java.lang.String commandLineParameters)
commandLineParameters - command line parameters used by the componentpublic final boolean equals(java.lang.Object obj)
equalsStrict comparison.
public boolean equalsStrict(ComponentDescriptor descriptor)
ComponentDescriptor. Equality is based on every field.
This is useful for security checks or other circumstances where it
is important to know whether a descriptor has been modified in any way.
public final int hashCode()
public java.lang.String toString()
public void list(java.io.PrintStream out)
out - the stream to write output to
|
Openwings API Documentation (v1.1) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||