コード例 #1
0
def new_lzo(nHours, frags):
    lzo = []
    for h in xrange(0, nHours):
        hk = hour_key(h)
        lzo.append(newHdfsLzo(hk))
        for f in xrange(0, frags):
            valformd5 = HashUtil.sha1sumHex("%d:%d" % (hk, f))
            lzo.append(newCloudFilesLzo(hk, frag=f, md5=valformd5))
    return lzo
コード例 #2
0
ファイル: db_utils.py プロジェクト: lbrackspace/atlas-lb
def new_lzo(nHours,frags):
    lzo = []
    for h in xrange(0,nHours):
        hk = hour_key(h)
        lzo.append(newHdfsLzo(hk))
        for f in xrange(0,frags):
            valformd5 = HashUtil.sha1sumHex("%d:%d"%(hk,f))
            lzo.append(newCloudFilesLzo(hk,frag=f,md5=valformd5))
    return lzo
コード例 #3
0
#!/usr/bin/env jython

import org.openstack.atlas.util.crypto.HashUtil as HashUtil
from zxtm import *
from utils import *
from db import *

app = getDb()
#db.buildClassImportFile("db_classes.py","local.json")

from db_classes import *

a = Account()
a.setId(1)
sha1 = HashUtil.sha1sumHex("1", 0, 4)
a.setSha1SumForIpv6(sha1)
a.setClusterType(ClusterType.INTERNAL)

zt = getZeusTest(hid=1)
コード例 #4
0
ファイル: test.py プロジェクト: carriercomm/atlas-lb
#!/usr/bin/env jython

import org.openstack.atlas.util.crypto.HashUtil as HashUtil
from zxtm import *
from utils import *
from db import *

app = getDb()
#db.buildClassImportFile("db_classes.py","local.json")

from db_classes import *

a = Account()
a.setId(1)
sha1=HashUtil.sha1sumHex("1",0,4)
a.setSha1SumForIpv6(sha1)
a.setClusterType(ClusterType.INTERNAL)


zt = getZeusTest(hid=1)