Package com.sun.enterprise.admin.util
Class InstanceStateServiceImpl
- java.lang.Object
-
- com.sun.enterprise.admin.util.InstanceStateServiceImpl
-
- All Implemented Interfaces:
InstanceStateService
@Service @RunLevel(value=10, mode=0) public class InstanceStateServiceImpl extends Object implements InstanceStateService
Service that is called at startup and parses the instance state file.- Author:
- Vijay Ramachandran
-
-
Constructor Summary
Constructors Constructor Description InstanceStateServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addFailedCommandToInstance(String instance, String cmd, ParameterMap params)
void
addServerToStateService(String instanceName)
List<String>
getFailedCommands(String instanceName)
InstanceState.StateType
getState(String instanceName)
void
removeFailedCommandsForInstance(String instance)
void
removeInstanceFromStateService(String name)
InstanceState.StateType
setState(String name, InstanceState.StateType newState, boolean force)
Future<InstanceCommandResult>
submitJob(Server server, InstanceCommand ice, InstanceCommandResult r)
-
-
-
Method Detail
-
addServerToStateService
public void addServerToStateService(String instanceName)
- Specified by:
addServerToStateService
in interfaceInstanceStateService
-
addFailedCommandToInstance
public void addFailedCommandToInstance(String instance, String cmd, ParameterMap params)
- Specified by:
addFailedCommandToInstance
in interfaceInstanceStateService
-
removeFailedCommandsForInstance
public void removeFailedCommandsForInstance(String instance)
- Specified by:
removeFailedCommandsForInstance
in interfaceInstanceStateService
-
getState
public InstanceState.StateType getState(String instanceName)
- Specified by:
getState
in interfaceInstanceStateService
-
getFailedCommands
public List<String> getFailedCommands(String instanceName)
- Specified by:
getFailedCommands
in interfaceInstanceStateService
-
setState
public InstanceState.StateType setState(String name, InstanceState.StateType newState, boolean force)
- Specified by:
setState
in interfaceInstanceStateService
-
removeInstanceFromStateService
public void removeInstanceFromStateService(String name)
- Specified by:
removeInstanceFromStateService
in interfaceInstanceStateService
-
submitJob
public Future<InstanceCommandResult> submitJob(Server server, InstanceCommand ice, InstanceCommandResult r)
- Specified by:
submitJob
in interfaceInstanceStateService
-
-