ist.palcom.eclipse.browserplugin
Class EclipseAssemblyManager

java.lang.Object
  extended by ist.palcom.services.AbstractService
      extended by ist.palcom.assembly.manager.AssemblyManager
          extended by ist.palcom.eclipse.browserplugin.EclipseAssemblyManager
All Implemented Interfaces:
IAssemblyManager, Service, IHgraphNode, CommandEventListener

public class EclipseAssemblyManager
extends AssemblyManager

A specialized Assembly Manager intended to use the Eclipse workspace for storing assemblies. (Or rather, be able to access the assembly descriptors stored in the eclipse workspace.)


Field Summary
 
Fields inherited from class ist.palcom.services.AbstractService
_node, connectionsMonitor, context, info, siid
 
Fields inherited from interface ist.palcom.assemblies.IAssemblyManager
COMMAND_ADD_DECL, COMMAND_ASSEMBLYINFO, COMMAND_LIST_LOADED, COMMAND_LIST_STORED, COMMAND_LOAD, COMMAND_LOAD_ID, COMMAND_LOADED_ASSEMBLIES, COMMAND_LOADED_COUNT_IN, COMMAND_LOADED_COUNT_OUT, COMMAND_READ_LOADED, COMMAND_REM_DECL, COMMAND_STORE, COMMAND_STORED_ASSEMBLIES, COMMAND_STORED_COUNT_IN, COMMAND_STORED_COUNT_OUT, COMMAND_UNLOAD, COMMAND_UNLOAD_ALL, COMMAND_UPDATE, ENABLE_UPDATE_SERVICE, SERVICE_NAME, URN_SUFFIX
 
Fields inherited from interface ist.palcom.hgraph.IHgraphNode
CHILD_NAME_CLASH, CIRCULARITY_CLASH, COMMAND_OR_NODE_MISSING, ERROR, HANDLER_MISSING, INVOKATOR_MISSING, LISTENER_MISSING, NODE_NOT_CHILD, PATH_MISSING, SIBLING_ALREADY_EXISTS, SIBLING_NONEXISTENT, SIBLING_REFERENCE_ALREADY_EXISTS, SIBLING_REFERENCE_NONEXISTENT, STATUS_OK, VALUE_ALREADY_EXISTS, VALUE_NOT_PRESENT
 
Constructor Summary
EclipseAssemblyManager(AssemblyDeviceContext context, java.lang.String serviceName)
           
 
Method Summary
 PRDAssemblyD checkIfUpdateToStored(PRDAssemblyVer av)
          This method also writes the updated ad to eclipse NB!
 void commandReceived(CommandEvent e)
           
 PalcomThread getUpdateThread()
           
 void start()
          Start the service.
 void stop()
           
 
Methods inherited from class ist.palcom.assembly.manager.AssemblyManager
checkIfUpdateToRunning, doAddDeclCommand, doCommand, doCommand, doRemDeclCommand, doUpdateCommand, getEditCommandReceiverThread, getLoadedAssemblies, getSelfTestService, getServiceID, loadAssembly, readAssembly, registerContingencyManagerThread, removeAssemblies, stopAssembly, stopAssembly, unregisterContingencyManagerThread
 
Methods inherited from class ist.palcom.services.AbstractService
addNodeChild, addServiceProxyListener, connectionClosed, connectionCreated, connectTo, disconnectFrom, getChildIterator, getConnections, getFuncFunc, getNodeName, getNodeParent, getPath, getRemoteServiceProxy, getSelector, getServiceInfo, getServiceInstanceID, getServiceProxy, getSiblingFunc, getValueFunc, hasChildNamed, isAncestorOf, remoteServiceProxyIterator, removeNodeChild, removeServiceProxyListener, sendToAll, setGroupID, setLocalSID, setName, setNodeName, setNodeParent, setServiceInstanceID, setServiceProxy, setStatus, setTopic, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, updatePath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ist.palcom.assemblies.IAssemblyManager
getServiceProxy
 
Methods inherited from interface ist.palcom.hgraph.IHgraphNode
addNodeChild, getChildIterator, getFuncFunc, getNodeName, getNodeParent, getPath, getSiblingFunc, getValueFunc, hasChildNamed, isAncestorOf, removeNodeChild, setNodeName, setNodeParent, toXML, toXMLFull, toXMLFullRecursively, toXMLRecursively, updatePath
 

Constructor Detail

EclipseAssemblyManager

public EclipseAssemblyManager(AssemblyDeviceContext context,
                              java.lang.String serviceName)
                       throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getUpdateThread

public PalcomThread getUpdateThread()

start

public void start()
           throws java.io.IOException
Description copied from class: AbstractService
Start the service. The LocalSID must be set before calling this method (through a constructor, or through a call to the setLocalSID method). If the service is started already, nothing happens. The DiscoveryManager will be updated with info about the service.

Specified by:
start in interface IAssemblyManager
Overrides:
start in class AssemblyManager
Throws:
java.io.IOException

stop

public void stop()
          throws java.io.IOException
Specified by:
stop in interface IAssemblyManager
Overrides:
stop in class AssemblyManager
Throws:
java.io.IOException

commandReceived

public void commandReceived(CommandEvent e)
Specified by:
commandReceived in interface CommandEventListener
Overrides:
commandReceived in class AssemblyManager

checkIfUpdateToStored

public PRDAssemblyD checkIfUpdateToStored(PRDAssemblyVer av)
This method also writes the updated ad to eclipse NB! Doesn't require an update, as in "isUpdate()", but only that it isNewVersion

Specified by:
checkIfUpdateToStored in interface IAssemblyManager
Overrides:
checkIfUpdateToStored in class AssemblyManager