Package org.serviceconnector.service
Class Service
java.lang.Object
org.serviceconnector.service.Service
- Direct Known Subclasses:
CascadedFileService,CascadedPublishService,CascadedSessionService,FileService,StatefulService
The Class Service.
- Author:
- JTraber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voiddump(XMLDumpWriter writer) Dump the service into the xml writer.getName()Gets the service name.getType()Gets the type.booleanGets the current service state.voidsetEnabled(boolean enabled) Sets the enabled.toString()
-
Constructor Details
-
Service
Instantiates a new service.- Parameters:
name- the nametype- the type
-
-
Method Details
-
getName
Gets the service name.- Returns:
- the service name
-
getType
Gets the type.- Returns:
- the type
-
isEnabled
public boolean isEnabled()Gets the current service state.- Returns:
- the state
-
setEnabled
public void setEnabled(boolean enabled) Sets the enabled.- Parameters:
enabled- the new enabled
-
toString
-
dump
Dump the service into the xml writer.- Parameters:
writer- the writer- Throws:
Exception- the exception
-