Skip to content

Instantly share code, notes, and snippets.

@swarbhanu
Created December 16, 2011 18:50
Show Gist options
  • Save swarbhanu/1487372 to your computer and use it in GitHub Desktop.
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.
#!/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