public class JLISession extends AbstractJLISession
| Modifier and Type | Field and Description |
|---|---|
static int |
SESSION_TYPE_NONE |
static int |
SESSION_TYPE_PROE |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
addProcess(java.lang.Process pr)
Add an external process to the session, so that processes can be tracked
|
void |
cleanSession()
Clean up a session prior to deleting it.
|
static JLISession |
createSession()
Create a new session and keep track of it internally
|
static void |
deleteSession(AbstractJLISession sess)
Delete a session from memory
|
static void |
disconnectSessions(java.lang.String deadConnId)
Delete all sessions which use a specific Creo connection ID.
|
java.lang.String |
getCommandLog() |
java.lang.String |
getConnectionId()
Get the Creo connection ID; create a connection to Creo if one does not exist.
|
long |
getLastUsed() |
int |
getProeVersion()
Get the Creo version value
|
static JLISession |
getSession(java.lang.String sessionId)
Get a session object.
|
java.lang.String |
getSessionId()
Get the session's ID
|
int |
getSessionType() |
static void |
killAllProcesses()
Kill all processes in all sessions
|
void |
killSessionProcesses()
Kill all processes belonging to this session
|
boolean |
logCommand(java.util.Map<java.lang.Object,java.lang.Object> cmd)
When a function is executed, this function will write the request to a command log file
|
boolean |
logReturn(java.util.Map<java.lang.Object,java.lang.Object> cmd)
When a function is executed, this function will write the response data to a command log file
|
void |
setCommandLog(java.lang.String commandLog)
Sets the location of the command log.
|
void |
setConnection()
Create a new Async connection to Creo.
|
void |
setConnectionId(java.lang.String connId)
Get the Creo connection ID
|
void |
setProeVersion(int proeVersion)
Set the Creo version value
|
void |
setSessionType(int sessionType) |
public static final int SESSION_TYPE_NONE
public static final int SESSION_TYPE_PROE
public static JLISession createSession()
public static JLISession getSession(java.lang.String sessionId)
sessionId - The ID for the session to retrievepublic static void deleteSession(AbstractJLISession sess) throws JLIException
sess - The session object to deleteJLIExceptionpublic static void disconnectSessions(java.lang.String deadConnId)
throws JLIException
deadConnId - The Creo connection IDJLIExceptionpublic void cleanSession()
throws JLIException
JLIExceptionpublic void setConnection()
throws JLIException
JLIExceptionpublic java.lang.String getConnectionId()
throws JLIException
AbstractJLISessiongetConnectionId in class AbstractJLISessionJLIExceptionpublic void setConnectionId(java.lang.String connId)
AbstractJLISessionsetConnectionId in class AbstractJLISessionconnId - The Creo connection IDpublic java.lang.String getSessionId()
AbstractJLISessiongetSessionId in class AbstractJLISessionpublic long getLastUsed()
public int getSessionType()
public void setSessionType(int sessionType)
sessionType - The sessionType to set.public java.lang.String getCommandLog()
public void setCommandLog(java.lang.String commandLog)
throws java.io.IOException
commandLog - The commandLog to set.java.io.IOExceptionpublic java.lang.String addProcess(java.lang.Process pr)
pr - The process that was startedpublic void killSessionProcesses()
public static void killAllProcesses()
public boolean logCommand(java.util.Map<java.lang.Object,java.lang.Object> cmd)
AbstractJLISessionlogCommand in class AbstractJLISessioncmd - The generic request structurepublic boolean logReturn(java.util.Map<java.lang.Object,java.lang.Object> cmd)
AbstractJLISessionlogReturn in class AbstractJLISessioncmd - The generic response structurepublic int getProeVersion()
AbstractJLISessiongetProeVersion in class AbstractJLISessionpublic void setProeVersion(int proeVersion)
AbstractJLISessionsetProeVersion in class AbstractJLISessionproeVersion - The Creo version value