|
TEMERITY | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectus.temerity.pipeline.Named
us.temerity.pipeline.PluginID
us.temerity.pipeline.BasePlugin
public class BasePlugin
The superclass of all Pipeline plugins.
By default only the Unix operating system is supported by a subclass plugin. The
addSupport method should be called in the subclass constructor to
add support for other operation systems. Unix support can also be removed using the
removeSupport method.
| Field Summary | |
|---|---|
protected String |
pDescription
A short message which describes the plugin. |
| Fields inherited from class us.temerity.pipeline.PluginID |
|---|
pVendor, pVersionID |
| Fields inherited from class us.temerity.pipeline.Named |
|---|
pName |
| Constructor Summary | |
|---|---|
protected |
BasePlugin()
This constructor is required by the GlueDecoder to instantiate the class
when encountered during the reading of GLUE format files and should not be called
from user code. |
protected |
BasePlugin(PluginID pluginID,
String desc)
Construct with the given plugin ID and description. |
protected |
BasePlugin(String name,
VersionID vid,
String vendor,
String desc)
Construct with the given name, version, vendor and description. |
| Method Summary | |
|---|---|
protected void |
addSupport(OsType os)
Add support for execution under the given operating system type. |
int |
compareTo(PluginID pluginID)
Compares this PluginID with the given PluginID for order. |
boolean |
equals(Object obj)
Indicates whether some other object is "equal to" this one. |
String |
getDescription()
Gets the description text. |
protected String |
getFullMessage(Throwable ex)
Deprecated. The static method Exceptions.getFullMessage(java.lang.String, java.lang.Throwable, boolean, boolean) should be used instead. |
PluginID |
getPluginID()
Get the unique plugin identifier. |
PluginType |
getPluginType()
Get which general type of plugin this is. |
URL |
getResource(String name)
A convenience method to find a resource with a given name. |
SortedMap<String,Long> |
getResources()
Retrieves all the resources available to the plugin. |
long |
getResourceSize(String name)
Retrieves the file size for a valid resource. |
SortedSet<OsType> |
getSupports()
Get the supported operating system types. |
boolean |
isUnderDevelopment()
Whether this version of the plugin in currently being modified and tested by the plugin developer. |
protected void |
removeSupport(OsType os)
Remove support for execution under the given operating system type. |
protected void |
setSupports(SortedSet<OsType> oss)
Set the specific operating systems that are supported. |
boolean |
supports(OsType os)
Whether the plugin supports execution under the given operating system type. |
String |
toString()
Generate a string representation of this plugin. |
protected void |
underDevelopment()
Mark this version of the plugin as currently being modified and tested by the plugin developer. |
| Methods inherited from class us.temerity.pipeline.PluginID |
|---|
fromGlue, getVendor, getVersionID, toGlue |
| Methods inherited from class us.temerity.pipeline.Named |
|---|
clone, getName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected String pDescription
| Constructor Detail |
|---|
protected BasePlugin()
GlueDecoder to instantiate the class
when encountered during the reading of GLUE format files and should not be called
from user code.
protected BasePlugin(String name,
VersionID vid,
String vendor,
String desc)
name - The short name of the pluginvid - The plugin revision number.vendor - The name of the plugin vendor.desc - A short description of the plugin.
protected BasePlugin(PluginID pluginID,
String desc)
pluginID - The unique ID of the plugin.desc - A short description of the plugin.| Method Detail |
|---|
public String getDescription()
public final boolean supports(OsType os)
os - The operating system type.public SortedSet<OsType> getSupports()
protected void addSupport(OsType os)
os - The operating system type.protected void removeSupport(OsType os)
os - The operating system type.protected void setSupports(SortedSet<OsType> oss)
protected final void underDevelopment()
Plugins with this flag set can be dynamically reloaded by the plpluginmgr(1) daemon and distributed to all running Pipeline programs. Subclasses should call this method in their constructor during the creation and testing phase of developement.
public final boolean isUnderDevelopment()
Plugins with this flag set can be dynamically reloaded by the plpluginmgr(1) daemon and distributed to all running Pipeline programs.
public PluginType getPluginType()
public PluginID getPluginID()
public URL getResource(String name)
name - The name of the resource.public long getResourceSize(String name)
public SortedMap<String,Long> getResources()
public boolean equals(Object obj)
equals in class PluginIDobj - The reference object with which to compare.public String toString()
toString in class PluginIDpublic int compareTo(PluginID pluginID)
PluginID with the given PluginID for order.
compareTo in interface Comparable<PluginID>compareTo in class PluginIDpluginID - The PluginID to be compared.@Deprecated protected String getFullMessage(Throwable ex)
Exceptions.getFullMessage(java.lang.String, java.lang.Throwable, boolean, boolean) should be used instead.
ex - The thrown exception.
|
TEMERITY | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||