com.ptc.wvs.server.loader
Class StandardGraphicsServerLoaderService

java.lang.Object
  extended bywt.services.StandardManager
      extended bycom.ptc.wvs.server.loader.StandardGraphicsServerLoaderService
All Implemented Interfaces:
GraphicsServerLoaderService, Manager, NetFactor, Serializable

public class StandardGraphicsServerLoaderService
extends StandardManager
implements GraphicsServerLoaderService, Serializable

Use the newStandardGraphicsServerLoaderService static factory method(s), not the StandardGraphicsServerLoaderService constructor, to construct instances of this class. Instances must be constructed using the static factory(s), in order to ensure proper initialization of the instance.

See Also:
Serialized Form

Field Summary
private static String CLASSNAME
           
private static boolean EXECUTE_QUEUES
           
private static String QUEUE_GROUP
           
private static String RESOURCE
           
private  TicketLocator ticketLocator
           
private static boolean VERBOSE
           
private static String versionID
           
private static WVSProperties wvsProperties
           
 
Fields inherited from class wt.services.StandardManager
 
Fields inherited from interface wt.services.Manager
MANAGER_SERVICE, STARTUP_AUTOMATIC, STARTUP_MANUAL, STATUS_EMERGENCY_SHUTDOWN, STATUS_EMERGENCY_SHUTTING_DOWN, STATUS_SHUTDOWN, STATUS_SHUTDOWN_ERRORS, STATUS_SHUTDOWN_FAILURE, STATUS_SHUTTING_DOWN, STATUS_STARTED, STATUS_STARTED_ERRORS, STATUS_STARTING_UP, STATUS_STARTUP_FAILURE
 
Constructor Summary
StandardGraphicsServerLoaderService()
           
 
Method Summary
 void dispatchMarkupSavedEvent(Persistable persistable, Vector objs)
          Dispatches a GraphicsServerLoaderServiceEvent to indicate that a markup then event is dispatched on the Representable, and the associated EPMDocument if there is one.
 void dispatchMarkupSavedEvent(WTKeyedMap map)
           
private  void dispatchRepresentationOrMarkupSavedEvent(String eventType, Persistable persistable, Vector objs)
           
private  void dispatchRepresentationOrMarkupSavedEvent(String eventType, WTKeyedMap map)
           
 void dispatchRepresentationSavedEvent(Persistable persistable, Vector objs)
          Dispatches a GraphicsServerLoaderServiceEvent to indicate that a representation then event is dispatched on the Representable, and the associated EPMDocument if there is one.
 void dispatchRepresentationSavedEvent(WTKeyedMap map)
           
 String getConceptualClassname()
          Returns the conceptual (modeled) name for the class.
static StandardGraphicsServerLoaderService newStandardGraphicsServerLoaderService()
          Default factory for the class.
protected  void performStartupProcess()
          Dummy method to be overridden by subclasses.
 void registerEvents(ManagerService managerService)
          Registers Graphics Server Loader service events with the service manager.
 void shutdown()
          Manager shutdown operation.
 
Methods inherited from class wt.services.StandardManager
emergencyShutdown, emergencyShutdownComplete, emergencyShuttingDown, getClassInfo, getManagerService, getManagerStatus, getName, getStartupType, init, initialize, initialize, isStarted, newStandardManager, newStandardManager, performEmergencyShutdownProcess, performShutdownProcess, setManagerService, shutdownFailure, shutdownSuccess, shuttingDown, started, startedErrors, startingUp, startup, startupFailure, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

versionID

private static final String versionID
See Also:
Constant Field Values

ticketLocator

private TicketLocator ticketLocator

wvsProperties

private static WVSProperties wvsProperties

VERBOSE

private static boolean VERBOSE

EXECUTE_QUEUES

private static boolean EXECUTE_QUEUES

QUEUE_GROUP

private static String QUEUE_GROUP
Constructor Detail

StandardGraphicsServerLoaderService

public StandardGraphicsServerLoaderService()
Method Detail

getConceptualClassname

public String getConceptualClassname()
Returns the conceptual (modeled) name for the class.

Supported API: false

Specified by:
getConceptualClassname in interface NetFactor
Overrides:
getConceptualClassname in class StandardManager
Returns:
String

performStartupProcess

protected void performStartupProcess()
                              throws ManagerException
Description copied from class: StandardManager
Dummy method to be overridden by subclasses. Subclasses should override this method and provide startup processing.

Supported API: false

Overrides:
performStartupProcess in class StandardManager
Throws:
ManagerException

shutdown

public void shutdown()
              throws ManagerException
Description copied from class: StandardManager
Manager shutdown operation.

Generally this operation changes the manager status from:

STATUS_STARTED -> STATUS_SHUTTING_DOWN -> STATUS_SHUTDOWN

Template routine for shutting down a service. This method calls the shuttingDown method which handles generating and synchronously dispatching an event to all listeners. Listeners may object to the shutdown by throwing a ManagerException.

This is a template method and should generally not be overridden. Typically the method performShutdownProcess should be overridden by subclasses.

Supported API: false

Specified by:
shutdown in interface Manager
Overrides:
shutdown in class StandardManager
Throws:
ManagerException

registerEvents

public void registerEvents(ManagerService managerService)
Registers Graphics Server Loader service events with the service manager.

Supported API: false

Specified by:
registerEvents in interface Manager
Overrides:
registerEvents in class StandardManager
Parameters:
managerService -

dispatchRepresentationSavedEvent

public void dispatchRepresentationSavedEvent(Persistable persistable,
                                             Vector objs)
                                      throws WTException
Dispatches a GraphicsServerLoaderServiceEvent to indicate that a representation then event is dispatched on the Representable, and the associated EPMDocument if there is one. This enable a use to subscribe against either the part or EPMDoc

Supported API: false

Specified by:
dispatchRepresentationSavedEvent in interface GraphicsServerLoaderService
Parameters:
persistable -
objs -
Throws:
WTException

dispatchRepresentationSavedEvent

public void dispatchRepresentationSavedEvent(WTKeyedMap map)
                                      throws WTException
Specified by:
dispatchRepresentationSavedEvent in interface GraphicsServerLoaderService
Throws:
WTException

dispatchMarkupSavedEvent

public void dispatchMarkupSavedEvent(Persistable persistable,
                                     Vector objs)
                              throws WTException
Dispatches a GraphicsServerLoaderServiceEvent to indicate that a markup then event is dispatched on the Representable, and the associated EPMDocument if there is one. This enable a use to subscribe against either the part or EPMDoc

Supported API: false

Specified by:
dispatchMarkupSavedEvent in interface GraphicsServerLoaderService
Parameters:
persistable -
objs -
Throws:
WTException

dispatchMarkupSavedEvent

public void dispatchMarkupSavedEvent(WTKeyedMap map)
                              throws WTException
Specified by:
dispatchMarkupSavedEvent in interface GraphicsServerLoaderService
Throws:
WTException

newStandardGraphicsServerLoaderService

public static StandardGraphicsServerLoaderService newStandardGraphicsServerLoaderService()
                                                                                  throws WTException
Default factory for the class.

Returns:
StandardGraphicsServerLoaderService
Throws:
WTException

dispatchRepresentationOrMarkupSavedEvent

private void dispatchRepresentationOrMarkupSavedEvent(String eventType,
                                                      Persistable persistable,
                                                      Vector objs)
                                               throws WTException
Throws:
WTException

dispatchRepresentationOrMarkupSavedEvent

private void dispatchRepresentationOrMarkupSavedEvent(String eventType,
                                                      WTKeyedMap map)
                                               throws WTException
Throws:
WTException