Package fr.dyade.aaa.agent
Class ServiceDesc
- java.lang.Object
-
- fr.dyade.aaa.agent.ServiceDesc
-
- All Implemented Interfaces:
Serializable
public final class ServiceDesc extends Object implements Serializable
Description of a service.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) Stringargsstarting arguments, may be null(package private) booleaninitialized(package private) booleanrunning(package private) Stringscnameservice class nameprivate static longserialVersionUIDDefine serialVersionUID for interoperability.
-
Constructor Summary
Constructors Constructor Description ServiceDesc(String scname, String args)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetArguments()Gets the starting arguments for service.StringgetClassName()Gets the class name for service.booleanisInitialized()Tests if thisServiceis initialized.booleanisRunning()Tests if thisServiceis running.private voidreadObject(ObjectInputStream in)StringtoString()Provides a string image for this object.private voidwriteObject(ObjectOutputStream out)
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
Define serialVersionUID for interoperability.- See Also:
- Constant Field Values
-
scname
transient String scname
service class name
-
args
transient String args
starting arguments, may be null
-
initialized
transient boolean initialized
-
running
transient boolean running
-
-
Method Detail
-
writeObject
private void writeObject(ObjectOutputStream out) throws IOException
- Throws:
IOException
-
readObject
private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException
- Throws:
IOExceptionClassNotFoundException
-
getClassName
public String getClassName()
Gets the class name for service.- Returns:
- the classname.
-
getArguments
public String getArguments()
Gets the starting arguments for service.- Returns:
- the arguments.
-
isInitialized
public boolean isInitialized()
Tests if thisServiceis initialized.- Returns:
- true if the
Serviceis initialized.
-
isRunning
public boolean isRunning()
Tests if thisServiceis running.- Returns:
- true if the
Serviceis running.
-
-