Lines Matching refs:state
63 # variables to keep track of our RPC client call state.
69 # initialize RPC server process state
75 # initialize RPC client process state
79 # initialize RPC client call state
87 # sanity check the idle state by re-initializing it
160 # initalization successful, update RPC server state
193 # initalization successful, update RPC client state
209 # clear server state (which closes the rpc pipe file
240 def __state_verify(self, state=None):
241 """Sanity check our internal call state.
243 'state' is an optional parameter that indicates which state
245 that the current state, whatever it is, is self
248 if state is not None:
249 assert self.__state == state, \
250 "{0} == {1}".format(self.__state, state)
252 state = self.__state
254 if state == self.__IDLE:
266 elif state == self.__SETUP:
278 elif state == self.__STARTED:
291 """Enter the __IDLE state. This clears all RPC call
292 state."""
294 # verify the current state
297 # setup the new state
304 self.__debug_msg("set call state: {0}".format(self.__state))
306 # verify the new state
310 """Enter the __SETUP state. This indicates that we're
320 # verify the current state
321 self.__state_verify(state=self.__IDLE)
323 # setup the new state
327 self.__debug_msg("set call state: {0}, pkg op: {1}".format(
330 # verify the new state
334 """Enter the __SETUP state. This indicates that we've
338 # verify the current state
339 self.__state_verify(state=self.__SETUP)
341 # setup the new state
345 self.__debug_msg("set call state: {0}".format(self.__state))
347 # verify the new state
395 state."""
520 # pack up our results and enter the done state
535 # enter the idle state