func StartServiceReplica(id int, classpath string, replica replica_definition) int { bftsmart.ExecuteOrderedImplementation = replica.ExecuteOrdered bftsmart.ExecuteUnorderedImplementation = replica.ExecuteUnordered bftsmart.GetSnapImplementation = replica.GetSnapshot bftsmart.InstallSnapImplementation = replica.InstallSnapshot bftsmart.Init() bftsmart.SetClasspath(classpath) bftsmart.CarregarJvm() return int(bftsmart.StartServiceReplica(id)) }
func CreateServiceProxy(id int, clspath string) int { bftsmart.SetClasspath(clspath) bftsmart.CarregarJvm() return bftsmart.CreateServiceProxy(id) }