Created
December 16, 2011 18:50
-
-
Save swarbhanu/1487372 to your computer and use it in GitHub Desktop.
iHDFhello_service.py. Put this file in the same directory as iHello_service.py. This file creates a new class HDFHelloServiceClient that replaces the usual HelloServiceClient class, used by the server to listen to processes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
from zope.interface import Interface, implements | |
from collections import OrderedDict, defaultdict | |
from pyon.service.service import BaseService, BaseClients | |
from pyon.net.endpoint import RPCClient, ProcessRPCClient | |
from interface.services.examples.hello.ihello_service import HelloServiceClientMixin | |
class HDFHelloServiceClient(RPCClient, HelloServiceClientMixin): | |
def __init__(self, name=None, node=None, **kwargs): | |
name = name or 'hdf_hello' | |
RPCClient.__init__(self, name=name, node=node, **kwargs) | |
HelloServiceClientMixin.__init__(self) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment