fr.dyade.aaa.agent
Class ServiceDesc

java.lang.Object
  extended by fr.dyade.aaa.agent.ServiceDesc
All Implemented Interfaces:
java.io.Serializable

public final class ServiceDesc
extends java.lang.Object
implements java.io.Serializable

Description of a service.

See Also:
Serialized Form

Field Summary
(package private)  java.lang.String args
          starting arguments, may be null
(package private)  boolean initialized
           
(package private)  boolean running
           
(package private)  java.lang.String scname
          service class name
private static long serialVersionUID
           
 
Constructor Summary
ServiceDesc(java.lang.String scname, java.lang.String args)
          Constructor.
 
Method Summary
 java.lang.String getArguments()
          Gets the starting arguments for service.
 java.lang.String getClassName()
          Gets the class name for service.
 boolean isInitialized()
          Tests if this Service is initialized.
 boolean isRunning()
          Tests if this Service is running.
private  void readObject(java.io.ObjectInputStream in)
           
 java.lang.String toString()
          Provides a string image for this object.
private  void writeObject(java.io.ObjectOutputStream out)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

scname

transient java.lang.String scname
service class name


args

transient java.lang.String args
starting arguments, may be null


initialized

transient boolean initialized

running

transient boolean running
Constructor Detail

ServiceDesc

public ServiceDesc(java.lang.String scname,
                   java.lang.String args)
Constructor.

Parameters:
scname - service class name
args - starting parameters, may be null
Method Detail

writeObject

private void writeObject(java.io.ObjectOutputStream out)
                  throws java.io.IOException
Throws:
java.io.IOException

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.lang.ClassNotFoundException
java.io.IOException

getClassName

public java.lang.String getClassName()
Gets the class name for service.

Returns:
the classname.

getArguments

public java.lang.String getArguments()
Gets the starting arguments for service.

Returns:
the arguments.

isInitialized

public boolean isInitialized()
Tests if this Service is initialized.

Returns:
true if the Service is initialized.

isRunning

public boolean isRunning()
Tests if this Service is running.

Returns:
true if the Service is running.

toString

public java.lang.String toString()
Provides a string image for this object.

Overrides:
toString in class java.lang.Object
Returns:
printable image of this object


Copyright © 2010 ScalAgent D.T.. All Rights Reserved.