Class SwingInstanceImpl
- java.lang.Object
-
- org.webswing.server.services.swinginstance.SwingInstanceImpl
-
- All Implemented Interfaces:
Serializable,JvmListener,SwingInstance
public class SwingInstanceImpl extends Object implements Serializable, SwingInstance, JvmListener
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SwingInstanceImpl(SwingInstanceManager manager, FileTransferHandler fileHandler, SwingProcessService processService, JvmConnectionService connectionService, SessionRecorderService recorderService, org.webswing.model.c2s.ConnectionHandshakeMsgIn h, org.webswing.server.common.model.SwingConfig config, WebSocketConnection websocket)
-
Method Summary
-
-
-
Constructor Detail
-
SwingInstanceImpl
public SwingInstanceImpl(SwingInstanceManager manager, FileTransferHandler fileHandler, SwingProcessService processService, JvmConnectionService connectionService, SessionRecorderService recorderService, org.webswing.model.c2s.ConnectionHandshakeMsgIn h, org.webswing.server.common.model.SwingConfig config, WebSocketConnection websocket) throws org.webswing.server.model.exception.WsException
- Throws:
org.webswing.server.model.exception.WsException
-
-
Method Detail
-
connectSwingInstance
public void connectSwingInstance(WebSocketConnection r, org.webswing.model.c2s.ConnectionHandshakeMsgIn h)
- Specified by:
connectSwingInstancein interfaceSwingInstance
-
shutdown
public void shutdown(boolean force)
- Specified by:
shutdownin interfaceSwingInstance
-
sendToWeb
public void sendToWeb(org.webswing.model.MsgOut o)
- Specified by:
sendToWebin interfaceSwingInstance
-
sendToSwing
public boolean sendToSwing(WebSocketConnection r, org.webswing.model.MsgIn h)
- Specified by:
sendToSwingin interfaceSwingInstance
-
onJvmMessage
public void onJvmMessage(Serializable o)
- Specified by:
onJvmMessagein interfaceJvmListener
-
notifyExiting
public void notifyExiting()
- Specified by:
notifyExitingin interfaceSwingInstance
-
startRecording
public void startRecording() throws org.webswing.server.model.exception.WsException- Specified by:
startRecordingin interfaceSwingInstance- Throws:
org.webswing.server.model.exception.WsException
-
stopRecording
public void stopRecording() throws org.webswing.server.model.exception.WsException- Specified by:
stopRecordingin interfaceSwingInstance- Throws:
org.webswing.server.model.exception.WsException
-
toSwingSession
public SwingSession toSwingSession(boolean stats)
- Specified by:
toSwingSessionin interfaceSwingInstance
-
kill
public void kill(int delayMs)
- Specified by:
killin interfaceSwingInstance
-
getOwnerId
public String getOwnerId()
- Specified by:
getOwnerIdin interfaceSwingInstance
-
getInstanceId
public String getInstanceId()
- Specified by:
getInstanceIdin interfaceSwingInstance
-
getAppConfig
public org.webswing.server.common.model.SwingConfig getAppConfig()
- Specified by:
getAppConfigin interfaceSwingInstance
-
getConnectionId
public String getConnectionId()
- Specified by:
getConnectionIdin interfaceSwingInstance
-
getMirroredSessionId
public String getMirroredSessionId()
-
isRunning
public boolean isRunning()
-
getStartedAt
public Date getStartedAt()
-
getEndedAt
public Date getEndedAt()
-
isRecording
public boolean isRecording()
- Specified by:
isRecordingin interfaceSwingInstance
-
getRecordingFile
public String getRecordingFile()
-
getStatus
public SwingInstanceStatus getStatus()
-
webSessionDisconnected
public void webSessionDisconnected(String connectionId)
- Specified by:
webSessionDisconnectedin interfaceSwingInstance
-
getMirrorConnectionId
public String getMirrorConnectionId()
- Specified by:
getMirrorConnectionIdin interfaceSwingInstance
-
logStatValue
public void logStatValue(String name, Number value)
- Specified by:
logStatValuein interfaceSwingInstance
-
logWarningHistory
public void logWarningHistory()
- Specified by:
logWarningHistoryin interfaceSwingInstance
-
getThreadDump
public String getThreadDump(String id)
- Specified by:
getThreadDumpin interfaceSwingInstance
-
requestThreadDump
public void requestThreadDump()
- Specified by:
requestThreadDumpin interfaceSwingInstance
-
getUserId
public String getUserId()
- Specified by:
getUserIdin interfaceSwingInstance
-
-