Searched refs:state (Results 1 - 25 of 26) sorted by relevance

12

/pkg/src/modules/client/
H A Dpkgremote.py63 # 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
[all...]
H A Dplandesc.py88 """Returns the serialized state of this object in a format
94 def fromstate(state, jd_state=None):
95 """Allocate a new object using previously serialized state
102 # decode serialized state into python objects
103 state = pkg.misc.json_decode(name, state,
106 return _ActionPlan(*state)
167 self.state = UNEVALUATED
171 # Properties set when state >= EVALUATED_PKGS
203 # Properties set when state >
[all...]
H A Dactuator.py114 """Returns the serialized state of this object in a format
120 def setstate(obj, state, jd_state=None):
121 """Update the state of this object using previously serialized
122 state obtained via getstate()."""
127 # decode serialized state into python objects
128 state = pkg.misc.json_decode(name, state,
132 obj.__dict__.update(state)
135 def fromstate(state, jd_state=None):
136 """Allocate a new object using previously serialized state
[all...]
H A Dpkgplan.py101 # figure out which state we are saving.
104 # describe our state and the types of all objects
144 """Returns the serialized state of this object in a format
147 # validate unserialized state
153 # we use __slots__, so create a state dictionary
154 state = {}
156 state[k] = getattr(obj, k)
158 return pkg.misc.json_encode(PkgPlan.__name__, state,
163 def setstate(obj, state, jd_state=None):
164 """Update the state o
[all...]
H A Dhistory.py172 # The starting state of the operation (e.g. image plan pre-evaluation).
174 # The ending state of the operation (e.g. image plan post-evaluation).
266 # of history and operation state information.
343 # Before a new operation starts, clear exception state
651 state = d.createElement("start_state")
652 op.appendChild(state)
653 state.appendChild(d.createCDATASection(
657 state = d.createElement("end_state")
658 op.appendChild(state)
659 state
[all...]
H A Dimageplan.py138 if self.pd.state == plandesc.UNEVALUATED:
144 if self.pd.state < plandesc.EVALUATED_PKGS:
166 assert plan.state in [
178 if self.pd.state == plandesc.UNEVALUATED:
199 assert self.pd.state in \
201 "{0} not in [{1}, {2}]".format(self.pd.state,
204 if self.pd.state == plandesc.PREEXECUTED_OK:
216 self.pd.state = plandesc.PREEXECUTED_OK
219 def state(self): member in class:ImagePlan
220 return self.pd.state
[all...]
H A Dclient_api.py1484 """Attempt to take package specified to INSTALLED state. The operands
1563 """Attempt to take package specified to DELETED state."""
1825 # each refresh requires a client image state rebuild.
2312 state = ""
2314 state = _("Installed")
2316 state = _("Unsupported")
2318 state = _("Not installed")
2322 state += " ({0}".format(_("Obsolete"))
2325 state += " ({0}".format(_("Renamed"))
2329 state
[all...]
H A Drad_pkg.py138 for n in ("state", "pkg"):
311 state = property(get_any("_state"), set_any("_state")) variable in class:PkgInfo
H A Dapi_errors.py322 def __init__(self, state):
324 self.state = state
329 result of an image state change since the plan was created."""
345 return _("Invalid package state change attempted '{states}' "
488 due to unexpected changes in image state after planning was completed.
1445 """This is used when the index is not in a correct state."""
3312 """Used to indicate the freeze state file could not be loaded."""
3315 return _("The freeze state file '{0}' is invalid.").format(
3319 """Used when the version on the freeze state fil
[all...]
/pkg/src/modules/actions/
H A D_actions.c177 } state, prevstate; local
291 prevstate = state = WS;
297 if (state == KEY) {
324 prevstate = state;
325 state = WS;
373 prevstate = state;
374 state = QVAL;
383 prevstate = state;
384 state = UQVAL;
392 } else if (state
[all...]
H A Dgeneric.py128 """Returns the serialized state of this object in a format
133 def fromstate(state, jd_state=None):
134 """Allocate a new object using previously serialized state
136 return pkg.actions.fromstr(state)
/pkg/src/modules/
H A Dsmf.py99 """ return state of smf service """
105 if "maintenance" in props.get("restarter/state", []):
217 def mark(state, fmris, zone=None):
222 args = [svcadm_path, "mark", state]
H A Dfacet.py110 """Returns the serialized state of this object in a format
122 def fromstate(state, jd_state=None):
123 """Update the state of this object using previously serialized
124 state obtained via getstate()."""
127 for k, v, inhertited in state:
H A Dfmri.py163 """Returns the serialized state of this object in a format
168 def fromstate(state, jd_state=None):
169 """Allocate a new object using previously serialized state
171 return PkgFmri(state)
H A Dversion.py346 """Returns the serialized state of this object in a format
351 def fromstate(state, jd_state=None):
352 """Allocate a new object using previously serialized state
354 return Version(state, None)
H A Dmanifest.py103 """Returns the serialized state of this object in a format
112 def fromstate(state, jd_state=None):
113 """Allocate a new object using previously serialized state
116 # decode serialized state into python objects
117 state = misc.json_decode(ManifestDifference.__name__,
118 state,
123 return ManifestDifference(*state)
/pkg/src/modules/publish/
H A Dtransaction.py172 a package fmri (if applicable) and the final state of the
547 a package fmri (if applicable) and the final state of the
561 state, fmri = self.transport.publish_abandon(
581 state, fmri = self.transport.publish_close(
591 return state, fmri
/pkg/src/modules/client/linkedimage/
H A Dzone.py263 # state is unused
265 for zone, (path, state) in six.iteritems(zdict):
446 tuples containing zone root path and current state. The global zone is
H A Dcommon.py268 only affect in-memory state of the current image. It should
269 not update any persistent on-disk linked image state or access
278 only affect in-memory state of the current image. It should
279 not update any persistent on-disk linked image state or access
286 """Sync out the in-memory linked image state of this image to
346 """Returns the serialized state of this object in a format
352 def fromstate(state, jd_state=None):
353 """Allocate a new object using previously serialized state
356 return LinkedImageName(state)
550 new properties, updates them, and resets any cached state
[all...]
/pkg/src/
H A Ddepot-config.py612 state = smf.get_prop(fmri, "restarter/state")
616 if (state == "online" and
719 # a volatile directory used at runtime for storing state
H A Dpkgrepo.py947 state = None
952 state = "o"
955 state = "r"
976 "short_state": state,
H A Dclient.py30 # The client is going to maintain an on-disk cache of its state, so that
2197 """Attempt to take package specified to INSTALLED state.
2213 """Attempt to take package specified to INSTALLED state. The operands
2245 """Attempt to take package specified to DELETED state."""
2276 """Attempt to revert files to their original state, either
4748 # omitting start state, end state, errors for now
5027 state = he.operation_start_state
5028 if state:
5029 data.append((_("Start State"), "\n" + state))
[all...]
/pkg/src/modules/client/transport/
H A Drepo.py156 a (publish-state, fmri) tuple."""
165 (publish-state, fmri) tuple."""
892 a (publish-state, fmri) tuple."""
902 state = fobj.getheader("State", None)
922 return state, pkgfmri
929 (publish-state, fmri) tuple."""
946 state = fobj.getheader("State", None)
967 return state, pkgfmri
1773 transaction id in trans_id. Returns a (publish-state, fmri)
1791 (publish-state, fmr
[all...]
H A Dtransport.py599 be restarted. This clears the state of the
2915 state, fmri = d.publish_abandon(header=header,
2917 return state, fmri
2949 state, fmri = d.publish_close(header=header,
2952 return state, fmri
/pkg/src/tests/cli/
H A Dt_depot_config.py114 # of the format <fmri>%<state>
137 echo $service | sed -e 's/%/ /' | read fmri state
147 echo $service | sed -e 's/%/ /' | read fmri state
148 printf "%-14s%9s %s\n" $state 00:00:00 $fmri
157 # of the format <fmri>%<state>%<inst_root>%<readonly>%<standalone>%<writable_root>
176 read fmri state inst_root readonly standalone writable_root
179 prop_state[$fmri]=$state
201 "restarter/state")
307 state = conf[1]
309 _svcprop_conf[index].insert(1, state)
[all...]

Completed in 91 milliseconds

12