externalizer()
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
externalizer
protected static Externalizer externalizer
name
protected java.lang.String name
Service
public Service()
- Service default constructor.
Service
public Service(java.lang.String aName)
throws java.io.IOException
- Constructs a Service instance with a name attribute set to aName.
- Parameters:
aName - java.lang.String
- Throws:
java.io.IOException
externalizer
public Externalizer externalizer()
- Gets the externalizer attribute value set to a ServiceExternalizer instance.
- Returns:
- com.ibm.dse.base.Externalizer
getExternalizer
public static Externalizer getExternalizer()
- Gets the ServiceExternalizer.
- Returns:
- com.ibm.dse.base.Externalizer
getTagName
public java.lang.String getTagName()
- Gets a tag name.
- Returns:
- java.lang.String
initializeFrom
public java.lang.Object initializeFrom(Tag aTag)
throws java.io.IOException,
DSEException
- Initializes the Service reading its attributes values from aTag.
- Parameters:
aTag - com.ibm.dse.base.Tag
- Returns:
- java.lang.Object
- Throws:
java.io.IOException
DSEException
readExternal
public void readExternal()
throws java.io.IOException
- Initializes the Service with the attributes set in the external services definition file.
- Throws:
java.io.IOException
readExternal
public void readExternal(java.io.ObjectInput s)
throws java.io.IOException,
java.lang.ClassNotFoundException
- Invokes the object creation from an ObjectInput.
- Specified by:
readExternal in interface java.io.Externalizable
- Parameters:
s - java.io.ObjectInput
- Throws:
java.io.IOException
java.lang.ClassNotFoundException
readObject
public static java.lang.Object readObject(java.lang.String name)
throws java.io.IOException
- Invokes the services externalizer to read the object with the specified name from the external definition file.
- Parameters:
name - java.lang.String
- Returns:
- java.lang.Object
- Throws:
java.io.IOException
removeExternal
public void removeExternal()
throws java.io.IOException
- Removes the tags for the Service instance that were previously read from the external file that keeps the service definition.
- Throws:
java.io.IOException
setExternalizer
public static void setExternalizer(Externalizer ext)
- Sets the externalizer attribute value to a ServiceExternalizer.
- Parameters:
ext - com.ibm.dse.base.Externalizer
terminate
public void terminate()
throws DSEException
- Housekeeping process for the service instance. This is called either from the application
or from the context when it is destroyed or unchained. Subclasses should overwrite this
implementation to perform whatever actions needed for releasing all the resources acquired
by the service.
- Specified by:
terminate in interface ProcessorNotifier - Overrides:
terminate in class BTTProcessorNotifier
- Throws:
DSEException
toString
public java.lang.String toString()
- Returns an XML representation of this Service.
- Overrides:
toString in class java.lang.Object
- Returns:
- java.lang.String
toStrings
public Vector toStrings()
- Returns a Vector containing an XML representation of this Service.
- Returns:
- com.ibm.dse.base.Vector
toTags
public Vector toTags()
throws java.io.IOException
- Returns a Vector with the Service represented by tags.
- Returns:
- com.ibm.dse.base.Vector
- Throws:
java.io.IOException
writeExternal
public void writeExternal()
throws java.io.IOException
- Writes the Service instance converted to tags in a file.
- Throws:
java.io.IOException
writeExternal
public void writeExternal(java.io.ObjectOutput s)
throws java.io.IOException
- Provides concrete serialization handling for Service.
- Specified by:
writeExternal in interface java.io.Externalizable
- Parameters:
s - java.io.ObjectOutput
- Throws:
java.io.IOException
(c) Copyright IBM Corporation 1998, 2009
|